Difference between revisions of "Template:PageNameTemplate"

From PKC
Jump to navigation Jump to search
Line 5: Line 5:
  }}</nowiki>
  }}</nowiki>
</noinclude>
</noinclude>
[[wikipedia:{{PAGENAME}}|{{PAGENAME}}]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])
{{Page Name Template
|url={{{url}}}
}}
[[{{#ifexpr: {{#len:{{{url|wikipedia:{{PAGENAME}}}}} }} >0|{{PAGENAME}}]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])

Revision as of 13:02, 17 June 2022

This template can be used as follows:

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

Template:Page Name Template [[{{#ifexpr: 26 >0|PageNameTemplate]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])