Template:Software documentation index/doc: Difference between revisions
Jump to navigation
Jump to search
| Line 21: | Line 21: | ||
| Top indent for the entire table. | | Top indent for the entire table. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|borderColor}}</code> | ||
| Table border color. | | Table border color. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|headerGradientColors}}</code> | ||
| The colors of the gradient for the background of the header. | | The colors of the gradient for the background of the header. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|headerTextColor}}</code> | ||
| Text color of headers. | | Text color of headers. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|buttonBG}}</code> | ||
| The color of the background behind the link button. | | The color of the background behind the link button. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|buttonTextColor}}</code> | ||
| The color of the link button text. | | The color of the link button text. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|rowColor1}}</code> | ||
| Color of the first row of the table.<br>Default value is <code>#252525</code>. | | Color of the first row of the table.<br>Default value is <code>#252525</code>. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|rowColor2}}</code> | ||
| Color of the second row of the table.<br>Default value is <code>#202020</code>. | | Color of the second row of the table.<br>Default value is <code>#202020</code>. | ||
|- | |- | ||
| Line 46: | Line 46: | ||
{{note|Created mainly for the to-do list, so that it doesn't look too bad next to the table.}} | {{note|Created mainly for the to-do list, so that it doesn't look too bad next to the table.}} | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|commentStyle}}</code> | ||
| Custom Comment CSS. | | Custom Comment CSS. | ||
{{Warning|Overwrites the original style!}} | {{Warning|Overwrites the original style!}} | ||
| Line 53: | Line 53: | ||
| Software banner. | | Software banner. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|bannerwidth}}</code> | ||
| Banner width. | | Banner width. | ||
|- | |- | ||
| Line 59: | Line 59: | ||
| Software description. | | Software description. | ||
|- | |- | ||
| align = "center" | <code>{{param| | | align = "center" | <code>{{param|descwidth}}</code> | ||
| Software description width. Used when you need to make the text look nicer. | | Software description width. Used when you need to make the text look nicer. | ||
|- | |- | ||
| align = "center" | <code>{{param|link <1-6>}}</code> | | align = "center" | <code>{{param|link<1-6>}}</code> | ||
| Link above the table. Maximum 6. | | Link above the table. Maximum 6. | ||
|- | |- | ||
| Line 68: | Line 68: | ||
| Table of Contents. Useful if the content is divided into headers. | | Table of Contents. Useful if the content is divided into headers. | ||
|- | |- | ||
| align = "center" | <code>{{param|button <1-48>}}</code> | | align = "center" | <code>{{param|button<1-48>}}</code> | ||
| The displayed name of the specified button. | | The displayed name of the specified button. | ||
|- | |- | ||
| align = "center" | <code>{{param|button <1-48> link}}</code> | | align = "center" | <code>{{param|button<1-48>link}}</code> | ||
| Link to the page for the specified button. | | Link to the page for the specified button. | ||
|- | |- | ||
| align = "center" | <code>{{param|button <1-48> desc}}</code> | | align = "center" | <code>{{param|button<1-48>desc}}</code> | ||
| Description of the page linked to by the specified button. | | Description of the page linked to by the specified button. | ||
|- | |- | ||
| align = "center" | <code>{{param|button <1-48> header}}</code> | | align = "center" | <code>{{param|button<1-48>header}}</code> | ||
| Adds a heading above the specified button. This is useful if the software page prefers an option without redirects to guide pages, such as the page about [[:Category:Level Design|level design in Source]]. | | Adds a heading above the specified button. This is useful if the software page prefers an option without redirects to guide pages, such as the page about [[:Category:Level Design|level design in Source]]. | ||
|- | |- | ||
| align = "center" | <code>{{param|button <1-48> redlink}}</code> | | align = "center" | <code>{{param|button<1-48>redlink}}</code> | ||
| If the page does not exist, use this parameter to remove the custom link color. {{important|The custom color should not replace red links, so as not to confuse the user.}} | | If the page does not exist, use this parameter to remove the custom link color. {{important|The custom color should not replace red links, so as not to confuse the user.}} | ||
| align = "center" | <code>{{param|button<2-48>radius}}</code> | |||
| The radius of the table row with the button.<br>Available values: | |||
* default - empty. | |||
* start - the default is specified for the first button. | |||
* end - specify if the button is the last one. | |||
|- | |- | ||
|} | |} | ||
== Example and Preview == | == Example and Preview == | ||
<pre> | <pre> | ||
Revision as of 01:25, 14 September 2025
This is a documentation subpage for Template:Software documentation index.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Table for use in software documentation indexes, such as Source SDK Index.
Components
This template uses components to simplify working with repetitive code. Below is a list of all components included in the template.
Parameters
| Parameter | Description | Example and Preview | |
|---|---|---|---|
{{{width}}}
|
Table width. | See #Example and Preview. | |
{{{topindent}}}
|
Top indent for the entire table. | ||
{{{borderColor}}}
|
Table border color. | ||
{{{headerGradientColors}}}
|
The colors of the gradient for the background of the header. | ||
{{{headerTextColor}}}
|
Text color of headers. | ||
{{{buttonBG}}}
|
The color of the background behind the link button. | ||
{{{buttonTextColor}}}
|
The color of the link button text. | ||
{{{rowColor1}}}
|
Color of the first row of the table. Default value is #252525.
| ||
{{{rowColor2}}}
|
Color of the second row of the table. Default value is #202020.
| ||
{{{comment}}}
|
Comment above the software banner.
| ||
{{{commentStyle}}}
|
Custom Comment CSS.
| ||
{{{banner}}}
|
Software banner. | ||
{{{bannerwidth}}}
|
Banner width. | ||
{{{desc}}}
|
Software description. | ||
{{{descwidth}}}
|
Software description width. Used when you need to make the text look nicer. | ||
{{{link<1-6>}}}
|
Link above the table. Maximum 6. | ||
{{{toc}}}
|
Table of Contents. Useful if the content is divided into headers. | ||
{{{button<1-48>}}}
|
The displayed name of the specified button. | ||
{{{button<1-48>link}}}
|
Link to the page for the specified button. | ||
{{{button<1-48>desc}}}
|
Description of the page linked to by the specified button. | ||
{{{button<1-48>header}}}
|
Adds a heading above the specified button. This is useful if the software page prefers an option without redirects to guide pages, such as the page about level design in Source. | ||
{{{button<1-48>redlink}}}
|
If the page does not exist, use this parameter to remove the custom link color. |
{{{button<2-48>radius}}}
|
The radius of the table row with the button. Available values:
|
Example and Preview
{{Software documentation index
| width = 750px
| borderColor = #F2A52B4a
| buttonBG = #2F2A26
| buttonTextColor = #E3C798
| headerGradColors = #594027,#312717
| comment = Gordon Freeman was here.
| banner = Placeholder for SDI banner.jpg
| bannerwidth = 566px
| desc = '''Sweet Tools''' is free software distributed through {{steamicon|1}} for creating cool games without any programming knowledge.
| descwidth = 550px
| link1 = '''[[#Example and Preview|Download and Installation]]'''
| link2 = '''[[#Example and Preview|Release Notes]]'''
| button1 = Introduction
| button1link = #Example and Preview
| button1desc = Introduction to using this amazing toolkit.
| button2 = Level Design
| button2link = #Something about mapping
| button2desc = Create [[Map (level design)|levels]] with an incredibly cute map editor.
| button2header = Something about mapping
| button3 = Materials
| button3link = #Something about mapping
| button3desc = Learn how to add a character's face to a texture that will only be seen many years later.
}}
Gordon Freeman was here.
| Introduction | Introduction to using this amazing toolkit. |
| Something about mapping | |
| Level Design | Create levels with an incredibly cute map editor. |
| Materials | Learn how to add a character's face to a texture that will only be seen many years later. |
| |||||||||||
See also
- {{DIP topicon}}