Template:Boxcode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
{{clear}} | {{clear}} | ||
<div style="border:1px dashed #8080b0; height:{{{height|auto}}}; overflow:auto;"> | <div style="border:1px dashed #8080b0; height:{{{height|auto}}}; overflow:auto;"> | ||
<div style="margin-top:-14px; margin-bottom:-14px;">{{{ | <div style="margin-top:-14px; margin-bottom:-14px;">{{{code|code}}}</div> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 13: | Line 13: | ||
<br><br>{{clear}} | <br><br>{{clear}} | ||
== Usage == | == Usage == | ||
<nowiki>{{Boxcode| | <nowiki>{{Boxcode|code=Code Sample}}</nowiki> | ||
<br>...or...<br> | <br>...or...<br> | ||
<nowiki>{{Boxcode|title=Custom Title| | <nowiki>{{Boxcode|title=Custom Title|code=Code Sample}}</nowiki> | ||
<br>...or...<br> | <br>...or...<br> | ||
<nowiki>{{Boxcode|width=50%|title=Custom Title| | <nowiki>{{Boxcode|width=50%|title=Custom Title|code=Code Sample}}</nowiki> | ||
<br>...or...<br> | <br>...or...<br> | ||
<nowiki>{{Boxcode|width=50%|float=right|title=Custom Title| | <nowiki>{{Boxcode|width=50%|float=right|title=Custom Title|code=Code Sample}}</nowiki> | ||
<br>...or...<br> | <br>...or...<br> | ||
<nowiki>{{Boxcode|width=500px|height=500px|float=center|title=Custom Title| | <nowiki>{{Boxcode|width=500px|height=500px|float=center|title=Custom Title|code=Code Sample}}</nowiki> | ||
== Examples == | == Examples == | ||
{{Boxcode|title=Custom Title| | {{Boxcode|title=Custom Title|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
Line 31: | Line 31: | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=50%|float=left|title=width=50% float=left| | {{Boxcode|width=50%|float=left|title=width=50% float=left|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
Line 37: | Line 37: | ||
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages | very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=50%|float=right|title=width=50% float=right| | {{Boxcode|width=50%|float=right|title=width=50% float=right|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
Line 44: | Line 44: | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=700px|float=left|title=width=700px float=left| | {{Boxcode|width=700px|float=left|title=width=700px float=left|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
Line 50: | Line 50: | ||
very long lines adds a horizontal scroll bar | very long lines adds a horizontal scroll bar | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=auto|float=right|title=width=auto float=right| | {{Boxcode|width=auto|float=right|title=width=auto float=right|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
Line 56: | Line 56: | ||
very long lines adds a horizontal scroll bar | very long lines adds a horizontal scroll bar | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=auto|float=right|title=width=auto float=right| | {{Boxcode|width=auto|float=right|title=width=auto float=right|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
Line 62: | Line 62: | ||
very long lines adds a horizontal scroll bar | very long lines adds a horizontal scroll bar | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=350px|height=200px|float=right|title=width=350px height=200px float=right| | {{Boxcode|width=350px|height=200px|float=right|title=width=350px height=200px float=right|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
Line 77: | Line 77: | ||
############################################### | ############################################### | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=auto|height=auto|float=left|title=width=auto height=auto float=left| | {{Boxcode|width=auto|height=auto|float=left|title=width=auto height=auto float=left|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines | ||
<!--here--> | <!--here--> | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Boxcode|width=150px|height=auto|float=left|title=width=150px height=auto float=left| | {{Boxcode|width=150px|height=auto|float=left|title=width=150px height=auto float=left|code=<syntaxhighlight lang="xml"> | ||
<code> | <code> | ||
lines | lines |
Revision as of 03:37, 30 August 2021
Code Sample
code
Usage
{{Boxcode|code=Code Sample}}
...or...
{{Boxcode|title=Custom Title|code=Code Sample}}
...or...
{{Boxcode|width=50%|title=Custom Title|code=Code Sample}}
...or...
{{Boxcode|width=50%|float=right|title=Custom Title|code=Code Sample}}
...or...
{{Boxcode|width=500px|height=500px|float=center|title=Custom Title|code=Code Sample}}
Examples
Custom Title
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages ...............................................................................................................................................................................................................................................................................................o/sup
width=50% float=left
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages
width=50% float=right
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages
width=700px float=left
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
width=auto float=right
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
width=auto float=right
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
width=350px height=200px float=right
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
###############################################
width=auto height=auto float=left
<code>
lines
<!--here-->
width=150px height=auto float=left
<code>
lines
<!--here-->