Template:Stack: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported: Uploading templates: Br separated entries, Imgur, Smallsup)
en>JPG-GR
(add parameter listed in template documentation to list of known parameters (to help clear Category:Pages using stack with unknown parameters))
Line 1: Line 1:
<table class="mw-stack" cellspacing="{{{cellspacing|1}}}" cellpadding="0"
<templatestyles src="Stack/styles.css"/><div class="mw-stack stack-container {{#switch:{{{float|right}}}|left=stack-{{#switch:{{{margin|}}}|1|true|y|yes=margin-}}{{#switch:{{{clear|}}}|left|true=clear-}}left|right=stack-{{#switch:{{{margin|}}}|1|true|y|yes=margin-}}{{#switch:{{{clear|}}}|right|true=clear-}}right}}"><!--
      style="{{{style|{{#switch:{{{clear|}}}
-->{{#if:{{{1|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{1}}}</div>
                        | true = clear:{{{float|right}}};
}}{{#if:{{{2|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{2}}}</div>
                        | left|right|both = clear:{{{clear|}}};
}}{{#if:{{{3|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{3}}}</div>
                        | #default=
}}{{#if:{{{4|}}}|<div style="overflow: hidden; margin: {{{cellspacing|1}}}px;">{{{4}}}</div>
                      }} float:{{{float|right}}}; background:transparent; margin:0; padding:0;<!--
}}{{#if:{{{5|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{5}}}</div>
          -->}}}"><!--
}}{{#if:{{{6|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{6}}}</div>
    --><tr><td>{{{1|}}}</td></tr><!--
}}{{#if:{{{7|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{7}}}</div>
    -->{{#if:{{{2|}}} |<tr><td>{{{2}}}</td></tr>}}<!--
}}{{#if:{{{8|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{8}}}</div>
    -->{{#if:{{{3|}}} |<tr><td>{{{3}}}</td></tr>}}<!--
}}{{#if:{{{9|}}}|<div class="stack-item" {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing|1}}}px"}}>{{{9}}}</div>
    -->{{#if:{{{4|}}} |<tr><td>{{{4}}}</td></tr>}}<!--
}}</div>{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using stack with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Stack]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | cellspacing | clear | float | margin
    -->{{#if:{{{5|}}} |<tr><td>{{{5}}}</td></tr>}}<!--
}}<noinclude>
    -->{{#if:{{{6|}}} |<tr><td>{{{6}}}</td></tr>}}<!--
{{documentation}}
    -->{{#if:{{{7|}}} |<tr><td>{{{7}}}</td></tr>}}<!--
</noinclude>
    -->{{#if:{{{8|}}} |<tr><td>{{{8}}}</td></tr>}}<!--
    -->{{#if:{{{9|}}} |<tr><td>{{{9}}}</td></tr>}}<!--
--></table><!--
 
--><noinclude>{{Documentation}}</noinclude>

Revision as of 01:10, 20 September 2020