Difference between revisions of "Template:PageNameTemplate"

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


</noinclude>
</noinclude>
{{Page Name Template
{{PageNameTemplate
|url={{{url}}}
|url={{{url}}}
}}
}}
[[{{#ifexpr: {{#len:{{{url|wikipedia:{{PAGENAME}}}}} }} >0|{{PAGENAME}}]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])
[[{{#ifexpr: {{#len:{{{url|wikipedia:{{PAGENAME}}}}} }} >0|{{PAGENAME}}]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])

Revision as of 13:05, 17 June 2022

This template can be used as follows:

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

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



Template loop detected: Template:PageNameTemplate [[{{#ifexpr: 9 >0|PageNameTemplate]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]]) [[{{#ifexpr: 26 >0|PageNameTemplate]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])