Commons:Lua/Modules

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Available modules[edit]

Please add other modules to this table
Module Used in To do Accessible
to templates
Clone? Comment
Module:Archive Commons:Photography critiques yes no archived subpages support
Module:Assessments {{Assessments/sandbox2}} Under construction
use in {{Assessments}}
yes no
Module:BASA Commons:Bulgarian Archives State Agency/Report
Commons:Държавна агенция "Архиви"/Доклад
yes no Report on BASA image upload
Module:BIC {{BIC}} yes no Core of the template for tagging monuments from Spanish heritage register
Module:BiologyList {{Subspecies}}
{{Species}}
{{Species2}}
{{Genera}}
{{Genera2}}
{{Minerals}}
{{Taxa}}
{{SimpleTaxa}}
Suppress unused {{Species/}}, {{Genera/}}, {{Genera/category}}, {{Taxa/}}, {{Taxa/category}}, {{Genus species concategory}} yes no Core of taxonomy templates
Module:Convert {{Convert}} Links to EN-WP articles are not working yes yes provide metric and English version of different measurements
Module:Coordinates
Module:I18n/coordinates
{{Location}}
{{Object location}}
{{Globe location}}
{{Institution/coordinates}}
Extend to {{Inline coordinates}} yes no Formats templates related to geo coordinates
Module:Date
Module:I18n/date
{{ISOyear}}, {{ISOdate}}, {{Date}} yes no Format dates and time strings based on language
Module:Declension unused Use by Module:Technique and possibly others. yes no Regular declension rules for different languages. Proof of concept module to be used in {{Technique}}
Module:Diff {{TextDiff}}
{{StringDiff}}
Document templates and module yes no Functions for diffing text
Module:Editnotice {{Anon-warning-no-edit}} yes no Editnotice support
Module:En2bndigit Commons:স্বাগতম yes no Translates numbers, dates and months from English to Bengali language
Module:Fallback {{LangSwitch}}
{{Autotranslate}}
Extend to {{SuperFallback}} and {{Fallback}} yes no Core of internationalization (I18n) templates
Module:Fallbacklist Module:Fallback
Module:Languages(?)
Retire and use mw:language:getFallbackfor instead no no Catalogs language fallback chains for each language. See here.
Module:Formatnum {{Formatnum}} yes no Format number based on language
Module:JSON Module:TemplateBox and {{TemplateBox}} no yes Encode/decode JSON
Module:Math ? yes yes More math functions
Module:Matrix planned use in {{Map}} no yes Linear algebra math functions
Module:Multilingual description {{Multilingual description}} no no Similar purpose as Module:Fallback
Module:Languages {{Lle}}, {{Ll}},
{{Lang links}}
{{Autolang}}
yes
Module:Louvre rooms {{Louvre rooms}} yes no metadata about Louvre rooms
Module:Navbox
Module:Navbar
{{Navbox}} yes yes Core of en:Wikipedia:Navigation templates
Module:String {{Str len}}

{{Str right}}
{{First word}}
{{Remove first word}}
{{Str number/trim}}
{{File extension}}
{{Str num char}}
{{Remove file prefix}}

yes yes More string functions
Module:Technique unused Use by {{Technique}}. yes no Might become the core of {{Technique}}
Module:TemplateBox {{TemplateBox}} yes no Core of template documentation
Module:UnitTests Other Modules no yes Provides a unit test facility used by other Modules
Module:Wikibase unused not working no yes Module for querying wikidata using JSON. The original code seems to work at d:Module:WBHacks, but Commons clone does not work.
Module:Wikidata unused Undocumented, untested and unused no no
Module:Wikidata4Bio {{VN}} Extends to Wikibase items not connected to the current page, like categories yes no Looks up, displays, and checks against data on Commons, properties of a gallery in wikidata
Module:Yesno other modules no yes Handling of template boolean arguments
Module:Era yes no Translates the "era" part of a date ("BC", "AD", etc.)

List of all modules[edit]

