Template:CsgoOperation/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Shortened page. Sortable tables make no sense here, because (they are short and) in some cases the sorting is done with the icon file names - not useful. Replaced "<nowiki>{{...}}</nowiki>" with "{{tlc|...}}".)
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Doc/subpage}}
{{Shortcut|{{T|Cs2Operation}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
__NOTOC__
__NOTOC__
Line 51: Line 52:
|}
|}
== Usage ==
== Usage ==
This template is used to insert the name and a link to a {{game name|csgo|name=Counter-Strike: Global Offensive}} operation.
This template is used to insert the name and a link to a {{csgo|4}} operation, and in future, {{cs2|4}} operation.


=== Parameters ===
=== Parameters ===
* {{param|1}} - The operation name or operation number (1-11). Should be one of the ones on the right.
* {{param|1}} - The operation name or operation number (1-11). Should be one of the ones on the right.
* {{param|2}} - Sentence prefix.
* {{param|2}} - Sentence prefix
* {{param|short}} - If defined, wipes the sentence prefix and full stop at the end.
* {{param|prefix}} Adds prefix
* {{param|disableop}} - If defined, hides the word "Operation" in the link text.
* {{param|disableop}} - If defined, hides the word "Operation" in the link text.
* {{param|name}} Changes the name of operation (including "Operation" word).
* {{param|icon}} Changes icon of operation.
* {{param|link}} Changes link of operation.
===Examples===
===Examples===
{| class="standard-table"
{| class="standard-table"
Line 93: Line 98:


{| class="standard-table"
{| class="standard-table"
|+ Examples for {{param|short}}
|+ Examples for {{param|prefix}}
!Code
!Code
!Result
!Result
|-
|-
|{{tlc|CsgoOperation|hydra|short=1}}
|{{tlc|CsgoOperation|hydra|prefix{{=}}1}}
|{{CsgoOperation|hydra|short=1}}
|{{CsgoOperation|hydra|prefix=1}}
|-
|{{tlc|CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|}
 
{| class="standard-table"
|+ Examples for {{param|name}}
!Code
!Result
|-
|{{tlc|CsgoOperation|hydra|name{{=}}Operation hydrogen}}
|{{CsgoOperation|hydra|name=Operation hydrogen}}
|-
|{{tlc|CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|}
 
{| class="standard-table"
|+ Examples for {{param|icon}}
!Code
!Result
|-
|{{tlc|CsgoOperation|hydra|icon{{=}}<nowiki>[[File:Wildfire.png|32px]]</nowiki>}}
|{{CsgoOperation|hydra|icon=[[File:Wildfire.png|32px]]}}
|-
|{{tlc|CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|}
 
{| class="standard-table"
|+ Examples for {{param|link}}
!Code
!Result
|-
|{{tlc|CsgoOperation|hydra|link{{=}}<nowiki>https://counterstrike.fandom.com/wiki/Operation_Hydra</nowiki>}}
|{{CsgoOperation|hydra|link=https://counterstrike.fandom.com/wiki/Operation_Hydra}}
|-
|-
|{{tlc|CsgoOperation|hydra}}
|{{tlc|CsgoOperation|hydra}}

Latest revision as of 03:44, 22 March 2024

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

{{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 OpHydra.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}} OpHydra.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}} Entity added withOpHydra.pngOperation Hydra
{{CsgoOperation|hydra|Used in}} Used inOpHydra.pngOperation Hydra
Examples for {{{prefix}}}
Code Result
{{CsgoOperation|hydra|prefix=1}} It's one of many new features added with the OpHydra.pngOperation Hydra.
{{CsgoOperation|hydra}} OpHydra.pngOperation Hydra
Examples for {{{name}}}
Code Result
{{CsgoOperation|hydra|name=Operation hydrogen}} OpHydra.pngOperation hydrogen
{{CsgoOperation|hydra}} OpHydra.pngOperation Hydra
Examples for {{{icon}}}
Code Result
{{CsgoOperation|hydra|icon=[[File:Wildfire.png|32px]]}} Wildfire.pngOperation Hydra
{{CsgoOperation|hydra}} OpHydra.pngOperation Hydra
Examples for {{{link}}}
Code Result
{{CsgoOperation|hydra|link=https://counterstrike.fandom.com/wiki/Operation_Hydra}} OpHydra.pngOperation Hydra
{{CsgoOperation|hydra}} OpHydra.pngOperation Hydra