Template:Boxcode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Probably there are better ways to implement the "custom title" but i dont want to break/update the other pages using this template, i think in the way im doing it is not going to break them) |
||
Line 1: | Line 1: | ||
<div style="float:left; text-align:left; width:100%; background:#e5e5ff; border:3px ridge #8888ff;">[[image:Edit-copy_green.svg.png| | <div style="float:left; text-align:left; width:100%; background:#e5e5ff; border:3px ridge #8888ff;">[[image:Edit-copy_green.svg.png|link=|20x20px]]''{{{title|Code Sample}}}'' | ||
<div style="margin:10px; overflow:auto;"><noinclude></noinclude>{{{content|}}}<noinclude></noinclude></div> | <div style="margin:10px; margin-top:-10px; overflow:auto;"><noinclude></noinclude>{{{content|}}}<noinclude></noinclude></div> | ||
</div> | </div> | ||
<div style="clear:both;"></div><noinclude> | <div style="clear:both;"></div><noinclude> | ||
==Usage== | ==Usage== | ||
<nowiki>{{Boxcode|content=some | <nowiki>{{Boxcode|content=some code sample|title=code sample title}}</nowiki> | ||
==Example== | ==Example== | ||
{{Boxcode|content= | {{Boxcode|content= | ||
Line 13: | Line 13: | ||
here | here | ||
very long lines adds a horizontal scroll bar to the template, this preserves the width of wiki pages............................................................................................................................................................................................................................................................................................... o/ sup | very long lines adds a horizontal scroll bar to the template, this preserves the width of wiki pages............................................................................................................................................................................................................................................................................................... o/ sup | ||
</syntaxhighlight>}} | </syntaxhighlight>|title=Custom Title}} | ||
[[Category:templates]]</noinclude> | [[Category:templates]]</noinclude> |
Revision as of 23:48, 23 August 2021
Code Sample
Usage
{{Boxcode|content=some code sample|title=code sample title}}
Example
Custom Title
code
lines
here
very long lines adds a horizontal scroll bar to the template, this preserves the width of wiki pages............................................................................................................................................................................................................................................................................................... o/ sup