Template:Label/doc

From blackwiki
< Template:Label
Revision as of 20:44, 3 September 2016 by imported>Pigsonthewing (item with different label in Spanish)
Jump to navigation Jump to search

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|Q5}}: Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
  • {{label|Q5|en}}: Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
  • {{label|Q5|es}}: Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
  • {{label|P31}}: Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).

The language code parameter does not work yet. It will be optional; if not provided it will default to English.