Template:Software/doc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
(One Big Todo) |
||
Line 1: | Line 1: | ||
{{Doc/subpage}} | |||
{{ | {{Todo}} | ||
=== | == Future Desired Parameters == | ||
==== Modes ==== | |||
{| class="standard-table" width="100%" | |||
{{CodeBlock| | |- style="position:sticky; top:0" | ||
! width="15%" | Parameter | |||
| {{ | ! width="40%" | Description | ||
| | ! Example | ||
| | ! width="20%" | Preview | ||
| link = | |- | ||
| | | align="center" | '''No Parameters''' | ||
| | | Link with text. | ||
| | | {{CodeBlock|<nowiki>{{Source 2}}</nowiki>}} | ||
| align="center" | [[Source 2]] | |||
|- | |||
| align="center" | {{Code|preset=1| {{Param|icon}} }} | |||
| Icon with a link. | |||
| {{CodeBlock|<nowiki>{{Source 2|icon}}</nowiki>}} | |||
| align="center" | [[File:Source2-256px.png|16px|link=Source 2]] | |||
|- | |||
| align="center" | {{Code|preset=1| {{Param|color}} }} | |||
| Places the link color as text. | |||
| {{CodeBlock|<nowiki>{{Source 2|color}}</nowiki>}} | |||
| align="center" | #F2A52B | |||
|} | |||
{| class= | ==== 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. | ||
! | {| class="standard-table" width="100%" | ||
|- style="position:sticky; top:0" | |||
! width="15%" | Parameter | |||
! width="40%" | Description | |||
! Example | |||
! width="20%" | Preview | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|0}} }} | ||
| {{ | | Style 0 (None) | ||
| {{CodeBlock|<nowiki>{{Source 2|0}}</nowiki>}} | |||
| align="center" | Source 2 | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|1}} }} | ||
| {{ | | Style 1 (Default) | ||
| {{CodeBlock|<nowiki>{{Source 2}}</nowiki>}} | |||
| align="center" | [[Source 2]] | |||
|- | |- | ||
| {{ | | align="center" | From {{Code|preset=1|{{Param|2}}}} to infinity | ||
| {{ | | Infinite number of various styles. | ||
| {{CodeBlock|<nowiki>{{Source 2|2}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{Source 2|3}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{Source 2|4}}</nowiki>}} | |||
| align="center" | See [[User:THE OWL/Sandbox#New version of the Software template|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. | |||
{| class="standard-table" width="100%" | |||
|- style="position:sticky; top:0" | |||
! width="15%" | Parameter | |||
! width="40%" | Description | |||
! Example | |||
! width="20%" | Preview | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|name}} }} | ||
| {{ | | Name of the software. | ||
| {{CodeBlock|<nowiki>{{Software|name = Source 2}}</nowiki>}} | |||
| | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|name:<lang code>}} }} | ||
| {{ | | Translation of the name. | ||
| {{CodeBlock|<nowiki>{{Software|name:zh = 起源2引擎}}</nowiki>}} | |||
| align="center" | [[Source 2|起源2引擎]] | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|name <2-4>}} }} | ||
| {{ | | Other software names. | ||
| {{CodeBlock|<nowiki>{{Software|name 4 = Source 2 Engine}}</nowiki>}} | |||
| | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|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]]. | ||
| {{CodeBlock|<nowiki>{{Source 2|nt = 4}}</nowiki>}} | |||
| align="center" | [[Source 2|Source 2 Engine]] | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|icon}} }} | ||
| {{ | | ''Not to be confused with {{Param|icon}} of [[#Modes]].'' | ||
The link icon. | |||
| {{CodeBlock|<nowiki>{{Software|icon = Source2-256px.png}}</nowiki>}} | |||
| rowspan="2" align="center" | See [[User:THE OWL/Sandbox|THE OWL's Sandbox]] | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|icon size}} }} | ||
| {{ | | The size of the link icon. | ||
| {{CodeBlock|<nowiki>{{Software|icon size = 16px}}</nowiki>}} | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|color}} }} | ||
| {{ | | ''Not to be confused with {{Param|color}} of [[#Modes]].'' | ||
The color of the link. Can be text. | |||
| {{CodeBlock|<nowiki>{{Software|color = #F2A52B}}</nowiki>}} | |||
| align="center" | [[Source 2|<span style="color:#F2A52B">Source 2</span>]] | |||
|- | |||
| align="center" | {{Code|preset=1| {{Param|link}} }} | |||
| Internal or Interwiki link. Overwrites all other links. | |||
| {{CodeBlock|<nowiki>{{Software|link = Valve}}</nowiki>}} | |||
| align="center" | [[Valve|Source 2]] | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|link:external}} }} | ||
| {{ | | External link. | ||
| {{CodeBlock|<nowiki>{{Software|link = www.valvesoftware.com}}</nowiki>}} | |||
| align="center" | [https://www.valvesoftware.com/en Source 2] | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|addtext:before}} }} | ||
| {{ | | Addtext before link contents. | ||
| {{CodeBlock|<nowiki>{{Source 2|addtext:before = Hello, World!}}</nowiki>}} | |||
| rowspan="2" align="center" | See [[User:THE OWL/Sandbox|THE OWL's Sandbox]] | |||
|- | |- | ||
| {{ | | align="center" | {{Code|preset=1| {{Param|addtext:after}} }} | ||
| {{ | | Addtext after link contents. | ||
| {{CodeBlock|<nowiki>{{Source 2|addtext:after = Goodbye, World!}}</nowiki>}} | |||
|} | |||
== An example of the future desired code == | |||
{{CodeBlock|<nowiki>{{Software | |||
| {{{1|}}} | |||
| {{{2|}}} | |||
| name = Counter-Strike: Global Offensive | |||
| name:ru = Симулятор ожидания новейшей версии Source 2 | |||
| name 2 = csgo | |||
| name 3 = CS:GO | |||
| name type = {{{nt|}}} | |||
| icon = csgo.png | |||
| icon size = 16px | |||
| color = E9B963 | |||
| addtext:before = {{{addtext:before|}}} | |||
| addtext:after = {{{addtext:after|}}} | |||
| link = {{{link|}}} | |||
}}</nowiki>}} | |||
{{Doc/Sandbox other| [[Category:Templates]] }} | |||
| | |||
}} |
Revision as of 11:59, 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 | |
{{{1}}} | 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. | 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}}} | Addtext before link contents. | See THE OWL's Sandbox | |
{{{addtext:after}}} | Addtext after link contents. |
An example of the future desired code