Template:MacOS/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "<noinclude>{{Doc/subpage}}</noinclude> == Usage == Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the game color. This template is based on {{tl2|Software}}. === Parameters === * {{Param|1}} – Optional: The representation, see the examples below. Can be set to: {{Code|1}}, {{Code|2}}, {{Code|3}}, {{Code|3.1}}, {{Code|4}}, {{Code|4.1}}, {{Code|col}}, {{Code|in}}, {{Code|also}}, {{Code|only}}, {{Code|since}}, {{Code|removed}}, {...")
 
mNo edit summary
 
Line 3: Line 3:
Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the game color.
Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the game color.


This template is based on {{tl2|Software}}.
This template is based on {{T|Software}}.


=== Parameters ===
=== Parameters ===
Line 10: Line 10:
* {{Param|addtext}} – Optional: If {{Param}} is set to {{Code|in}}, {{Code|also}}, {{Code|only}}, {{Code|since}}, {{Code|removed}} or {{Code|not}}, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.
* {{Param|addtext}} – Optional: If {{Param}} is set to {{Code|in}}, {{Code|also}}, {{Code|only}}, {{Code|since}}, {{Code|removed}} or {{Code|not}}, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.


=== Parameters exclusive to {{t|iOS}}, {{t|Mac}}, and some templates (such as {{t|Win7}}) ===
=== Parameters exclusive to {{T|iOS}}, {{T|Mac}}, and some templates (such as {{T|Win7}}) ===
* {{Param|ver}} – Optional: Set version number, for the operating systems, probably might works similar to {{code|addtext}} but affects everything, including links to {{wiki}} article.
* {{Param|ver}} – Optional: Set version number, for the operating systems, probably might works similar to {{Code|addtext}} but affects everything, including links to {{Wiki}} article.
* {{Param|linkto}} – Optional: Changes the Wikipedia link, in this template, when you click on the link that have {{param|linkto|Classic Mac OS}} on it, you will read the {{wiki|Classic Mac OS}} article on Wikipedia instead of {{wiki|Mac operating systems}}. If used alongside {{Param|ver}}, will add version number to the link aswell.
* {{Param|linkto}} – Optional: Changes the Wikipedia link, in this template, when you click on the link that have {{Param|linkto|Classic Mac OS}} on it, you will read the {{Wiki|Classic Mac OS}} article on Wikipedia instead of {{Wiki|Mac operating systems}}. If used alongside {{Param|ver}}, will add version number to the link aswell.


=== Translations ===
=== Translations ===
Some Translations are handled by the {{tl|link=In text}} Template. Others (such as game title/software title, etc...) will use {{tl|link=Autolang}}.
Some Translations are handled by the {{T|In text}} Template. Others (such as game title/software title, etc...) will use {{T|Autolang}}.


=== Examples ===
=== Examples ===
{{Note|Some of the examples given may lead to non-existent pages. For more name types, click "Edit" button and look for {{code|{{!}}name<nowiki><name type here></nowiki>{{=}}<nowiki><actual name></nowiki>}}.}}
{{Note|Some of the examples given may lead to non-existent pages. For more name types, click "Edit" button and look for {{Code|{{!}}name<nowiki><name type here></nowiki>{{=}}<nowiki><actual name></nowiki>}}.}}
{| class="wikitable"
{| class="wikitable"
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}}}
| → {{ {{ROOTPAGENAME}} }}
| → {{ {{ROOTPAGENAME}} }}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|1}}}}
| → {{{{ROOTPAGENAME}}|1}}
| → {{{{ROOTPAGENAME}}|1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|2}}}}
| → {{{{ROOTPAGENAME}}|2}}
| → {{{{ROOTPAGENAME}}|2}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|3}}}}
| → {{{{ROOTPAGENAME}}|3}}
| → {{{{ROOTPAGENAME}}|3}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|3.1}}}}
| → {{{{ROOTPAGENAME}}|3.1}}
| → {{{{ROOTPAGENAME}}|3.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}}}
| → {{{{ROOTPAGENAME}}|4}}
| → {{{{ROOTPAGENAME}}|4}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4.1}}}}
| → {{{{ROOTPAGENAME}}|4.1}}
| → {{{{ROOTPAGENAME}}|4.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|nt|0}}}}
| → {{{{ROOTPAGENAME}}|4|nt=0}}
| → {{{{ROOTPAGENAME}}|4|nt=0}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|nt|1}}}}
| → {{{{ROOTPAGENAME}}|4|nt=1}}
| → {{{{ROOTPAGENAME}}|4|nt=1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}osx}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|nt|osx}}}}
| → {{{{ROOTPAGENAME}}|4|nt=osx}}
| → {{{{ROOTPAGENAME}}|4|nt=osx}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}macosx}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|nt|macosx}}}}
| → {{{{ROOTPAGENAME}}|4|nt=macosx}}
| → {{{{ROOTPAGENAME}}|4|nt=macosx}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}classic1|linkto{{=}}classic}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|nt|classic1}}{{P|linkto|classic}}}}
| → {{{{ROOTPAGENAME}}|4|nt=classic1|linkto=classic}}
| → {{{{ROOTPAGENAME}}|4|nt=classic1|linkto=classic}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}classic2|linkto{{=}}classic}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|nt|classic2}}{{P|linkto|classic}}}}
| → {{{{ROOTPAGENAME}}|4|nt=classic2|linkto=classic}}
| → {{{{ROOTPAGENAME}}|4|nt=classic2|linkto=classic}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}OS X|ver{{=}}10.9|linkto{{=}}osx}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|nt|OS X}}{{P|ver|10.9}}{{P|linkto|osx}}}}
| → {{{{ROOTPAGENAME}}|4|nt=OS X|ver=10.9|linkto=osx}}
| → {{{{ROOTPAGENAME}}|4|nt=OS X|ver=10.9|linkto=osx}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|ver{{=}}Catalina|linkto{{=}}macOS}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|4}}{{P|ver|Catalina}}{{P|linkto|macOS}}}}
| → {{{{ROOTPAGENAME}}|4|ver=Catalina|linkto=macOS}}
| → {{{{ROOTPAGENAME}}|4|ver=Catalina|linkto=macOS}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|col}}}}
| → {{{{ROOTPAGENAME}}|col}}
| → {{{{ROOTPAGENAME}}|col}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|in}}}}
| → {{{{ROOTPAGENAME}}|in}}
| → {{{{ROOTPAGENAME}}|in}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|only}}}}
| → {{{{ROOTPAGENAME}}|only}}
| → {{{{ROOTPAGENAME}}|only}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|since}}}}
| → {{{{ROOTPAGENAME}}|since}}
| → {{{{ROOTPAGENAME}}|since}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|not}}}}
| → {{{{ROOTPAGENAME}}|not}}
| → {{{{ROOTPAGENAME}}|not}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|removed}}}}
| → {{{{ROOTPAGENAME}}|removed}}
| → {{{{ROOTPAGENAME}}|removed}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|csgo}} {{tlf|l4d2}}}}
| {{T|{{lcfirst:{{ROOTPAGENAME}}}}|{{P|also}}{{P|addtext|{{T|Csgo}} {{T|L4d2}}}}}}
| → {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
| → {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
|}
|}

