Difference between revisions of "Template:PageNameTemplate"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
]] | ]] | ||
([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]]) | ([[wikidata:Q{{{qCode}}}|Q{{{qCode}}}]]) | ||
{{#ifeq: | |||
{{#len:{{{url|}}} }} | 0 | |||
| equal | |||
| not equal}} | |||
{{#switch: | {{#switch: | ||
{{#ifeq: {{#len:{{{url|}}} }} | {{#ifeq: | ||
| 0 | {{#len:{{{url|}}} }} | 0 | ||
| equal | | equal | ||
| not equal}} | | not equal}} |
Revision as of 01:34, 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}}}]])
equal
wikipedia:PageNameTemplate