Difference between revisions of "Template:Margin"

From SI410
Jump to: navigation, search
 
Line 1: Line 1:
{{ifExists|test={{{5|}}}
+
{{onSwitchDo|on-1={{{1|}}}|on-2={{{2|}}}|on-3={{{3|}}}|on-4={{{4|}}}|on-5={{{5|}}}
<!------->|then=
+
|do-1=margin:{{{1}}}px;
<!------->|else={{ifExists|test={{{4|}}}
+
|do-2=margin-{{{1}}}:{{{2}}}px;
<!----------------------->|then=margin:{{{1}}}px {{{2}}}px {{{3}}}px {{{4}}}px;
+
|do-4=margin:{{{1}}}px {{{2}}}px {{{3}}}px {{{4}}}px;
<!----------------------->|else={{ifExists|test={{{3|}}}
+
}}
<!--------------------------------------->|then=
+
<!--------------------------------------->|else={{ifExists|test={{{2|}}}
+
<!------------------------------------------------------->|then=margin-{{{1}}}:{{{2}}}px;
+
<!------------------------------------------------------->|else={{ifExists|test={{{1|}}}
+
<!----------------------------------------------------------------------->|then=margin:{{{1}}}px;
+
<!----------------------------------------------------------------------->|else=}}}}}}}}}}
+

Latest revision as of 21:48, 5 November 2012