Template:Software/doc: 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 templates.
Note:{{{suf}}} should also be "suf={{{suf|}}}" in the icon templates, but after "{{{suf" there should be "|}}}" so that entering this parameter is optional.
Note:"type={{{type|}}}" in the icon templates! If you need "in" just don't enter the "type" parameter.
Note:"addtext={{{addtext|}}}" in the icon templates!
mNo edit summary |
mNo edit summary |
||
Line 26: | Line 26: | ||
===Result=== | ===Result=== | ||
In the end, you should get something like this ([[Template:Portal2]] was taken as an example): | 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|type={{{type|}}}|addtext={{{addtext|}}}}}< | <nowiki><onlyinclude><includeonly>{{New icon|p={{{p}}}|ico=Portal2-16px.png|name=Portal 2|suf={{{suf|}}}|col=#23B1E5|type={{{type|}}}|addtext={{{addtext|}}}}}</includeonly></onlyinclude> | ||
{{documentation|Category:Game icons/doc}}</nowiki> | |||
===How To Use=== | ===How To Use=== | ||
Line 48: | Line 50: | ||
| <code><nowiki>{{portal2|p=in|suf=:ru|type=removed}}</nowiki></code> || → {{portal2|p=in|suf=:ru|type=removed}} | | <code><nowiki>{{portal2|p=in|suf=:ru|type=removed}}</nowiki></code> || → {{portal2|p=in|suf=:ru|type=removed}} | ||
|- | |- | ||
| <code><nowiki>{{portal2|p=in|suf=:de|type=also|addtext={{csgo}} {{l4d2}}}}</nowiki></code> || → {{portal2|p=in|suf=:de|type=also|addtext={{csgo}} {{l4d2}}}} | | <code><nowiki>{{portal2|p=in|suf=:de|type=also|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}}</nowiki></code> || → {{portal2|p=in|suf=:de|type=also|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}} | ||
|} | |} |
Revision as of 02:05, 5 April 2022
Template:New_icon is the template that underlies the icon templates. It has 7 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.
- Enter "in" (without quotes) to get the icon displayed along with additional text, like "(also in <game icon>)". There is also an automatic translation here, so if you type "suf=:es" the text will also be in Spanish.

- {{{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.
- {{{type}}} - This variable is needed for the "p=in" option to make it clear what kind of text you need, maybe "also in" or "removed since". List of options:
- also
- only
- since
- removed
- not

- {{{addtext}}} - additional text that will be written immediately after the icon. It is mainly needed to add other icons, however, they will not be associated with the template in any way, so for them you will have to enter the "suf" parameter again.

Result
In the end, you should get something like this (Template:Portal2 was taken as an example):
<onlyinclude><includeonly>{{New icon|p={{{p}}}|ico=Portal2-16px.png|name=Portal 2|suf={{{suf|}}}|col=#23B1E5|type={{{type|}}}|addtext={{{addtext|}}}}}</includeonly></onlyinclude> {{documentation|Category:Game icons/doc}}
How To Use
This is how the use of the icon template in articles will look like: