Template:Boxcode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(more tests... boxcode templates broken temporally) |
||
Line 1: | Line 1: | ||
<div style="float:left; width:100%; background:#e5e5ff; border:3px ridge #8888ff;"> | <div style="float:left; width:100%; background:#e5e5ff; border:3px ridge #8888ff;">[[image:Edit-copy_green.svg.png|Code|20x20px]]''{{{lang}}} code'' | ||
<div style="margin:10px; overflow:auto;"><noinclude></noinclude>{{{ | <div style="margin:10px; overflow:auto;"><noinclude></noinclude>{{{code|}}}<syntaxhighlight lang="{{{lang}}}"><noinclude></noinclude></div> | ||
</div> | </div> | ||
<div style="clear:both;"></div><noinclude> | <div style="clear:both;"></div><noinclude> | ||
==Usage== | ==Usage== | ||
<nowiki>{{Boxcode| | <nowiki>{{Boxcode|lang|code=some code}}</nowiki> | ||
==Example== | ==Example== | ||
{{Boxcode| | {{Boxcode|xml|code= | ||
code | code | ||
lines | lines |
Revision as of 18:52, 7 November 2014
{{{lang}}} code
}}
<noinclude></noinclude></div>
</div>
<div style="clear:both;"></div><noinclude>
==Usage==
<nowiki>{{Boxcode|lang|code=some code}}</nowiki>
==Example==
{{Boxcode|xml|code=
code
lines
here
very long lines adds a horizontal scroll bar to the template, this preserves the width of wiki pages............................................................................................................................................................................................................................................................................................... o/ sup