Template:Software documentation index/components/button: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This template is used as a component for the {{T|Software documentation index}}.
Below is the template code for editing. When saving, it is recommended to optimize the code by removing unnecessary characters.
<pre>
&lt;onlyinclude&gt;{{tr
| bgcolor = {{{6}}}
| {{td
| radius = {{#switch:{{{8|}}}|#default=|start=3px 0 0 0|end=0 0 0 2px}}
| align = center
| font-size = 14px
| bgcolor = {{#if:{{{4|}}}|{{{4}}}|#303030}}
| width = {{#if:{{{width|}}}|{{{width}}}|30%}}
|'''[[{{{1}}}|{{#switch:{{{7|}}}
  | #default = <span style="color:{{{5}}}">{{{2|{{{1}}}}}}</span>
  | true = {{{2|{{{1}}}}}}}}]]'''
  }}
  {{td|radius={{#switch:{{{8|}}}|#default=|start=0 3px 0 0|end=0 0 2px 0}}|{{{3}}}}}
}}&lt;/onlyinclude&gt;
</pre>
<includeonly>
<includeonly>


<onlyinclude>{{tr
<onlyinclude>{{tr|bgcolor={{{6}}}|{{td|radius={{#switch:{{{8|}}}|#default=|start=3px 0 0 0|end=0 0 0 2px}}|align=center|font-size=14px|bgcolor={{#if:{{{4|}}}|{{{4}}}|#303030}}|width={{#if:{{{width|}}}|{{{width}}}|30%}}|'''[[{{{1}}}|{{#switch:{{{7|}}}|#default=<span style="color:{{{5}}}">{{{2|{{{1}}}}}}</span>|true={{{2|{{{1}}}}}}}}]]'''}}{{td|radius={{#switch:{{{8|}}}|#default=|start=0 3px 0 0|end=0 0 2px 0}}|{{{3}}}}}}}</onlyinclude>
| bgcolor = {{{param6}}}
| {{td|radius=3px 0 0 0|align=center|font-size=14px|bgcolor={{{param4}}}|width=30%|'''[[{{{param2}}}|{{#switch:{{{param7|}}}|#default=<span style="color:{{{param5}}}">{{{param1|{{{param2}}}}}}</span>|true={{{param1|{{{param2}}}}}}}}]]'''}}
  {{td|radius=0 3px 0 0|{{{param3}}}}}
}}</onlyinclude>


</includeonly>
</includeonly>

Revision as of 02:09, 14 September 2025

This template is used as a component for the {{Software documentation index}}.

Below is the template code for editing. When saving, it is recommended to optimize the code by removing unnecessary characters.

<onlyinclude>{{tr
| bgcolor = {{{6}}}
| {{td
	| radius = {{#switch:{{{8|}}}|#default=|start=3px 0 0 0|end=0 0 0 2px}}
	| align = center
	| font-size = 14px
	| bgcolor = {{#if:{{{4|}}}|{{{4}}}|#303030}}
	| width = {{#if:{{{width|}}}|{{{width}}}|30%}}
	|'''[[{{{1}}}|{{#switch:{{{7|}}}
				  | #default = <span style="color:{{{5}}}">{{{2|{{{1}}}}}}</span>
				  | true = {{{2|{{{1}}}}}}}}]]'''
  }}
  {{td|radius={{#switch:{{{8|}}}|#default=|start=0 3px 0 0|end=0 0 2px 0}}|{{{3}}}}}
}}</onlyinclude>