Template:Software/doc/draft

From Valve Developer Community
Jump to navigation Jump to search
Icon-under construction-blue.png
This is a draft template page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.

[Todo]

Tip.pngTip:The software icon should be scaled to be in-line with the text size (using {{{ico size}}}). While this is nominally "16 pixels tall", high-DPI displays (such as Apple Retina display used on Mac for example) will benefit from the file being higher resolutions; 32 pixels tall is generally sufficient, although any resolution can be used (MediaWiki will downscale the image automatically and only deliver the necessary resolution).

Future Desired Parameters

Modes

Parameter Description Example Preview
No Parameters Icon with a link.
{{Source 2}}
Source2-256px.png
{{{text}}} Icon with colorized text and link.
{{Source 2|text}}
Source 2 Source 2
{{{plaintext}}} Plaintext link.
{{Source 2|plaintext}}
Source 2
{{{color}}} Places the link color as text.
{{Source 2|color}}
#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|0}}
Source 2
No Parameters Style 1 (Default)
{{Source 2}}
Source 2
From {{{2}}} to infinity Infinite number of various styles.
{{Source 2|2}}
{{Source 2|3}}
{{Source 2|4}}
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.
{{Software|name = Source 2}}
{{{name:<lang code>}}} Translation of the name.
{{Software|name:zh = 起源2引擎}}
起源2引擎
{{{name <2-4>}}} Other software names.
{{Software|name 4 = Source 2 Engine}}
{{{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|nt = 4}}
Source 2 Engine
{{{icon}}} Not to be confused with {{{icon}}} of #Modes.

The link icon.

{{Software|icon = Source2-256px.png}}
See THE OWL's Sandbox
{{{icon size}}} The size of the link icon.
{{Software|icon size = 16px}}
{{{color}}} Not to be confused with {{{color}}} of #Modes.

The color of the link. Can be text.

{{Software|color = #F2A52B}}
Source 2
{{{link}}} Internal or Interwiki link. Overwrites all other links.
{{Software|link = Valve}}
Source 2
{{{link:external}}} External link.
{{Software|link:external = www.valvesoftware.com}}
Source 2
{{{addtext:before}}} Adding text before the link content.
{{Source 2|addtext:before = Hello, World!}}
See THE OWL's Sandbox
{{{addtext:after}}} Adding text after the link content.
{{Source 2|addtext:after = Goodbye, World!}}

An example of the future desired code of child templates

{{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|}}} }}