Difference between revisions of "Template:PageNameTemplate"

From PKC
Jump to navigation Jump to search
Line 9: Line 9:




[{{#if: {{ {{{url}}} }}| {{{url}}} | wikipedia:{{PAGENAME}} }} {{PAGENAME}} ] ([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])
[
{{#switch: {{#len:{{{url}}} }} | 0 = wikipedia:{{PAGENAME}} | {{{url}}} }} {{PAGENAME}}
]
([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])

Revision as of 13:35, 4 July 2022

This template can be used as follows:

{{PageNameTemplate
 |qCode=Q[0-9]*
 |url={{{url}}}
 }}



[ {{{url}}} PageNameTemplate ] ([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])