Difference between revisions of "Template:PageNameTemplate"

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

Revision as of 13:41, 17 June 2022

This template can be used as follows:

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

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