Template:Software: Difference between revisions
Jump to navigation
Jump to search
Note:however, the {{{p}}} parameter cannot be touched, it should always be "p={{{p}}}" in the icon template.
Note:{{{suf}}} should also be "suf={{{suf|}}}" in the icon templates, but after "{{{suf" there should be "|}}}" so that entering this parameter is optional.
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
|3=[[{{{name}}}{{{suf|}}}|<span title="{{{name}}}" style="color:{{{col|#ADD8E6}}};background-color:#202020;font-weight:bold;padding:2px;{{border-radius|4px}}">{{{name}}}</span>]] | |3=[[{{{name}}}{{{suf|}}}|<span title="{{{name}}}" style="color:{{{col|#ADD8E6}}};background-color:#202020;font-weight:bold;padding:2px;{{border-radius|4px}}">{{{name}}}</span>]] | ||
|4=<span style="background-color:#202020;font-weight:bold;padding:2px;{{border-radius|4px}}">[[File:{{{ico}}}|link={{{name}}}{{{suf|}}}|{{{name}}}]] [[{{{name}}}{{{suf|}}}|<span title="{{{name}}}" style="color:{{{col|#ADD8E6}}}">{{{name}}}</span>]]</span>|col={{{col|#ADD8E6}}}}}</includeonly></onlyinclude> | |4=<span style="background-color:#202020;font-weight:bold;padding:2px;{{border-radius|4px}}">[[File:{{{ico}}}|link={{{name}}}{{{suf|}}}|{{{name}}}]] [[{{{name}}}{{{suf|}}}|<span title="{{{name}}}" style="color:{{{col|#ADD8E6}}}">{{{name}}}</span>]]</span>|col={{{col|#ADD8E6}}}}}</includeonly></onlyinclude> | ||
{{ | [[Template:New_icon]] is the template that underlies the icon templates. It has five parameters: | ||
*{{{p}}} - 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. | |||
** Enter 4 to get the same as in the case of the number 2, but with an additional design. | |||
** Enter "col" (without quotes) to get the color of the game. This is mainly needed for other templates, if you display this color in the text, then the # at the beginning of the color code will be perceived as a numbered list. | |||
{{Note|<nowiki>however, the {{{p}}} parameter cannot be touched, it should always be "p={{{p}}}" in the icon template.</nowiki>}} | |||
*{{{ico}}} - the name of the icon is written here, but only the name itself, without "File:" and square brackets. | |||
*{{{name}}} - link to the game's article, but without the "_". | |||
*{{{suf}}} - the suffix that is added at the end of the link to the article so that you can make links to different languages of the article. Be sure to write ":es" but not "es". | |||
{{Note|<nowiki>{{{suf}}} should also be "suf={{{suf|}}}" in the icon templates, but after "{{{suf" there should be "|}}}" so that entering this parameter is optional.</nowiki>}} | |||
*{{{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>. | |||
===Result=== | |||
In the end, you should get something like this ([[Template:Portal2]] was taken as an example): | |||
<nowiki>{{New icon|p={{{p}}}|ico=Portal2-16px.png|name=Portal 2|suf={{{suf|}}}|col=#23B1E5}}<noinclude>[[Category:Game icons]]</noinclude></nowiki> | |||
===How To Use=== | |||
This is how the use of the icon template in articles will look like: | |||
{| style="background:none" | |||
| <code><nowiki>{{portal2}}</nowiki></code> || → {{portal2}} | |||
|- | |||
| <code><nowiki>{{portal2|p=1|suf=:ru}}</nowiki></code> || → {{portal2|p=1|suf=:ru}} | |||
|- | |||
| <code><nowiki>{{portal2|p=2}}</nowiki></code> || → {{portal2|p=2}} | |||
|- | |||
| <code><nowiki>{{portal2|p=3|suf=:ru}}</nowiki></code> || → {{portal2|p=3|suf=:ru}} | |||
|- | |||
| <code><nowiki>{{portal2|p=4|suf=:ru}}</nowiki></code> || → {{portal2|p=4|suf=:ru}} | |||
|} |
Revision as of 13:42, 4 April 2022
Template:New_icon is the template that underlies the icon templates. It has five parameters:
- {{{p}}} - 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.
- Enter 4 to get the same as in the case of the number 2, but with an additional design.
- Enter "col" (without quotes) to get the color of the game. This is mainly needed for other templates, if you display this color in the text, then the # at the beginning of the color code will be perceived as a numbered list.

- {{{ico}}} - the name of the icon is written here, but only the name itself, without "File:" and square brackets.
- {{{name}}} - link to the game's article, but without the "_".
- {{{suf}}} - the suffix that is added at the end of the link to the article so that you can make links to different languages of the article. Be sure to write ":es" but not "es".

- {{{col}}} - the color of the game. If it is not specified, just do not enter this parameter, the standard color will be used: #ADD8E6.
Result
In the end, you should get something like this (Template:Portal2 was taken as an example):
{{New icon|p={{{p}}}|ico=Portal2-16px.png|name=Portal 2|suf={{{suf|}}}|col=#23B1E5}}<noinclude>[[Category:Game icons]]</noinclude>
How To Use
This is how the use of the icon template in articles will look like:
{{portal2}} |
→ ![]() |
{{portal2|p=1|suf=:ru}} |
→ ![]() |
{{portal2|p=2}} |
→ ![]() |
{{portal2|p=3|suf=:ru}} |
→ ![]() |
{{portal2|p=4|suf=:ru}} |
→ ![]() |