Template:CsgoOperation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added <includeonly>, added invalid operation notification)
m (Added parameter {{{disableop}}} that disables Operation word)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#if:{{{short|}}}|<nowiki></nowiki>| {{#if:{{{2|}}}|{{{2}}}|It's one of many new features added with the }}}} {{#switch:{{lc:{{{1}}}}}
<includeonly>{{#if:{{{1|}}}|{{#if:{{{short|}}}|<nowiki></nowiki>| {{#if:{{{2|}}}|{{{2}}}|It's one of many new features added with the }}}} {{#switch:{{lc:{{{1}}}}}
| 1
| 1
| payback          = [[File:OpPayback.png|32px]][http://counter-strike.net/operationpayback Operation Payback]
| payback          = [[File:OpPayback.png|32px]][http://counter-strike.net/operationpayback {{#if:{{{disableop|}}}||Operation}} Payback]
| 2
| 2
| bravo          = [[File:OpBravo.png|32px]][http://counter-strike.net/operationbravo Operation Bravo]
| bravo          = [[File:OpBravo.png|32px]][http://counter-strike.net/operationbravo {{#if:{{{disableop|}}}||Operation}} Bravo]
| 3
| 3
| phoenix          = [[File:OpPhoenix.png|32px]][http://www.counter-strike.net/operationphoenix/ Operation Phoenix]
| phoenix          = [[File:OpPhoenix.png|32px]][http://www.counter-strike.net/operationphoenix/ {{#if:{{{disableop|}}}||Operation}} Phoenix]
| 4
| 4
| breakout          = [[File:OpBreakout.png|32px]][http://www.counter-strike.net/operationbreakout/ Operation Breakout]
| breakout          = [[File:OpBreakout.png|32px]][http://www.counter-strike.net/operationbreakout/ {{#if:{{{disableop|}}}||Operation}} Breakout]
| 5
| 5
| vanguard          = [[File:OpVanguard.png|32px]][http://www.counter-strike.net/operationvanguard/ Operation Vanguard]
| vanguard          = [[File:OpVanguard.png|32px]][http://www.counter-strike.net/operationvanguard/ {{#if:{{{disableop|}}}||Operation}} Vanguard]
| 6
| 6
| bloodhound          = [[File:OpBloodhound.png|32px]][http://www.counter-strike.net/operationbloodhound/ Operation Bloodhound]
| bloodhound          = [[File:OpBloodhound.png|32px]][http://www.counter-strike.net/operationbloodhound/ {{#if:{{{disableop|}}}||Operation}} Bloodhound]
| 7
| 7
| wildfire          = [[File:Wildfire.png|32px]][http://www.counter-strike.net/operationwildfire/ Operation Wildfire]
| wildfire          = [[File:Wildfire.png|32px]][http://www.counter-strike.net/operationwildfire/ {{#if:{{{disableop|}}}||Operation}} Wildfire]
| 8
| 8
| hydra          = [[File:op08.png|32px]][http://counter-strike.net/operationhydra Operation Hydra]
| hydra          = [[File:op08.png|32px]][http://counter-strike.net/operationhydra {{#if:{{{disableop|}}}||Operation}} Hydra]
| 9
| 9
| shatteredweb          = [[File:OpShatteredWeb.png|32px]][http://counter-strike.net/shatteredweb Operation Shattered Web]
| shatteredweb          = [[File:OpShatteredWeb.png|32px]][http://counter-strike.net/shatteredweb {{#if:{{{disableop|}}}||Operation}} Shattered Web]
| 10
| 10
| brokenfang          = [[File:OpBrokenFang.png|32px]][http://counter-strike.net/brokenfang Operation Broken Fang]
| brokenfang          = [[File:OpBrokenFang.png|32px]][http://counter-strike.net/brokenfang {{#if:{{{disableop|}}}||Operation}} Broken Fang]
| 11
| 11
| riptide          = [[File:OpRiptide.png|32px]][https://counter-strike.net/operationriptide Operation Riptide]
| riptide          = [[File:OpRiptide.png|32px]][https://counter-strike.net/operationriptide {{#if:{{{disableop|}}}||Operation}} Riptide]
| #default    = <span style="color:red">{{{1}}} is invalid operation! See [[Template:CsgoOperation]] </span>}}{{#if:{{{short|}}}|<nowiki></nowiki>|.}}|<span style="color:red">No operation selected! See [[Template:CsgoOperation]] </span>}}</includeonly><noinclude>
| #default    = <span style="color:red">{{{1}}} is invalid operation! See [[Template:CsgoOperation]] </span>}}{{#if:{{{short|}}}|<nowiki></nowiki>|.}}|<span style="color:red">No operation selected! See [[Template:CsgoOperation]] </span>}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}

Revision as of 23:45, 26 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}} It's one of many new features added with the Op08.pngOperation Hydra.
{{CsgoOperation|shatteredweb}} It's one of many new features added with the OpShatteredWeb.pngOperation Shattered Web.
{{CsgoOperation|5}} It's one of many new features added with the OpVanguard.pngOperation Vanguard.
{{CsgoOperation}} No operation selected! See Template:CsgoOperation
{{CsgoOperation|hydrogen}} It's one of many new features added with the hydrogen is invalid operation! See Template:CsgoOperation .
Examples for {{{2}}}
Code Result
{{CsgoOperation|hydra|Entity added with}} Entity added with Op08.pngOperation Hydra.
{{CsgoOperation|hydra|Used in}} 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}} It's one of many new features added with the Op08.pngOperation Hydra.
Examples for {{{name}}}
Code Result
{{CsgoOperation|hydra|name=Operation hydrogen}} It's one of many new features added with the Op08.pngOperation Hydra.
{{CsgoOperation|hydra}} It's one of many new features added with the Op08.pngOperation Hydra.
Examples for {{{icon}}}
Code Result
{{CsgoOperation|hydra|icon=[[File:Wildfire.png|32px]]}} It's one of many new features added with the Op08.pngOperation Hydra.
{{CsgoOperation|hydra}} It's one of many new features added with the Op08.pngOperation Hydra.
Examples for {{{link}}}
Code Result
{{CsgoOperation|hydra|link=https://counterstrike.fandom.com/wiki/Operation_Hydra}} It's one of many new features added with the Op08.pngOperation Hydra.
{{CsgoOperation|hydra}} It's one of many new features added with the Op08.pngOperation Hydra.