Template:TaginfoAJAX: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
No edit summary
(HTML-escape key and value)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="taginfo__{{{1}}}{{#if: {{{2|}}}|__{{{2}}}}} taginfobox" style="display:none; width:{{{width|11em}}}"
<div class="taginfo-ajax taginfobox" style="display:none; width:{{{width|11em}}}"
data-taginfo-key="{{#invoke:DecodeEncode|encode|s={{{1}}}}}"
{{#if: {{{2|}}}
| data-taginfo-value="{{#invoke:DecodeEncode|encode|s={{{2}}}}}"
}}
data-taginfo-no-such-tag="{{int:taginfo-no-such-tag}}"
data-taginfo-no-such-tag="{{int:taginfo-no-such-tag}}"
data-taginfo-taginfo-error="{{int:taginfo-error}}"
data-taginfo-taginfo-error="{{int:taginfo-error}}"
Line 6: Line 10:
| <!--empty-->
| <!--empty-->
| <div class="ti_named_link taginfo-tag">
| <div class="ti_named_link taginfo-tag">
<b><span class="plainlinks">[{{{url}}}/keys/{{{1}}} {{{1}}}]</span></b>=<b>{{#if: {{{2|}}}|<span class="plainlinks">[{{{url}}}/tags/{{{1}}}={{{2}}} {{{2}}}]</span>|<nowiki>*</nowiki>}}</b></div>
<b><span class="plainlinks">[{{{url}}}/keys/{{urlencode:{{{1}}}|PATH}} {{{1}}}]</span></b>=<b>{{#if: {{{2|}}}|<span class="plainlinks">[{{{url}}}/tags/{{urlencode:{{{1}}}={{{2}}}|PATH}} {{{2}}}]</span>|<nowiki>*</nowiki>}}</b></div>
}}
}}
<div class="ti_empty taginfo-content taginfo-compact-text taginfo-hidden"></div>
<div class="ti_empty taginfo-content taginfo-compact-text taginfo-hidden"></div>
Line 15: Line 19:
| <!--empty-->
| <!--empty-->
|<tr>
|<tr>
<td class="all-ico taginfo-ico">[[File:Osm element all.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{{1}}}={{{2}}}|{{{url}}}/keys/{{{1}}}}}|{{int:taginfo-all}}]]</td>
<td class="all-ico taginfo-ico">[[File:Osm element all.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{urlencode:{{{1}}}={{{2}}}|PATH}}|{{{url}}}/keys/{{urlencode:{{{1}}}|PATH}}}}|{{int:taginfo-all}}]]</td>
<td class="all-count" title="{{int:taginfo-all-count|{{{1}}}|{{{2|*}}}}}"></td>
<td class="all-count" title="{{int:taginfo-all-count|{{{1}}}|{{{2|*}}}}}"></td>
{{#if: {{{2|}}}|
{{#if: {{{2|}}}|
Line 28: Line 32:
| <!--empty-->
| <!--empty-->
|<tr>
|<tr>
<td class="node-ico taginfo-ico">[[File:Taginfo element node.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{{1}}}={{{2}}}|{{{url}}}/keys/{{{1}}}}}|{{int:taginfo-nodes}}]]</td>
<td class="node-ico taginfo-ico">[[File:Taginfo element node.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{urlencode:{{{1}}}={{{2}}}|PATH}}|{{{url}}}/keys/{{urlencode:{{{1}}}|PATH}}}}|{{int:taginfo-nodes}}]]</td>
<td class="node-count" title="{{int:taginfo-node-count|{{{1}}}|{{{2|*}}}}}"></td>
<td class="node-count" title="{{int:taginfo-node-count|{{{1}}}|{{{2|*}}}}}"></td>
{{#if: {{{2|}}}|
{{#if: {{{2|}}}|
Line 41: Line 45:
| <!--empty-->
| <!--empty-->
|<tr>
|<tr>
<td class="way-ico taginfo-ico">[[File:Taginfo element way.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{{1}}}={{{2}}}|{{{url}}}/keys/{{{1}}}}}|{{int:taginfo-ways}}]]</td>
<td class="way-ico taginfo-ico">[[File:Taginfo element way.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{urlencode:{{{1}}}={{{2}}}|PATH}}|{{{url}}}/keys/{{urlencode:{{{1}}}|PATH}}}}|{{int:taginfo-ways}}]]</td>
<td class="way-count" title="{{int:taginfo-way-count|{{{1}}}|{{{2|*}}}}}"></td>
<td class="way-count" title="{{int:taginfo-way-count|{{{1}}}|{{{2|*}}}}}"></td>
{{#if: {{{2|}}}|
{{#if: {{{2|}}}|
Line 54: Line 58:
| <!--empty-->
| <!--empty-->
|<tr>
|<tr>
<td class="rel-ico taginfo-ico">[[File:Taginfo element relation.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{{1}}}={{{2}}}|{{{url}}}/keys/{{{1}}}}}|{{int:taginfo-relations}}]]</td>
<td class="rel-ico taginfo-ico">[[File:Taginfo element relation.svg|16px|link={{#if: {{{2|}}}|{{{url}}}/tags/{{urlencode:{{{1}}}={{{2}}}|PATH}}|{{{url}}}/keys/{{urlencode:{{{1}}}|PATH}}}}|{{int:taginfo-relations}}]]</td>
<td class="rel-count" title="{{int:taginfo-relation-count|{{{1}}}|{{{2|*}}}}}"></td>
<td class="rel-count" title="{{int:taginfo-relation-count|{{{1}}}|{{{2|*}}}}}"></td>
{{#if: {{{2|}}}|
{{#if: {{{2|}}}|
Line 68: Line 72:
{{#ifeq:{{{footer|}}}|no
{{#ifeq:{{{footer|}}}|no
| <!--empty-->
| <!--empty-->
| <div class="taginfo-logo"><span class="plainlinks">{{int:taginfo-powered-by|{{#if: {{{2|}}}|{{{url}}}/tags/{{{1}}}={{{2}}}|{{{url}}}/keys/{{{1}}}}}|tag'''info'''}}</span></div>
| <div class="taginfo-logo"><span class="plainlinks">{{int:taginfo-powered-by|{{#if: {{{2|}}}|{{{url}}}/tags/{{urlencode:{{{1}}}={{{2}}}|PATH}}|{{{url}}}/keys/{{urlencode:{{{1}}}|PATH}}}}|tag'''info'''}}</span></div>
}}
}}
</div>
</div>

Revision as of 01:38, 19 November 2021