Jump to content

Template:Wikidata entity link: Difference between revisions

From the Vrienden Universe, a fictional wiki
m 1 revision imported
Use external Wikidata URLs instead of local d:Special:EntityPage links
 
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
<includeonly>{{#if:{{{1|}}}
| {{#switch:{{padleft:|1|{{uc:{{{1}}}}}}}
| {{#switch:{{padleft:|1|{{uc:{{{1}}}}}}}
   | Q | P  = [[d:Special:EntityPage/{{uc:{{{1}}}}}|{{replace|{{#invoke:wd|label|{{uc:{{{1}}}}}}}|'|&#39;}} <small>({{uc:{{{1}}}}})</small>]]
   | Q | P  = [https://www.wikidata.org/wiki/{{uc:{{{1}}}}} {{replace|{{#invoke:wd|label|{{uc:{{{1}}}}}}}|'|&#39;}} <small>({{uc:{{{1}}}}})</small>]
   | #default = [[d:Special:EntityPage/Q{{uc:{{{1}}}}}|{{replace|{{#invoke:wd|label|Q{{uc:{{{1}}}}}}}|'|&#39;}} <small>(Q{{uc:{{{1|}}}}})</small>]]
   | #default = [https://www.wikidata.org/wiki/Q{{uc:{{{1}}}}} {{replace|{{#invoke:wd|label|Q{{uc:{{{1}}}}}}}|'|&#39;}} <small>(Q{{uc:{{{1|}}}}})</small>]
   }}
   }}
| {{#if:{{#invoke:wd|label|raw}}
| {{#if:{{#invoke:wd|label|raw}}
   | [[d:Special:EntityPage/{{#invoke:wd|label|raw}}|{{#invoke:wd|label}} <small>({{#invoke:wd|label|raw}})</small>]]
   | [https://www.wikidata.org/wiki/{{#invoke:wd|label|raw}} {{#invoke:wd|label}} <small>({{#invoke:wd|label|raw}})</small>]
   | <small>(no entity)</small>
   | <small>(no entity)</small>
   }}
   }}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:33, 6 June 2026