Difference between revisions of "Template:Stack"
Jump to navigation
Jump to search
test>Frietjes (float=left/clear=left or float=right/clear=right is fine, so support those) |
test>Frietjes (looks like no one is using clear=both, so removing, will remove unusual tracking categories in a bit) |
||
| Line 1: | Line 1: | ||
{{#ifeq:{{{style|a}}}|{{{style|b}}}|{{#if:{{{style|}}}|[[Category:Pages using stack with a style parameter]]|[[Category:Pages using stack with a blank style parameter]]}}|}}{{#switch:{{{float|right}}}|left|right=|#default=[[Category:Pages using stack with an unusual float value]]}}{{#switch:{{{clear|}}}|=|true|false=|left={{#ifeq:{{{float|right}}}|left||[[Category:Pages using stack with an unusual clear value|{{{clear|}}} ]]}}|right={{#ifeq:{{{float|right}}}|right||[[Category:Pages using stack with an unusual clear value|{{{clear|}}} ]]}}|#default=[[Category:Pages using stack with an unusual clear value|{{{clear|}}} ]]}}{{#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 | style }}<templatestyles src="Stack/styles.css"/><div class="mw-stack stack-container {{#switch:{{{float|right}}}|left=stack-{{#switch:{{{clear|}}}|left|true=clear-}}left|right=stack-{{#switch:{{{clear|}}}|right|true=clear-}}right}} mobile-float-reset" | {{#ifeq:{{{style|a}}}|{{{style|b}}}|{{#if:{{{style|}}}|[[Category:Pages using stack with a style parameter]]|[[Category:Pages using stack with a blank style parameter]]}}|}}{{#switch:{{{float|right}}}|left|right=|#default=[[Category:Pages using stack with an unusual float value]]}}{{#switch:{{{clear|}}}|=|true|false=|left={{#ifeq:{{{float|right}}}|left||[[Category:Pages using stack with an unusual clear value|{{{clear|}}} ]]}}|right={{#ifeq:{{{float|right}}}|right||[[Category:Pages using stack with an unusual clear value|{{{clear|}}} ]]}}|#default=[[Category:Pages using stack with an unusual clear value|{{{clear|}}} ]]}}{{#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 | style }}<templatestyles src="Stack/styles.css"/><div class="mw-stack stack-container {{#switch:{{{float|right}}}|left=stack-{{#switch:{{{clear|}}}|left|true=clear-}}left|right=stack-{{#switch:{{{clear|}}}|right|true=clear-}}right}} mobile-float-reset" | ||
| − | style=" | + | style="{{{style|}}}"><!-- |
| − | |||
| − | |||
| − | |||
-->{{#if:{{{1|}}}|<div style="overflow: hidden; margin: {{{cellspacing|1}}}px;">{{{1}}}</div>}}<!-- | -->{{#if:{{{1|}}}|<div style="overflow: hidden; margin: {{{cellspacing|1}}}px;">{{{1}}}</div>}}<!-- | ||
-->{{#if:{{{2|}}}|<div style="overflow: hidden; margin: {{{cellspacing|1}}}px;">{{{2}}}</div>}}<!-- | -->{{#if:{{{2|}}}|<div style="overflow: hidden; margin: {{{cellspacing|1}}}px;">{{{2}}}</div>}}<!-- | ||