Difference between revisions of "Template:PageNameTemplate"

From PKC
Jump to navigation Jump to search
 
(55 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  <nowiki>{{PageNameTemplate
  <nowiki>{{PageNameTemplate
  |qCode=Q[0-9]*
  |qCode=Q[0-9]*
|url={{{url}}}
  }}</nowiki>
  }}</nowiki>
[[wikipedia:{{PAGENAME}}|{{PAGENAME}}]]([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])
</noinclude>




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

Latest revision as of 12:17, 9 July 2022

This template can be used as follows:

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


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