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>
 
{{#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>
<script>jQuery("#this_box").detach().appendTo('#firstHeading');</script>
+
<nowiki><script>jQuery("#this_box").detach().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 16:00, 5 October 2019

{{{1}}}

<script>jQuery("#this_box").detach().appendTo('#firstHeading');</script>

{{Box | text | right or center}}