Vorlage:Documentation/layout: Unterschied zwischen den Versionen

Aus How to be a Hero
Zur Navigation springen Zur Suche springen
/>Andrybak
(Fix formatting of documentation on Template pages. See for example, Special:Diff/317302499.)
/>Tacsipacsi
(move CSS to subpage)
Zeile 1: Zeile 1:
<div class="template-documentation mw-content-{{dir|{{int:lang}}}}" style="margin-top:1em; clear: both; border: 2px dotted #666666; padding: 0.6em; background-color: #ECFCF4;" lang="{{int:lang}}" dir="{{dir|{{int:lang}}}}">{{#ifeq:{{{heading|}}} | false | | <div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex;"><span style="font-size:150%">{{#if: {{{heading|}}} | {{{heading}}} |[[File:Test Template Info-Icon.svg|50px|link=|alt=Documentation icon]] {{{documentation|Documentation}}} }}</span><span class="mw-editsection plainlinks" id="doc_editlinks">[{{fullurl:{{{1}}}}} {{{view|{{int:vector-view-view}}}}}] • [{{fullurl:{{{1}}}|action=edit{{#ifexist: {{{1}}} ||&preload=Template:Documentation/preload}}}} {{{edit|{{int:vector-view-edit}}}}}] • [{{fullurl:{{{1}}}|action=history}} {{{history|{{int:vector-view-history}}}}}] • [{{fullurl:{{FULLPAGENAME}}|action=purge}} {{{purge|{{int:Code-rev-purge-link}}}}}]</span></div>}}
<div class="template-documentation">
<templatestyles src="Documentation/styles.css" />{{#ifeq:{{{heading|}}} | false | |
<div class="template-documentation-heading mw-content-{{dir|{{{lang}}}}}" lang="{{{lang}}}" dir="{{dir|{{{lang}}}}}"><span class="template-documentation-title">{{#if: {{{heading|}}} | {{{heading}}} |[[File:Test Template Info-Icon.svg|50px|link=|alt=]] {{{documentation|Documentation}}} }}</span><span class="mw-editsection plainlinks" id="doc_editlinks">[{{fullurl:{{{1}}}}} {{{view|{{int:vector-view-view/{{{lang}}}}}}}}] • [{{fullurl:{{{1}}}|action=edit{{#ifexist: {{{1}}} ||&preload=Template:Documentation/preload}}}} {{{edit|{{int:vector-view-edit/{{{lang}}}}}}}}] • [{{fullurl:{{{1}}}|action=history}} {{{history|{{int:vector-view-history/{{{lang}}}}}}}}] • [{{fullurl:{{FULLPAGENAME}}|action=purge}} {{{purge|{{int:Code-rev-purge-link/{{{lang}}}}}}}}]</span></div>}}
{{#if:{{{content|}}}<!--  
{{#if:{{{content|}}}<!--  
-->|<!-- do not show notice when /doc is not transcluded
-->|<!-- do not show notice when /doc is not transcluded
-->|<!-- show notice about transclusion -->''<small>{{{text|text parameter not translated in [[Template:Documentation]]}}}</small>''}}
-->|<!-- show notice about transclusion --><div class="template-documentation-transcludedfrom mw-content-{{dir|{{{lang}}}}}" lang="{{{lang}}}" dir="{{dir|{{{lang}}}}}">{{{text|text parameter not translated in [[Template:Documentation]]}}}</div>}}
{{#if:{{{content|}}}|{{{content}}}|
{{#if:{{{content|}}}|{{{content}}}|<nowiki />
<div style="clear:both;"></div>
{{{{{1}}}}}
{{{{{1}}}}}}}<div style="clear:both;"></div></div>{{#ifeq:{{SUBPAGENAME}}|sandbox|[[Category:Sandbox templates]]}}<noinclude>
}}
</div>{{#ifeq:{{SUBPAGENAME}}|sandbox|[[Category:Sandbox templates]]}}<noinclude>


[[Category:Layout templates]]
[[Category:Layout templates]]
</noinclude>
</noinclude>

Version vom 9. Juni 2019, 00:30 Uhr

Datei:Test Template Info-Icon.svg Documentation[{{fullurl:{{{1}}}}} Read] • [{{fullurl:{{{1}}}|action=edit&preload=Template:Documentation/preload}} Edit] • [{{fullurl:{{{1}}}|action=history}} View history] • ⧼Code-rev-purge-link/{{{lang}}}⧽
text parameter not translated in Template:Documentation

{{{{{1}}}}}