Difference between revisions of "Template:PageNameTemplate"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
{{#switch: {{#ifeq: {{#len:{{{url|}}} }} | 0 | equal | not equal}} | not equal = {{{url}}} | equal = wikipedia:{{PAGENAME}} }} | {{#switch: | ||
{{#ifeq: {{#len:{{{url|}}} }} | |||
| 0 | |||
| equal | |||
| not equal}} | |||
| not equal = {{{url}}} | |||
| equal = wikipedia:{{PAGENAME}} | |||
}} |
Revision as of 01:31, 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}}}]])
wikipedia:PageNameTemplate