Archive Archive/doc Arguments
Assessments Assessments/doc Authority control
Authority control/doc BASA BIC
BIC/doc BIC/lang Background
Background/doc Bananas Bananas/doc
Bananas/testcases BiologyList BiologyList/doc
BiologyList/sandbox BiologyList/sandbox/doc BiologyList/sandbox/testcases
BiologyList/testcases Clickable button 2 Colors
Colors/data Complex Convert
Convert/data Convert/doc Convert/text
Coordinates Coordinates/doc Coordinates/sandbox
Coordinates/sandbox/doc Coordinates/sandbox/testcases Coordinates/testcases
CountryAdjective/cs CountryAdjective/da CountryAdjective/de
CountryAdjective/el CountryAdjective/en CountryAdjective/eo
CountryAdjective/et CountryAdjective/et/doc CountryAdjective/fa
CountryAdjective/fi CountryAdjective/fr CountryAdjective/hu
CountryAdjective/ja CountryAdjective/mk CountryAdjective/ml
CountryAdjective/nds CountryAdjective/nl CountryAdjective/pl
Date Date/doc Date/sandbox
Date/sandbox/doc Date/sandbox/testcases Date/sandbox/testcases (ISOdate)
Date/sandbox/testcases (date) Date/testcases Date phrase
Declension Delink Diff
Diff/doc Editnotice Editnotice/doc
En2bndigit En2bndigit/doc En2bndigit/testcases
Era Era/doc Era/i18n/doc
Era/testcases Fallback Fallback/doc
Fallback/sandbox Fallback/sandbox/doc Fallback/sandbox/testcases
Fallback/sandbox/testcases/doc Fallback/testcases Fallback/testcases/doc
Fallback/tests/fallbacks Fallbacklist Fallbacklist/doc
File File/doc File/tests/all
FileName FilePath FilePath/doc
FilePath/tests/titleFromSrc FileUtil FormatLua
FormatLua/doc FormatLua/tests/toLua Formatnum
Formatnum/doc Formatnum/sandbox Formatnum/testcases
GetFallback HTMLParser HTMLParser/ElementNode
HTMLParser/doc HTMLParser/voidelements HtmlBuilder
HtmlBuilder/doc I18n/coordinates I18n/coordinates/doc
I18n/date I18n/date/doc I18n/era
I18n/oil on canvas I18n/oil on canvas/doc I18n/or
I18n/or/doc I18n/other date I18nmaintenance
ISOdate ImageVote Indent
JSON JSON/doc Józef Piłsudski Institute of America
Józef Piłsudski Institute of America/doc Königlich Sächsische Triangulation Languages
Languages/List Languages/List/doc Linguistic
Linguistic/doc Linguistic/testcases Link
Louvre rooms Louvre rooms/doc Map
Map/doc Map/testcases Math
Math/doc Math/sandbox Math/testcases
Matrix Matrix/doc Matrix/testcases
Messtischblatt Messtischblatt/data Messtischblatt/trans
Multilingual description Multilingual description/doc Multilingual description/sort
Multilingual description/sort/doc MyUploads Navbar
Navbox Occupation Occupation/Wikidata
Occupation/ca Occupation/cs Occupation/da
Occupation/de Occupation/doc Occupation/el
Occupation/en Occupation/eo Occupation/es
Occupation/et Occupation/eu Occupation/fa
Occupation/fi Occupation/fr Occupation/he
Occupation/hu Occupation/it Occupation/it/doc
Occupation/ja Occupation/ko Occupation/mk
Occupation/ml Occupation/nds Occupation/nl
Occupation/no Occupation/pl Occupation/pt
Occupation/redirects Occupation/ro Occupation/ru
Occupation/sl Occupation/sv Occupation/sw
Occupation/uk Occupation/vi Occupation/yo
Occupation/zh-hans Occupation/zh-hant POTY
POTY/config POTY/config/2013 POTY/font
POTY/font/cookie/support POTY/i18n POTY/i18n/misc
POTY/parser Page Page/sandbox
PeopleName PeopleName/doc PeopleName/testcases
QuickTest SVG Chart SVG Chart/doc
SVG Chart/error SVG Chart/init SVG Chart/standard
SVG Chart/svg-axis SVG Chart/svg-axistext SVG Chart/svg-graphs
SVG Chart/svg-head SVG Chart/svg-legend SVG Chart/svg-marker
SVG Chart/svg-text SVG Chart/svg-viewbox Sandbox
Sandbox/Con-struct (t)/Test1 Sandbox/Con-struct (t)/Test1/doc Sandbox/Con-struct (t)/Test1/error
Sandbox/Con-struct (t)/Test1/init Sandbox/Con-struct (t)/Test1/standard Sandbox/Con-struct (t)/Test1/svg-axis
Sandbox/Con-struct (t)/Test1/svg-axistext Sandbox/Con-struct (t)/Test1/svg-graphs Sandbox/Con-struct (t)/Test1/svg-head
Sandbox/Con-struct (t)/Test1/svg-legend Sandbox/Con-struct (t)/Test1/svg-marker Sandbox/Con-struct (t)/Test1/svg-text
Sandbox/Con-struct (t)/Test1/svg-viewbox Sandbox/doc Sandbox/pagelang
Set Sortist String
String/doc String/testcases Table
Technique Technique/en Technique/mappings
Technique/pl Technique/synonyms TemplateBox
TemplateBox/doc TemplateBox/test TemplatePar
TemplatePar/doc Template translation
Test Test/doc Test/testcases
TimeAgo URLutil UkrWlxId
UkrWlxId/doc UnitTests UnitTests/doc
User:Ebraminio/tracker User:PiRSquared17/images User:PiRSquared17/sandbox
User:Zhuyifei1999/sandbox VoteCount WatchlistNotice
Wikibase Wikibase/doc Wikibase/testcases
Wikidata Wikidata4Bio Wikidata4Bio/doc
Wikidata4Bio/sandbox Wikidata4Bio/sandbox/doc Wikidata4Bio/sandbox/testcases
Wikidata4Bio/testcases Yesno Yesno/doc