Difference between revisions of "Template:PageNameTemplate"

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

Revision as of 13:10, 17 June 2022

This template can be used as follows:

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

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