Template:Code: Difference between revisions

From TF2 Classified Wiki
Jump to navigation Jump to search
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>

Revision as of 01:37, 18 August 2025

{{{1}}}


Documentation

Just go to Valve Dev Community for their documentation, only difference is formatting (styling) and presets which are listed below. Link: VDC Code Documentation

Presets

Feel free to add more!

Default - Pale


Rounded

Preset 1 - Pale


Preset 2 - Brown


Preset 3 - Pale (Dark Outlined)


Preset 4 - Brown (Dark Outlined)


Preset 5 - Pale (Light Outlined)


Preset 6 - Brown (Light Outlined)


Squared

Preset 7 - Pale


Preset 8 - Brown


Preset 9 - Pale (Dark Outlined)


Preset 10 - Brown (Dark Outlined)


Preset 11 - Pale (Light Outlined)


Preset 12 - Brown (Light Outlined)


Special

Preset 1010 - Hacker Green (Rounded)


Preset 1011 - Hacker Green (Squared)