Template:CsgoOperation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added parameters {{{name}}}, {{{icon}}} and {{{link}}})
(Replaced parameter {{{short}}} with {{{prefix}}}, maked it default)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#if:{{{short|}}}|<nowiki></nowiki>| {{#if:{{{2|}}}|{{{2}}}|It's one of many new features added with the&#32;}}}}<!--
<includeonly>{{#if:{{{1|}}}|{{#if:{{{prefix|}}}| {{#if:{{{2|}}}|{{{2}}}|It's one of many new features added with the&#32;|<nowiki></nowiki>}}}}<!--
--><span style=white-space:nowrap>{{#switch:{{lc:{{{1}}}}}
--><span style=white-space:nowrap>{{#switch:{{lc:{{{1}}}}}
| 1
| 1
Line 25: Line 25:
| #default    = <span style="color:red">Invalid operation "{{{1}}}"! See [[Template:CsgoOperation]] </span>
| #default    = <span style="color:red">Invalid operation "{{{1}}}"! See [[Template:CsgoOperation]] </span>
}}</span><!--
}}</span><!--
-->{{#if:{{{short|}}}|<nowiki></nowiki>|.}}|<span style="color:red">No operation selected! See [[Template:CsgoOperation]] </span>}}</includeonly><noinclude>
-->{{#if:{{{prefix|}}}|.|<nowiki></nowiki>}}|<span style="color:red">No operation selected! See [[Template:CsgoOperation]] </span>}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}

Revision as of 23:25, 27 March 2022

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

{{Shortcut|{{Cs2Operation}}

Value for {{{1}}} Short Result
1 payback OpPayback.pngOperation Payback
2 bravo OpBravo.pngOperation Bravo
3 phoenix OpPhoenix.pngOperation Phoenix
4 breakout OpBreakout.pngOperation Breakout
5 vanguard OpVanguard.pngOperation Vanguard
6 bloodhound OpBloodhound.pngOperation Bloodhound
7 wildfire Wildfire.pngOperation Wildfire
8 hydra Op08.pngOperation Hydra
9 shatteredweb OpShatteredWeb.pngOperation Shattered Web
10 brokenfang OpBrokenFang.pngOperation Broken Fang
11 riptide OpRiptide.pngOperation Riptide

Usage

This template is used to insert the name and a link to a Counter-Strike: Global Offensive Counter-Strike: Global Offensive operation, and in future, Counter-Strike 2 Counter-Strike 2 operation.

Parameters

  • {{{1}}} - The operation name or operation number (1-11). Should be one of the ones on the right.
  • {{{2}}} - Sentence prefix
  • {{{prefix}}} Adds prefix
  • {{{disableop}}} - If defined, hides the word "Operation" in the link text.
  • {{{name}}} Changes the name of operation (including "Operation" word).
  • {{{icon}}} Changes icon of operation.
  • {{{link}}} Changes link of operation.

Examples

Examples for {{{1}}}
Code Result
{{CsgoOperation|hydra}} Op08.pngOperation Hydra
{{CsgoOperation|shatteredweb}} OpShatteredWeb.pngOperation Shattered Web
{{CsgoOperation|5}} OpVanguard.pngOperation Vanguard
{{CsgoOperation}} No operation selected! See Template:CsgoOperation
{{CsgoOperation|hydrogen}} Invalid operation "hydrogen"! See Template:CsgoOperation
Examples for {{{2}}}
Code Result
{{CsgoOperation|hydra|Entity added with}} Op08.pngOperation Hydra
{{CsgoOperation|hydra|Used in}} Op08.pngOperation Hydra
Examples for {{{prefix}}}
Code Result
{{CsgoOperation|hydra|prefix=1}} It's one of many new features added with the Op08.pngOperation Hydra.
{{CsgoOperation|hydra}} Op08.pngOperation Hydra
Examples for {{{name}}}
Code Result
{{CsgoOperation|hydra|name=Operation hydrogen}} Op08.pngOperation hydrogen
{{CsgoOperation|hydra}} Op08.pngOperation Hydra
Examples for {{{icon}}}
Code Result
{{CsgoOperation|hydra|icon=[[File:Wildfire.png|32px]]}} Wildfire.pngOperation Hydra
{{CsgoOperation|hydra}} Op08.pngOperation Hydra
Examples for {{{link}}}
Code Result
{{CsgoOperation|hydra|link=https://counterstrike.fandom.com/wiki/Operation_Hydra}} Op08.pngOperation Hydra
{{CsgoOperation|hydra}} Op08.pngOperation Hydra