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 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>
+
{{#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>
 +
<code><script>$("#firstHeading").append("#this_box");</script></code>
 
<noinclude>
 
<noinclude>
 
<pre>{{Box | text | right or center}}</pre>
 
<pre>{{Box | text | right or center}}</pre>
 
</noinclude>
 
</noinclude>

Revision as of 15:15, 5 October 2019

{{{1}}}

<script>$("#firstHeading").append("#this_box");</script>

{{Box | text | right or center}}