Difference between revisions of "Template:Box"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | {{#switch: {{{2}}} |right={{#vardefine:pos|float:right;}}|center={{#vardefine:pos|margin:auto;}}}}<div style="{{#var:pos}}padding:5px;border:1px solid gray;border-radius:6px;">{{{1}}}</div> | + | {{#switch: {{{2}}} |right={{#vardefine:pos|float:right;}}|center={{#vardefine:pos|margin:auto;}}}}<div id="this_box" style="{{#var:pos}}padding:5px;border:1px solid gray;border-radius:6px;">{{{1}}}</div><nowiki><script>$("#this_box").appendTo("#firstHeading");</script></nowiki> |
<noinclude> | <noinclude> | ||
<pre>{{Box | text | right or center}}</pre> | <pre>{{Box | text | right or center}}</pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 15:10, 5 October 2019
{{{1}}}
<script>$("#this_box").appendTo("#firstHeading");</script>
{{Box | text | right or center}}