Template:Wikidata entity link: Difference between revisions
Appearance
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 = [ | | Q | P = [https://www.wikidata.org/wiki/{{uc:{{{1}}}}} {{replace|{{#invoke:wd|label|{{uc:{{{1}}}}}}}|'|'}} <small>({{uc:{{{1}}}}})</small>] | ||
| #default = [ | | #default = [https://www.wikidata.org/wiki/Q{{uc:{{{1}}}}} {{replace|{{#invoke:wd|label|Q{{uc:{{{1}}}}}}}|'|'}} <small>(Q{{uc:{{{1|}}}}})</small>] | ||
}} | }} | ||
| {{#if:{{#invoke:wd|label|raw}} | | {{#if:{{#invoke:wd|label|raw}} | ||
| [ | | [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
File:Test Template Info-Icon - Version (2).svg Template documentationcreatepurge