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}}
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
{{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:Era yes no Translates the "era" part of a date ("BC", "AD", etc.)
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:ISOdate {{ISOyear}}, {{ISOdate}} yes no Parses different date formats and creates dates and time strings 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:Ordinal
Module:I18n/ordinal
{{Ordinal}} yes no Convert integer to an abbreviated ordinal number.
Module:Roman {{Roman}} yes no Conversion to Roman numerals
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

List of all modules[edit]