Template:Ios/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (→‎Examples: clean up)
 
(4 intermediate revisions by one other user not shown)
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}}, 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|iPadOS}} on it, you will read the {{wiki|iPadOS}} article on Wikipedia instead of {{wiki|iOS}}.
* {{Param|linkto}} – Optional: Changes the Wikipedia link.<br> For example in this template, when you click on the link that have {{param|linkto|iPadOS}} on it, you will read the {{wiki|iPadOS}} article on Wikipedia instead of {{wiki|iOS}}. If used alongside {{Param|ver}}, will add version number to the link aswell, which, if you click on the link, like {{wiki|iOS 17}} for example, you will read the {{wiki|iOS 17}} article.


=== Translations ===
=== Translations ===
Line 22: Line 22:
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| &rarr; {{ {{ROOTPAGENAME}} }}
| {{ {{ROOTPAGENAME}} }}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}}
| &rarr; {{{{ROOTPAGENAME}}|1}}
| {{{{ROOTPAGENAME}}|1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
| &rarr; {{{{ROOTPAGENAME}}|2}}
| {{{{ROOTPAGENAME}}|2}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| &rarr; {{{{ROOTPAGENAME}}|3}}
| {{{{ROOTPAGENAME}}|3}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
| &rarr; {{{{ROOTPAGENAME}}|3.1}}
| {{{{ROOTPAGENAME}}|3.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| &rarr; {{{{ROOTPAGENAME}}|4}}
| {{{{ROOTPAGENAME}}|4}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
| &rarr; {{{{ROOTPAGENAME}}|4.1}}
| {{{{ROOTPAGENAME}}|4.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
| &rarr; {{{{ROOTPAGENAME}}|4|nt=0}}
| {{{{ROOTPAGENAME}}|4|nt=0}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| &rarr; {{{{ROOTPAGENAME}}|4|nt=1}}
| {{{{ROOTPAGENAME}}|4|nt=1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}ipad}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}ipad}}
| &rarr; {{{{ROOTPAGENAME}}|4|nt=ipad}}
| {{{{ROOTPAGENAME}}|4|nt=ipad}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}iphoneos}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}iphoneos}}
| &rarr; {{{{ROOTPAGENAME}}|4|nt=iphoneos}}
| {{{{ROOTPAGENAME}}|4|nt=iphoneos}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}iPadOS|linkto{{=}}iPadOS}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}iPadOS|linkto{{=}}iPadOS}}
| &rarr; {{{{ROOTPAGENAME}}|4|nt{{=}}iPadOS|linkto=iPadOS}}
| {{{{ROOTPAGENAME}}|4|nt=iPadOS|linkto=iPadOS}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|ver{{=}}17}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|ver{{=}}17}}
| &rarr; {{{{ROOTPAGENAME}}|4|ver=17}}
| {{{{ROOTPAGENAME}}|4|ver=17}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| &rarr; {{{{ROOTPAGENAME}}|col}}
| {{{{ROOTPAGENAME}}|col}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
| &rarr; {{{{ROOTPAGENAME}}|in}}
| {{{{ROOTPAGENAME}}|in}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}}
| &rarr; {{{{ROOTPAGENAME}}|only}}
| {{{{ROOTPAGENAME}}|only}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
| &rarr; {{{{ROOTPAGENAME}}|since}}
| {{{{ROOTPAGENAME}}|since}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}}
| &rarr; {{{{ROOTPAGENAME}}|not}}
| {{{{ROOTPAGENAME}}|not}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}}
| &rarr; {{{{ROOTPAGENAME}}|removed}}
| {{{{ROOTPAGENAME}}|removed}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|csgo}} {{tlf|l4d2}}}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|csgo}} {{tlf|l4d2}}}}
| &rarr; {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
| {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
|}
|}



Latest revision as of 02:24, 12 January 2024

Edit-copy.png
This is a documentation subpage for Template:Ios.
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.
    For example in this template, when you click on the link that have {{{linkto|iPadOS}}} on it, you will read the Wikipedia icon iPadOS article on Wikipedia instead of Wikipedia icon iOS. If used alongside {{{ver}}}, will add version number to the link aswell, which, if you click on the link, like Wikipedia icon iOS 17 for example, you will read the Wikipedia icon iOS 17 article.

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.
{{ios}} iOS
{{ios|1}} iOS
{{ios|2}} iOS iOS
{{ios|3}} iOS
{{ios|3.1}} iOS
{{ios|4}} iOS iOS
{{ios|4.1}} iOS iOS
{{ios|4|nt=0}} iOS iPhone OS
{{ios|4|nt=1}} iOS iPadOS
{{ios|4|nt=ipad}} iOS iPadOS
{{ios|4|nt=iphoneos}} iOS iPhone OS
{{ios|4|nt=iPadOS|linkto=iPadOS}} iOS iPadOS
{{ios|4|ver=17}} iOS 17 iOS 17
{{ios|col}} → #FFFFFF
{{ios|in}} (in iOS)
{{ios|only}} (only in iOS)
{{ios|since}} (in all games since iOS)
{{ios|not}} (not in iOS)
{{ios|removed}} (removed since iOS)
{{ios|also|addtext={{csgo}} {{l4d2}}}} (also in iOSCounter-Strike: Global Offensive Left 4 Dead 2)