Template:TaginfoAJAX: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
(HTML-escape key and value)
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
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}}"
data-taginfo-url="{{{url|https://taginfo.openstreetmap.org}}}">
data-taginfo-url="{{{url|https://taginfo.openstreetmap.org}}}"><!--
{{#ifeq:{{{tagLink|}}}|no
-->{{#ifeq:{{{tagLink|}}}|no
| <!--empty-->
| <!--empty-->
| <div class="ti_named_link taginfo-tag">
| <div class="ti_named_link taginfo-tag"><!--
<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>
--><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><!--
<div class="ti_error taginfo-content taginfo-compact-text taginfo-hidden"></div>
--><div class="ti_error taginfo-content taginfo-compact-text taginfo-hidden"></div><!--
<div class="ti_content taginfo-content">
--><div class="ti_content taginfo-content"><!--
<table>
--><table><!--
{{#ifeq:{{{countAll|}}}|no
-->{{#ifeq:{{{countAll|}}}|no
| <!--empty-->
| <!--empty-->
|<tr>
|<tr><!--
<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-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|}}}|
{{#ifeq:{{{percentage|}}}|no
{{#ifeq:{{{percentage|}}}|no
| <!--empty-->
| <!--empty-->
| <td class="all-pct last-col" title="{{int:taginfo-all-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
| <td class="all-pct last-col" title="{{int:taginfo-all-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
}}
}}
}}
}}<!--
</tr>
--></tr>
}}
}}<!--
{{#ifeq:{{{countNodes|}}}|no
-->{{#ifeq:{{{countNodes|}}}|no
| <!--empty-->
| <!--empty-->
|<tr>
|<tr><!--
<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-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|}}}|
{{#ifeq:{{{percentage|}}}|no
{{#ifeq:{{{percentage|}}}|no
| <!--empty-->
| <!--empty-->
| <td class="node-pct last-col" title="{{int:taginfo-node-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
| <td class="node-pct last-col" title="{{int:taginfo-node-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
}}
}}
}}
}}<!--
</tr>
--></tr>
}}
}}<!--
{{#ifeq:{{{countWays|}}}|no
-->{{#ifeq:{{{countWays|}}}|no
| <!--empty-->
| <!--empty-->
|<tr>
|<tr><!--
<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-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|}}}|
{{#ifeq:{{{percentage|}}}|no
{{#ifeq:{{{percentage|}}}|no
| <!--empty-->
| <!--empty-->
| <td class="way-pct last-col" title="{{int:taginfo-way-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
| <td class="way-pct last-col" title="{{int:taginfo-way-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
}}
}}
}}
}}<!--
</tr>
--></tr>
}}
}}<!--
{{#ifeq:{{{countRelations|}}}|no
-->{{#ifeq:{{{countRelations|}}}|no
| <!--empty-->
| <!--empty-->
|<tr>
|<tr><!--
<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-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|}}}|
{{#ifeq:{{{percentage|}}}|no
{{#ifeq:{{{percentage|}}}|no
| <!--empty-->
| <!--empty-->
| <td class="rel-pct last-col" title="{{int:taginfo-relation-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
| <td class="rel-pct last-col" title="{{int:taginfo-relation-fraction|{{{1}}}}}">{{int:percent|$1}}</td>
}}
}}
}}
}}<!--
</tr>
--></tr>
}}
}}<!--
</table>
--></table><!--
</div>
--></div><!--
{{#ifeq:{{{footer|}}}|no
-->{{#ifeq:{{{footer|}}}|no
| <!--empty-->
| <!--empty-->
| <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 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 07:49, 20 November 2021