Template:Software/doc: Difference between revisions
Jump to navigation
Jump to search
m (→Styles) |
|||
Line 6: | Line 6: | ||
==== Modes ==== | ==== Modes ==== | ||
{| class="standard-table" width="100%" | {| class="standard-table" width="100%" | ||
|- style="position:sticky; top:0" | |- style="position:sticky; z-index:10; top:0" | ||
! width="15%" | Parameter | ! width="15%" | Parameter | ||
! width="40%" | Description | ! width="40%" | Description | ||
Line 31: | Line 31: | ||
Styles should be applied to any modes. Each mode can have its own unique styles, but the number of styles for these modes is common. | Styles should be applied to any modes. Each mode can have its own unique styles, but the number of styles for these modes is common. | ||
{| class="standard-table" width="100%" | {| class="standard-table" width="100%" | ||
|- style="position:sticky; top:0" | |- style="position:sticky; z-index:10; top:0" | ||
! width="15%" | Parameter | ! width="15%" | Parameter | ||
! width="40%" | Description | ! width="40%" | Description | ||
Line 58: | Line 58: | ||
Other parameters that should be used when creating a child template or when using a child template on a page. | Other parameters that should be used when creating a child template or when using a child template on a page. | ||
{| class="standard-table" width="100%" | {| class="standard-table" width="100%" | ||
|- style="position:sticky; top:0" | |- style="position:sticky; z-index:10; top:0" | ||
! width="15%" | Parameter | ! width="15%" | Parameter | ||
! width="40%" | Description | ! width="40%" | Description |
Revision as of 12:10, 8 June 2023

This is a documentation subpage for Template:Software.
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.
[Todo]
Future Desired Parameters
Modes
Parameter | Description | Example | Preview |
---|---|---|---|
No Parameters | Link with text. | Source 2 | |
{{{icon}}} | Icon with a link. | ![]() | |
{{{color}}} | Places the link color as text. | #F2A52B |
Styles
Styles should be applied to any modes. Each mode can have its own unique styles, but the number of styles for these modes is common.
Parameter | Description | Example | Preview |
---|---|---|---|
{{{0}}} | Style 0 (None) | Source 2 | |
No Parameters | Style 1 (Default) | Source 2 | |
From {{{2}}} to infinity | Infinite number of various styles. | See THE OWL's Sandbox |
Other
Other parameters that should be used when creating a child template or when using a child template on a page.
Parameter | Description | Example | Preview |
---|---|---|---|
{{{name}}} | Name of the software. | ||
{{{name:<lang code>}}} | Translation of the name. | 起源2引擎 | |
{{{name <2-4>}}} | Other software names. | ||
{{{name type}}} | Switches between available names. In the example, an abbreviation was used, which can be found in the section #An example of the future desired code of child templates. | Source 2 Engine | |
{{{icon}}} | Not to be confused with {{{icon}}} of #Modes.
The link icon. |
See THE OWL's Sandbox | |
{{{icon size}}} | The size of the link icon. | ||
{{{color}}} | Not to be confused with {{{color}}} of #Modes.
The color of the link. Can be text. |
Source 2 | |
{{{link}}} | Internal or Interwiki link. Overwrites all other links. | Source 2 | |
{{{link:external}}} | External link. | Source 2 | |
{{{addtext:before}}} | Adding text before the link content. | See THE OWL's Sandbox | |
{{{addtext:after}}} | Adding text after the link content. |
An example of the future desired code of child templates