Template:Obm/doc: Difference between revisions
Jump to navigation
Jump to search
Note:Some of the examples given may lead to non-existent pages.
(Created page with "<noinclude>{{Doc/subpage}}</noinclude> == Usage == {{tocright}} Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the game color. This t...") |
Thunder4ik (talk | contribs) m (→Examples: clean up) |
||
Line 19: | Line 19: | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}} | ||
| | | → {{ {{ROOTPAGENAME}} }} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}} | ||
| | | → {{{{ROOTPAGENAME}}|1}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}} | ||
| | | → {{{{ROOTPAGENAME}}|2}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}} | ||
| | | → {{{{ROOTPAGENAME}}|3}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}} | ||
| | | → {{{{ROOTPAGENAME}}|3.1}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1.nolink}}<br><small>(Same as above, without links to the article.)</small> | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1.nolink}}<br><small>(Same as above, without links to the article.)</small> | ||
| | | → {{{{ROOTPAGENAME}}|3.1.nolink}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.2}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.2}} | ||
| | | → {{{{ROOTPAGENAME}}|3.2}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}} | ||
| | | → {{{{ROOTPAGENAME}}|4}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}} | ||
| | | → {{{{ROOTPAGENAME}}|4.1}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.2}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.2}} | ||
| | | → {{{{ROOTPAGENAME}}|4.2}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}} | ||
| | | → {{{{ROOTPAGENAME}}|4|nt=0}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}} | ||
| | | → {{{{ROOTPAGENAME}}|4|nt=1}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}2}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}2}} | ||
| | | → {{{{ROOTPAGENAME}}|4|nt=2}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}3}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}3}} | ||
| | | → {{{{ROOTPAGENAME}}|4|nt=3}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}4}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}4}} | ||
| | | → {{{{ROOTPAGENAME}}|4|nt=4}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}} | ||
| | | → {{{{ROOTPAGENAME}}|col}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}} | ||
| | | → {{{{ROOTPAGENAME}}|in}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}} | ||
| | | → {{{{ROOTPAGENAME}}|only}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}} | ||
| | | → {{{{ROOTPAGENAME}}|since}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}} | ||
| | | → {{{{ROOTPAGENAME}}|not}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}} | ||
| | | → {{{{ROOTPAGENAME}}|removed}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:Csgo|portal2|csgo}}}} {{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:L4d2|portal2|l4d2}}}}}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:Csgo|portal2|csgo}}}} {{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:L4d2|portal2|l4d2}}}}}} | ||
| | | → {{{{ROOTPAGENAME}}|also|addtext={{#ifeq:{{FULLPAGENAME}}|Template:Csgo|{{portal2}}|{{csgo}}}} {{#ifeq:{{FULLPAGENAME}}|Template:L4d2|{{portal2}}|{{l4d2}}}}}} | ||
|} | |} | ||
Latest revision as of 02:26, 12 January 2024

This is a documentation subpage for Template:Obm.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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.
Translations
Some Translations are handled by the {{In text}} Template. Others (such as game title/software title, etc...) will use {{Autolang}}. {{{suf}}} parameters used for translations have been deprecated, but are currently being used in some pages for many reasons.
Examples

{{obm}}
|
→ ![]() |
{{obm|1}}
|
→ Operation: Black Mesa |
{{obm|2}}
|
→ ![]() |
{{obm|3}}
|
→ Operation: Black Mesa |
{{obm|3.1}}
|
→ Operation: Black Mesa |
{{obm|3.1.nolink}} (Same as above, without links to the article.) |
→ Operation: Black Mesa |
{{obm|3.2}}
|
→ Operation: Black Mesa |
{{obm|4}}
|
→ ![]() |
{{obm|4.1}}
|
→ ![]() |
{{obm|4.2}}
|
→ ![]() |
{{obm|4|nt=0}}
|
→ ![]() |
{{obm|4|nt=1}}
|
→ ![]() |
{{obm|4|nt=2}}
|
→ ![]() |
{{obm|4|nt=3}}
|
→ ![]() |
{{obm|4|nt=4}}
|
→ ![]() |
{{obm|col}}
|
→ #4F7942 |
{{obm|in}}
|
→ (in ![]() |
{{obm|only}}
|
→ (only in ![]() |
{{obm|since}}
|
→ (in all games since ![]() |
{{obm|not}}
|
→ (not in ![]() |
{{obm|removed}}
|
→ (removed since ![]() |
{{obm|also|addtext={{csgo}} {{l4d2}}}}
|
→ (also in ![]() ![]() ![]() |