Template:Software documentation index/components/button: Difference between revisions
Jump to navigation
Jump to search
Warning:If, when optimizing the code, the closing brackets of the table row {{tr}} are not on a new line, extra paragraphs will start to appear in the template.
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
Below is the template code for editing. When saving, it is recommended to optimize the code by removing unnecessary characters. | Below is the template code for editing. When saving, it is recommended to optimize the code by removing unnecessary characters. | ||
{{Warning|If, when optimizing the code, the closing brackets of the table row are not on a new line, extra paragraphs will start to appear in the template.}} | {{Warning|If, when optimizing the code, the closing brackets of the table row <sup>{{T|tr}}</sup> are not on a new line, extra paragraphs will start to appear in the template.}} | ||
<pre> | <pre> | ||
| Line 9: | Line 9: | ||
| bgcolor = {{{6}}} | | bgcolor = {{{6}}} | ||
| {{td | | {{td | ||
| radius = {{#switch:{{{8|}}}|#default=|start=3px 0 0 0|end=0 0 0 | | radius = {{#switch:{{{8|}}}|#default=|start=3px 0 0 0|end=0 0 0 3px}} | ||
| align = center | | align = center | ||
| font-size = 14px | | font-size = 14px | ||
| Line 18: | Line 18: | ||
| true = {{{2|{{{1}}}}}}}}]]''' | | true = {{{2|{{{1}}}}}}}}]]''' | ||
}} | }} | ||
{{td|radius={{#switch:{{{8|}}}|#default=|start=0 3px 0 0|end=0 0 | {{td|radius={{#switch:{{{8|}}}|#default=|start=0 3px 0 0|end=0 0 3px 0}}|{{{3}}}}} | ||
}}</onlyinclude> | }}</onlyinclude> | ||
</pre> | </pre> | ||
<includeonly> | <includeonly> | ||
<onlyinclude>{{tr|bgcolor={{{6}}}|{{td|radius={{#switch:{{{8|}}}|#default=|start=3px 0 0 0|end=0 0 0 | <onlyinclude>{{tr|bgcolor={{{6}}}|{{td|radius={{#switch:{{{8|}}}|#default=|start=3px 0 0 0|end=0 0 0 3px}}|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 3px 0}}|{{{3}}}}} | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Latest revision as of 02:25, 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 3px}}
| 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 3px 0}}|{{{3}}}}}
}}</onlyinclude>