Difference between revisions of "Template:PageNameTemplate"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
{{#ifexpr: 3<5 | This expression is {{#expr: 0=0}} | This expression is evaluated to {{#expr: 9>9}} }} | {{#ifexpr: 3<5 | This expression is {{#expr: 0=0}} | This expression is evaluated to {{#expr: 9>9}} }} | ||
#switch | |||
{{#switch: comparison string | |||
| case = result | |||
| case = result | |||
| ... | |||
| case = result | |||
| default result | |||
}} | |||
{{#switch: test | Bar | foo = Foo | baz = Baz }} |
Revision as of 14:04, 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
- switch
default result