Difference between revisions of "Template:M"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
|} | |} | ||
</noinclude> | </noinclude> | ||
− | <includeonly> | + | <includeonly>{{#ifeq:{{{5|}}}|{{{5}}}|<div style="padding-left:{{{1}}}px;padding-top:{{{2}}}px;padding-right:{{{3}}}px;padding-bottom:{{{4}}}px">{{{5}}}</div>|{{#ifeq:{{{4|}}}|{{{4}}}|<div style="padding-left:{{{1}}}px;padding-top:{{{2}}}px;padding-right:{{{3}}}px">{{{4}}}</div>|{{#ifeq:{{{3|}}}|{{{3}}}|<div style="padding-top:{{{1}}}px;padding-bottom:{{{2}}}px">{{{3}}}</div>|{{#ifeq:{{{2|}}}|{{{2}}}|<div style="padding:{{{1}}}px;">{{{2}}}</div>|}}}}}}}}</includeonly> |
− | {{#ifeq:{{{5|}}}|{{{5}}}|<div style="padding-left:{{{1}}}px;padding-top:{{{2}}}px;padding-right:{{{3}}}px;padding-bottom:{{{4}}}px">{{{5}}}</div>|{{#ifeq:{{{4|}}}|{{{4}}}|<div style="padding-left:{{{1}}}px;padding-top:{{{2}}}px;padding-right:{{{3}}}px">{{{4}}}</div>|{{#ifeq:{{{3|}}}|{{{3}}}|<div style="padding-top:{{{1}}}px;padding-bottom:{{{2}}}px">{{{3}}}</div>|{{#ifeq:{{{2|}}}|{{{2}}}|<div style="padding:{{{1}}}px;">{{{2}}}</div>| }}}}}}}} | ||
− | </includeonly> |
Revision as of 06:00, 1 October 2020
m
stands for "marginer" and can be used to set margin to any element.
Code | Example | Result |
---|---|---|
{{raw:data:m|10|element}} |
{{raw:data:m|10|actual text}} |
actual text |
{{raw:data:m|10|5|element}} |
{{raw:data:m|10|5|actual text}} |
actual text |
{{raw:data:m|10|5|20|element}} |
{{raw:data:m|10|5|20|actual text}} |
actual text |
{{raw:data:m|10|20|30|50|element}} |
{{raw:data:m|10|20|30|50|actual text}} |
actual text |