Template:Wikidata entity link: Difference between revisions

From Vigyanwiki
Template>MSGJ
m (MSGJ moved page Template:Q to Template:Wikidata entity link: clearer name)
m (17 revisions imported from alpha:Template:Wikidata_entity_link)
 
(15 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{#switch:{{str left|{{{1|}}}|1}}
<includeonly>{{#if:{{{1|}}}
| Q = [[d:{{{1|}}}|{{label|{{{1|}}}}} <small>({{{1|}}})</small>]]
| {{#switch:{{padleft:|1|{{uc:{{{1}}}}}}}
| P = [[d:Property:{{{1|}}}|{{label|{{{1|}}}}} <small>({{{1|}}})</small>]]
  | Q | P = [[d:Special:EntityPage/{{uc:{{{1}}}}}|{{#invoke:wd|label|{{uc:{{{1}}}}}}} <small>({{uc:{{{1}}}}})</small>]]
| [[d:Q{{{1|}}}|{{label|Q{{{1|}}}}} <small>(Q{{{1|}}})</small>]]
  | #default = [[d:Special:EntityPage/Q{{uc:{{{1}}}}}|{{#invoke:wd|label|Q{{uc:{{{1}}}}}}} <small>(Q{{uc:{{{1|}}}}})</small>]]
}}<noinclude>
  }}
{{documentation}}
| {{#if:{{#invoke:wd|label|raw}}
</noinclude>
  | [[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 11:43, 12 July 2023

Template documentation