Editing Template:Boxcodelite
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<div style="float:{{{float|right}}}; margin:5px; padding:3px; font-size: | <div style="float:{{{float|right}}}; margin:5px; padding:3px; font-size:85%; background:#f7c7a7; border:3px double #c79777; box-shadow: 4px 4px 2px 1px #e0e0e0;"> | ||
{{#if:{{{title|}}} | <div style="margin-top:-3px; text-align:center; font-weight: | {{#if:{{{title|}}} | <div style="margin-top:-3px; text-align:center; font-weight:bold;">{{{title|Custom Title}}}</div> | }} | ||
{{#ifeq:{{{syntax}}} | wiki | {{#tag:div|{{{code|Code Sample}}}|style="min-width:330px; padding:5px; background: | {{#ifeq:{{{syntax}}} | wiki | {{#tag:div|{{{code|Code Sample}}}|style="min-width:330px; padding:5px; background:#f7f4f2; border:1px dashed #c79777; font-family:monospace; font-size:1.2em"}} | {{#tag:pre|{{{code|Code Sample}}}|style="min-width:330px; padding:5px; background:#f7f4f2; border:1px dashed #c79777;"}}}} | ||
{{#if:{{{ps2configrev|}}} | <div style="height:13px; text-align:left; font-size: | {{#if:{{{ps2configrev|}}} | <div style="height:13px; text-align:left; font-size:90%;">{{ps2configrev|{{{ps2configrev|}}}}}</div> | }} | ||
</div><noinclude> | </div><noinclude> | ||
Line 11: | Line 11: | ||
*<nowiki>{{</nowiki>boxcodelite|'''float'''=left|'''title'''=Custom Title|'''code'''=Code Sample<nowiki>}}</nowiki> | *<nowiki>{{</nowiki>boxcodelite|'''float'''=left|'''title'''=Custom Title|'''code'''=Code Sample<nowiki>}}</nowiki> | ||
*<nowiki>{{</nowiki>boxcodelite|'''syntax'''=wiki|'''float'''=left|'''title'''=Custom Title|'''code'''=Code Sample<nowiki>}}</nowiki> | *<nowiki>{{</nowiki>boxcodelite|'''syntax'''=wiki|'''float'''=left|'''title'''=Custom Title|'''code'''=Code Sample<nowiki>}}</nowiki> | ||
== Examples == | == Examples == | ||
Line 52: | Line 50: | ||
{{clear|right}} | {{clear|right}} | ||
{{boxcodelite|syntax=wiki | {{boxcodelite|syntax=wiki|title=Text highlight|code= | ||
FF FF <span style="background:#ffff00;">00 00</span> 4D 14 <span style="background:#ff4040;">FF FF FF FF FF</span> <span style="background:#ff8080;">81 88 81 88 FF</span><br> | FF FF <span style="background:#ffff00;">00 00</span> 4D 14 <span style="background:#ff4040;">FF FF FF FF FF</span> <span style="background:#ff8080;">81 88 81 88 FF</span><br> | ||
5A 00 5B 00 02 00 60 00 61 00 02 00 7D 00 7D 00<br> | 5A 00 5B 00 02 00 60 00 61 00 02 00 7D 00 7D 00<br> | ||
Line 63: | Line 61: | ||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF<br> | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF<br> | ||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF<br> | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF<br> | ||
FF FF | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ||
}} | |||
</div> | </div> | ||