Template:TagValue/sandbox: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
Content deleted Content added
Minh Nguyen (talk | contribs)
Copied from Template:TagValue (1528874)
 
Minh Nguyen (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><tt style="background:#EEF;font-size:1em;line-height:1.6">{{TagKey/link
<tt style="background:#EEF;font-size:1em;line-height:1.6">{{#invoke:tag|value<noinclude>|crossing:markings||zebra:double</noinclude>}}</tt><noinclude>{{Documentation}}</noinclude>
|1={{#switch: {{{link|}}}
| none =
| tag | value
= {{#switch: {{lc:{{#if: {{{kl|}}} | {{{kl|}}} | {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }}}}}}
| | en = {{#ifeq: {{{key}}} | type | Tag:{{{key}}}={{{value}}} | Relation:{{{value}}} }}
| #default = {{#if: {{{kl|}}}{{{lang|}}}
| {{LangPrefix|1={{#if: {{{kl|}}} | {{{kl|}}} | {{#if: {{{lang|}}} | {{{lang|}}} }} }}}}{{#ifeq: {{{key}}} | type | Relation:{{{value}}} | Tag:{{{key}}}={{{value}}} }}
| {{#ifexist: {{LangPrefix|{{Langcode}}}}{{#ifeq: {{{key}}} | type | Relation:{{{value}}} | Tag:{{{key}}}={{{value}}} }}
| {{LangPrefix|{{Langcode}}}}{{#ifeq: {{{key}}} | type | Relation:{{{value}}} | Tag:{{{key}}}={{{value}}} }}
| {{#ifeq: {{{key}}} | type | Relation:{{{value}}} | Tag:{{{key}}}={{{value}}} }}
}}
}}
}}
| key | key#
= {{#switch: {{lc:{{#if: {{{kl|}}} | {{{kl|}}} | {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }}}}}}
| | en = Key:{{{key}}}
| #default = {{#if: {{{kl|}}}{{{lang|}}}
| {{LangPrefix|1={{#if: {{{kl|}}} | {{{kl|}}} | {{#if: {{{lang|}}} | {{{lang|}}} }}}}}}{{#ifeq: {{{key}}} | type | Relation | Key:{{{key}}} }}
| {{#ifexist: {{LangPrefix|{{Langcode}}}}{{#ifeq: {{{key}}} | type | Relation | Key:{{{key}}} }}
| {{LangPrefix|{{Langcode}}}}{{#ifeq: {{{key}}} | type | Relation | Key:{{{key}}} }}
| {{#ifeq: {{{key}}} | type | Relation | Key:{{{key}}} }}
}}
}}
}}
| #default = {{#if: {{{2|}}}
| {{#if: {{{lang|}}}
| {{LangPrefix|{{{lang}}}}}Tag:{{{1}}}={{{2}}}
| {{LL|1={{#ifeq: {{{1}}} | type | Relation:{{{2}}} | Tag:{{{1}}}={{{2}}} }}}}
}}
| {{#if: {{{lang|}}}
| {{LangPrefix|{{{lang}}}}}{{#ifeq: {{{1}}} | type | Relation | Key:{{{1}}} }}
| {{LL|1={{#ifeq: {{{1}}} | type | Relation | Key:{{{1}}} }}}}
}}
}}
}}
|anchor={{#switch: {{{link|}}}
| none | tag | value =
| key# = {{{key}}}-{{{value}}}
| #default = {{#if: {{{2|}}} || {{#if: {{{3|}}} | {{{1}}}-{{{3|}}} }} }}
}}
|2={{#if: {{{value|}}} | {{{value|}}}
| {{#if: {{{3|}}} | {{{3|}}}
| {{#if: {{{2|}}} | {{{2|}}}
| {{#if: {{{4|}}} | {{{4|}}} | <nowiki/>* }}
}}
}}
}}
}}</tt></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 05:36, 14 April 2024

zebra:double