Template:Wikidata entity link: Difference between revisions

Jump to navigation Jump to search
m (Changed protection level for "Template:Wikidata entity link": Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
m (1 revision imported)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[{{#if:{{{1|}}}|{{#switch:{{uc:{{padleft:|1|{{#if:1|{{{1|}}}}}}}}}
<includeonly>{{#if: {{{1|}}}
|Q|P={{#invoke:Wikibase|wdurl|{{{1}}}}} {{#invoke:Wikibase|label|{{{1}}}}} <small>({{#if:1|{{{1|}}}}})</small>
| {{#switch: {{uc:{{padleft:|1|{{#if:1|{{{1}}}}}}}}}
|#default={{#invoke:Wikibase|wdurl|Q{{#if:1|{{{1|}}}}}}} {{#invoke:Wikibase|label|Q{{#if:1|{{{1|}}}}}}} <small>(Q{{#if:1|{{{1|}}}}})</small>
  | Q | P = [[d:Special:EntityPage/{{#if:1|{{{1}}}}}|{{#invoke:wd|label|{{{1}}}}} <small>({{#if:1|{{{1}}}}})</small>]]
}}|{{#invoke:Wikibase|wdurl}} {{#invoke:Wikibase|label}} <small>({{#invoke:Wikibase|id}})</small>}}]<noinclude>{{documentation}}</noinclude>
  | #default = [[d:Special:EntityPage/Q{{#if:1|{{{1}}}}}|{{#invoke:wd|label|Q{{#if:1|{{{1}}}}}}} <small>(Q{{#if:1|{{{1|}}}}})</small>]]
  }}
| {{#if:{{#invoke:wd|label|raw}}
  | [[d:Special:EntityPage/{{#invoke:wd|label|raw}}|{{#invoke:wd|label}} <small>({{#invoke:wd|label|raw}})</small>]]
  | <small>(no entity)</small>
  }}
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 22:08, 27 August 2020