Difference between revisions of "Template:PageNameTemplate"

From PKC
Jump to navigation Jump to search
Line 24: Line 24:




{{#switch: test | Bar | foo = Foo | baz = Baz }}
{{#switch: test | Bar | {{#len:{{{url}}} }} >0 = Foo | baz = Baz }}

Revision as of 14:12, 1 July 2022

This template can be used as follows:

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


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

This expression is 1

  1. switch

default result