Difference between revisions of "Template:Label"

From RobotX
Jump to navigation Jump to search
Wikimedia Commons>4nn1l2
m (Changed protection level for "Template:Label": downgraded protection level per consensus ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)))
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{item|{{{1|}}} }}}|
+
{{#invoke:Wikibase signature|label}}<noinclude>
  {{#invoke:Wikidata label|getLabel
+
{{documentation}}
    |item={{{item|{{{1|}}} }}}
+
</noinclude>
    |lang={{{lang|{{{2|{{int:lang}} }}} }}}
 
    |link={{{link|wikipedia}}}
 
    |capitalization={{{capitalization|none}}}
 
  }}
 
}}<noinclude>{{Documentation}}</noinclude>
 

Latest revision as of 04:05, 4 December 2019

Lua error in Module:Wikibase_signature at line 31: no mw.wikibase.

Template documentation[view] [edit] [history] [purge]

This template gets the label of an item or property, and should stay in sync with the same template as d:Template:Label.

Examples:

  • {{label|Q1}}: Lua error in Module:Wikibase_signature at line 31: no mw.wikibase.
  • {{label|Q1|en}}: Lua error in Module:Wikibase_signature at line 31: no mw.wikibase.
  • {{label|Q1|es}}: Lua error in Module:Wikibase_signature at line 31: no mw.wikibase.
  • {{label|P31}}: Lua error in Module:Wikibase_signature at line 31: no mw.wikibase.

The language code parameter is optional; if not provided it will default to the local language.