Permanently protected template

Template:Description: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
Content deleted Content added
Maro21 (talk | contribs)
revert - doesn't work
Tag: Undo
Add TemplateStyles with Template:Description/styles.css for dark mode compatibility.
Line 1: Line 1:
<templatestyles src="Template:Description/styles.css" /><!--
<!--
# Set the displayed page title for the including page (disabled to preserve the canonical capitalization, it's completely unnecessary to alter it, and causes unnecessary errors)
# Set the displayed page title for the including page (disabled to preserve the canonical capitalization, it's completely unnecessary to alter it, and causes unnecessary errors)
The correct capitalisation is properly set now within "Template:(Tag|Relation)Pagename" which handles languages codes (namespaces or not) separately for "Tag:" and "Relation:" prefixes in pagenames.
The correct capitalisation is properly set now within "Template:(Tag|Relation)Pagename" which handles languages codes (namespaces or not) separately for "Tag:" and "Relation:" prefixes in pagenames.
Line 38: Line 38:
{|class="{{#if: {{{class|}}}
{|class="{{#if: {{{class|}}}
| {{{class}}}
| {{{class}}}
| description {{{type}}}description
| description {{{type}}}description DescriptionBox
}}" style = "{{#if: {{{style|}}}
}}" style = "{{#if: {{{style|}}}
| {{{style|}}}
| {{{style|}}}
Line 48: Line 48:
| #default = float:right;clear:right;margin-right:0;
| #default = float:right;clear:right;margin-right:0;
}}
}}
}}background:#FFF;color:#252525;border:1px solid #AAA;width:210px;padding:2px .5em;
}}width:210px;padding:2px .5em;
}}"<!--
}}"<!--


Line 295: Line 295:
-->{{#if: {{{key|}}}
-->{{#if: {{{key|}}}
| <nowiki />
| <nowiki />
{{!}}-class="d_taginfo content"
{{!}}-class="d_taginfo content" style="color:#000;"
{{!}} {{#if: {{{value|}}}
{{!}} {{#if: {{{value|}}}
| {{Taginfo2|{{{key|}}}|{{{value|}}}|footer=no|url={{#ifeq: {{{project|{{ROOTPAGENAME}}}}} | OpenHistoricalMap | https://taginfo.openhistoricalmap.org }}}}
| class="darkmode-invert"{{!}}{{Taginfo2|{{{key|}}}|{{{value|}}}|footer=no|url={{#ifeq: {{{project|{{ROOTPAGENAME}}}}} | OpenHistoricalMap | https://taginfo.openhistoricalmap.org }}}}
| {{Taginfo2|{{{key|}}}|footer=no|url={{#ifeq: {{{project|{{ROOTPAGENAME}}}}} | OpenHistoricalMap | https://taginfo.openhistoricalmap.org }}}}
| class="darkmode-invert"{{!}}{{Taginfo2|{{{key|}}}|footer=no|url={{#ifeq: {{{project|{{ROOTPAGENAME}}}}} | OpenHistoricalMap | https://taginfo.openhistoricalmap.org }}}}
}}
}}
}} }}
}} }}
| relation = {{#if: {{{rtype|}}}
| relation = {{#if: {{{rtype|}}}
| <nowiki />
| <nowiki />
{{!}}-class="d_taginfo content"
{{!}}-class="d_taginfo content" style="color:#000;"
{{!}}{{Taginfo2|rtype={{{rtype|}}}|footer=no|url={{#ifeq: {{{project|{{ROOTPAGENAME}}}}} | OpenHistoricalMap | https://taginfo.openhistoricalmap.org }}}}
{{!}} class="darkmode-invert"{{!}}{{Taginfo2|rtype={{{rtype|}}}|footer=no|url={{#ifeq: {{{project|{{ROOTPAGENAME}}}}} | OpenHistoricalMap | https://taginfo.openhistoricalmap.org }}}}
}}
}}
| key-prefix = <nowiki />
| key-prefix = <nowiki />

Revision as of 23:52, 9 May 2025

Status: undefined