Difference between revisions of "Template:Item"

From BDI Data
Jump to: navigation, search
m (DavidFichtmueller moved page Template:Wikibase entity link to Template:Item)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{str left|{{{1|}}}|1}} | Q   
+
<includeonly>{{#ifeq: {{padleft:|1|{{#if:1|{{{1|}}}}}}} | Q   
  | [[{{{1|}}}|{{label|{{{1|}}}}} <small>{{int:parentheses|{{{1|}}}}}</small>]]
+
  | [[{{{1|}}}|{{#invoke:Wikibase|label|{{{1|}}}}} <small>{{int:parentheses|{{{1|}}}}}</small>]]
  | [[Q{{{1|}}}|{{label|Q{{{1|}}}}} <small>{{int:parentheses|Q{{{1|}}}}}</small>]]
+
  | [[Q{{{1|}}}|{{#invoke:Wikibase|label|Q{{{1|}}}}} <small>{{int:parentheses|Q{{{1|}}}}}</small>]]
}}</includeonly><noinclude>For documentation see: https://www.wikidata.org/wiki/Template:Q
+
}}</includeonly><noinclude>For documentation see https://www.wikidata.org/wiki/Template:Q and https://en.wikipedia.org/wiki/Template:Wikidata_entity_link (this template is a combination of both)</noinclude>
<templatedata>
 
{
 
"params": {
 
"1": {
 
"label": {
 
"fr": "item",
 
"en": "item"
 
},
 
"description": {
 
"fr": "l'item à afficher",
 
"en": "the item to show"
 
},
 
"type": "wiki-page-name",
 
"required": true,
 
"suggested": true
 
}
 
},
 
"description": {
 
"en": "Displays an item label in user language and a link to its wikipage",
 
"fr": "Affiche le le label et un lien vers la page d'un item"
 
}
 
}
 
</templatedata>
 
</noinclude>
 

Latest revision as of 13:41, 7 November 2017

For documentation see https://www.wikidata.org/wiki/Template:Q and https://en.wikipedia.org/wiki/Template:Wikidata_entity_link (this template is a combination of both)