Latest revision as of 06:52, 4 October 2025

Edit-copy.png
This is a documentation subpage for Template:MacOS.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Usage

Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the game color.

This template is based on {{Software}}.

Parameters

  • {{{1}}} – Optional: The representation, see the examples below. Can be set to: 1, 2, 3, 3.1, 4, 4.1, col, in, also, only, since, removed, not;
  • {{{nt}}} – Optional: This option allows you to select a custom game and software name if it is specified in the template. 0 is most often a game abbreviation. You can click on "Edit" to view the available game/software names.
  • {{{addtext}}} – Optional: If {{{1}}} is set to in, also, only, since, removed or not, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.

Parameters exclusive to {{iOS}}, {{Mac}}, and some templates (such as {{Win7}})

  • {{{ver}}} – Optional: Set version number, for the operating systems, probably might works similar to addtext but affects everything, including links to Wikipedia icon Wikipedia article.
  • {{{linkto}}} – Optional: Changes the Wikipedia link, in this template, when you click on the link that have {{{linkto|Classic Mac OS}}} on it, you will read the Wikipedia icon Classic Mac OS article on Wikipedia instead of Wikipedia icon Mac operating systems. If used alongside {{{ver}}}, will add version number to the link aswell.

Translations

Some Translations are handled by the {{In text}} Template. Others (such as game title/software title, etc...) will use {{Autolang}}.

Examples

Note.pngNote:Some of the examples given may lead to non-existent pages. For more name types, click "Edit" button and look for |name<name type here>=<actual name>.
{{macOS}} macOS
{{macOS|1}} macOS
{{macOS|2}} macOS macOS
{{macOS|3}} macOS
{{macOS|3.1}} macOS
{{macOS|4}} macOS macOS
{{macOS|4.1}} macOS macOS
{{macOS|4|nt=0}} macOS macOS
{{macOS|4|nt=1}} macOS OS X
{{macOS|4|nt=osx}} macOS OS X
{{macOS|4|nt=macosx}} macOS Mac OS X
{{macOS|4|nt=classic1|linkto=classic}} macOS Classic Mac OS
{{macOS|4|nt=classic2|linkto=classic}} macOS Classic Mac OS
{{macOS|4|nt=OS X|ver=10.9|linkto=osx}} macOS 10.9 OS X 10.9
{{macOS|4|ver=Catalina|linkto=macOS}} macOS Catalina macOS Catalina
{{macOS|col}} → #FFFFFF
{{macOS|in}} (in macOS)
{{macOS|only}} (only in macOS)
{{macOS|since}} (in all games since macOS)
{{macOS|not}} (not in macOS)
{{macOS|removed}} (removed since macOS)
{{macOS|also|addtext={{Csgo}} {{L4d2}}}} (also in macOSCounter-Strike: Global Offensive Left 4 Dead 2)