Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Code: Difference between revisions

Template page
VivaRomania (talk | contribs)
m dammit
VivaRomania (talk | contribs)
m fixing some massive fuckups
Line 1: Line 1:
See Also: [[Template:Codeblock]]
<span style="font-family:monospace; {{#switch:{{{p|{{{preset|}}}}}}
<includeonly><onlyinclude><span style="font-family:monospace; {{#switch:{{{p|{{{preset|}}}}}}


|#default = padding:2px 4px; border-radius:3px; color:black; background:rgba(241, 233, 203, 1);
|#default = padding:2px 4px; border-radius:3px; color:black; background:rgba(241, 233, 203, 1);
Line 25: Line 24:
|1011 = padding:2px 4px; border-radius:0px; color:#00ff00; background:#000000;
|1011 = padding:2px 4px; border-radius:0px; color:#00ff00; background:#000000;


}} {{#if:{{{select|}}}|user-select:{{{select}}};}} {{{style|}}}">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1}}}|lang={{{highlight}}}|inline=1}}|{{{1}}}}}</span></onlyinclude></includeonly>
}} {{#if:{{{select|}}}|user-select:{{{select}}};}} {{{style|}}}">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1}}}|lang={{{highlight}}}|inline=1}}|{{{1}}}}}</span>


<noinclude>
== Documentation ==
== Documentation ==
Just go to Valve Dev Community for their documentation, only difference is formatting (styling) and presets which are listed below. Link: [https://developer.valvesoftware.com/wiki/Template:Code VDC Code Documentation]
Just go to Valve Dev Community for their documentation, only difference is formatting (styling) and presets which are listed below. Link: [https://developer.valvesoftware.com/wiki/Template:Code VDC Code Documentation]
Line 65: Line 65:


{{code|preset=1011|Preset 1011 - Hacker Green (Squared)}}
{{code|preset=1011|Preset 1011 - Hacker Green (Squared)}}
<noinclude>
 
[[Category:Layout templates]]
[[Category:Layout templates]]
</noinclude>
</noinclude>