Difference between revisions of "Template:PageNameTemplate"

From PKC
Jump to navigation Jump to search
Line 12: Line 12:
]]
]]
([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])
([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]])
[
 
{{#ifeq:  
{{#ifeq:  
   {{#len:{{{url|}}} }} | 0  
   {{#len:{{{url|}}} }} | 0  
| [wikipedia:{{PAGENAME}}|{{PAGENAME}}]
| [[wikipedia:{{PAGENAME}}|{{PAGENAME}}]]
| {{{url}}} {{PAGENAME}} }}  
| [{{{url}}} {{PAGENAME}}] }}  
]
 


{{#switch:  
{{#switch:  

Revision as of 01:41, 8 July 2022

This template can be used as follows:

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


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

PageNameTemplate


wikipedia:PageNameTemplate