Template:Wikidata entity link: Difference between revisions
Jump to navigation
Jump to search
en>Zyxw Updated to use interwiki links instead of external links, see Template talk:Wikidata entity link#Link format. Tested first with /sandbox and /testcases. |
m 1 revision imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{1|}}} | <includeonly>{{#if:{{{1|}}} | ||
| {{#switch | | {{#switch:{{padleft:|1|{{uc:{{{1}}}}}}} | ||
| P = [[d: | | Q | P = [[d:Special:EntityPage/{{uc:{{{1}}}}}|{{#invoke:wd|label|{{uc:{{{1}}}}}}} <small>({{uc:{{{1}}}}})</small>]] | ||
| #default = [[d:Special:EntityPage/Q{{uc:{{{1}}}}}|{{#invoke:wd|label|Q{{uc:{{{1}}}}}}} <small>(Q{{uc:{{{1|}}}}})</small>]] | |||
| #default = [[d:Q{{ | |||
}} | }} | ||
| {{# | | {{#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> | | <small>(no entity)</small> | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
{{Documentation}} | |||
</noinclude> |