Template:Software/doc: Difference between revisions
Jump to navigation
Jump to search
Note:however, the {{{1}}} parameter cannot be touched, it should always be "{{{1}}}" in the icon templates!
Note:it is strongly recommended to write the abbreviation of the game in the parameter {{{name0}}}
Note:"addtext={{{addtext|}}}" in the icon templates!
m (→Translations) |
mNo edit summary |
||
Line 6: | Line 6: | ||
** Enter 1 to get the name of the game with a link to an article about the game. | ** Enter 1 to get the name of the game with a link to an article about the game. | ||
** Enter 2 to get the icon and the name of the game after it. | ** Enter 2 to get the icon and the name of the game after it. | ||
** Enter 3 to get the same as in the case of the number 1, but with an additional design. | ** Enter 3 to get the same as in the case of the number 1, but with an additional design with colored text. | ||
** Enter 4 to get the same as in the case of the number 2, but with an additional design. | ** Enter 4 to get the same as in the case of the number 2, but with an additional design with colored text. | ||
** Enter "col" (without quotes) to get the color of the game. This is mainly needed for other templates. | ** Enter "col" (without quotes) to get the color of the game. This is mainly needed for other templates. | ||
** Enter "in", "also", "only", "since", "removed" or "not" (without quotes) to get the icon displayed along with additional text, like "(also in <game icon>)". | ** Enter "in", "also", "only", "since", "removed" or "not" (without quotes) to get the icon displayed along with additional text, like "(also in <game icon>)". | ||
Line 16: | Line 16: | ||
*{{Param|name|suf=<number>}} – this parameter displays an alternate name based on the {{Param|nt}} parameter. | *{{Param|name|suf=<number>}} – this parameter displays an alternate name based on the {{Param|nt}} parameter. | ||
{{Note|it is strongly recommended to write the abbreviation of the game in the parameter {{Param|name0}}}} | {{Note|it is strongly recommended to write the abbreviation of the game in the parameter {{Param|name0}}}} | ||
*{{Param|col}} – the color of the game. If it is not specified, just do not enter this parameter, the standard color will be used: <span style="color:#ADD8E6;font-weight:bold">#ADD8E6</span>. | *{{Param|col}} – the color of the game. If it is not specified, just do not enter this parameter, the standard color will be used: <span style="color:#ADD8E6;font-weight:bold">#ADD8E6</span>.<br> It's highly recommended that you use brighter color for better readability with dark/black pages. | ||
*{{Param|addtext}} – additional text that will be written immediately after the icon. It is mainly needed to add other icons. | *{{Param|addtext}} – additional text that will be written immediately after the icon. It is mainly needed to add other icons. | ||
{{Note|<nowiki>"addtext={{{addtext|}}}" in the icon templates!</nowiki>}} | {{Note|<nowiki>"addtext={{{addtext|}}}" in the icon templates!</nowiki>}} |
Revision as of 05:48, 26 May 2023
{{Software}}
is the template that underlies the icon templates. It has 8 main parameters:
- {{{1}}} – the way the icon will be displayed.
- Do not enter this value if you need a regular icon.
- Enter 1 to get the name of the game with a link to an article about the game.
- Enter 2 to get the icon and the name of the game after it.
- Enter 3 to get the same as in the case of the number 1, but with an additional design with colored text.
- Enter 4 to get the same as in the case of the number 2, but with an additional design with colored text.
- Enter "col" (without quotes) to get the color of the game. This is mainly needed for other templates.
- Enter "in", "also", "only", "since", "removed" or "not" (without quotes) to get the icon displayed along with additional text, like "(also in <game icon>)".

- {{{ico}}} – the name of the icon is written here, but only the name itself, without "File:" and square brackets.
- {{{link}}} – link to the article, external links do not work. If not used, the link will use the {{{name}}} parameter. Write without the "_".
- {{{name}}} – display name. Write without the "_".
- {{{name}}} – this parameter displays an alternate name based on the {{{nt}}} parameter.

- {{{col}}} – the color of the game. If it is not specified, just do not enter this parameter, the standard color will be used: #ADD8E6.
It's highly recommended that you use brighter color for better readability with dark/black pages. - {{{addtext}}} – additional text that will be written immediately after the icon. It is mainly needed to add other icons.

- {{{nt}}} – this parameter will be used in the {{{name<number>}}} parameter.
Result
In the end, you should get something like this:
Translations
Translations are handled by the {{In text}}
Template.
How To Use
This is how the use of the template in articles will look like:
Code | Result |
---|---|
{{portal2}}
|
![]() |
{{portal2|1}}
|
Portal 2 |
{{portal2|2}}
|
![]() |
{{portal2|3}}
|
Portal 2 |
{{portal2|4}}
|
![]() |
{{portal2|ico}}
|
Icon-Portal2.png |
{{portal2|col}}
|
#23B1E5 |
{{portal2|name}}
|
Portal 2 |
{{portal2|in}}
|
(in ![]() |
{{portal2|only}}
|
(only in ![]() |
{{portal2|since}}
|
(in all games since ![]() |
{{portal2|not}}
|
(not in ![]() |
{{portal2|also|addtext={{csgo}} {{l4d2}}}}
|
(also in ![]() ![]() ![]() |