Template:CsgoOperation/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Examples: Added new example)
No edit summary
 
(8 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.) -->
== Usage ==
__NOTOC__
===<nowiki>{{{1}}}</nowiki>===
{| class="standard-table" style="float:right"
Operation name:
!colspan=2| Value for {{param|1}}
{| class="standard-table sortable"
! Short Result
|-
|-
|payback, 1
|1
|payback
|{{CsgoOperation|payback|short=1}}
|{{CsgoOperation|payback|short=1}}
|-
|-
|bravo, 2
|2
|bravo
|{{CsgoOperation|bravo|short=1}}
|{{CsgoOperation|bravo|short=1}}
|-
|-
|phoenix, 3
|3
|phoenix
|{{CsgoOperation|phoenix|short=1}}
|{{CsgoOperation|phoenix|short=1}}
|-
|-
|breakout, 4
|4
|breakout
|{{CsgoOperation|breakout|short=1}}
|{{CsgoOperation|breakout|short=1}}
|-
|-
|vanguard, 5
|5
|vanguard
|{{CsgoOperation|vanguard|short=1}}
|{{CsgoOperation|vanguard|short=1}}
|-
|-
|bloodhound, 6
|6
|bloodhound
|{{CsgoOperation|bloodhound|short=1}}
|{{CsgoOperation|bloodhound|short=1}}
|-
|-
|wildfire, 7
|7
|wildfire
|{{CsgoOperation|wildfire|short=1}}
|{{CsgoOperation|wildfire|short=1}}
|-
|-
|hydra, 8
|8
|hydra
|{{CsgoOperation|hydra|short=1}}
|{{CsgoOperation|hydra|short=1}}
|-
|-
|shatteredweb, 9
|9
|shatteredweb
|{{CsgoOperation|shatteredweb|short=1}}
|{{CsgoOperation|shatteredweb|short=1}}
|-
|-
|brokenfang, 10
|10
|brokenfang
|{{CsgoOperation|brokenfang|short=1}}
|{{CsgoOperation|brokenfang|short=1}}
|-
|-
|riptide, 11
|11
|riptide
|{{CsgoOperation|riptide|short=1}}
|{{CsgoOperation|riptide|short=1}}
|}
|}
====Examples====
== Usage ==
{| class="standard-table sortable"
This template is used to insert the name and a link to a {{csgo|4}} operation, and in future, {{cs2|4}} operation.
!code
 
!result
=== Parameters ===
* {{param|1}} - The operation name or operation number (1-11). Should be one of the ones on the right.
* {{param|2}} - Sentence prefix
* {{param|prefix}} Adds prefix
* {{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===
{| class="standard-table"
|+ Examples for {{param|1}}
!Code
!Result
|-
|-
|<nowiki>{{CsgoOperation|hydra}}</nowiki>
|{{tlc|CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|-
|-
|<nowiki>{{CsgoOperation|shatteredweb}}</nowiki>
|{{tlc|CsgoOperation|shatteredweb}}
|{{CsgoOperation|shatteredweb}}
|{{CsgoOperation|shatteredweb}}
|-
|-
|<nowiki>{{CsgoOperation|5}}</nowiki>
|{{tlc|CsgoOperation|5}}
|{{CsgoOperation|5}}
|{{CsgoOperation|5}}
|-
|{{tlc|CsgoOperation}}
|{{CsgoOperation}}
|-
|{{tlc|CsgoOperation|hydrogen}}
|{{CsgoOperation|hydrogen}}
|}
|}


===<nowiki>{{{2}}}</nowiki>===
{| class="standard-table"
Start (prefix)
|+ Examples for {{param|2}}
====Examples====
!Code
{| class="standard-table sortable"
!Result
!code
!result
|-
|-
|<nowiki>{{CsgoOperation|hydra|Entity added with}}</nowiki>
|{{tlc|CsgoOperation|hydra|Entity added with}}
|{{CsgoOperation|hydra|Entity added with}}
|{{CsgoOperation|hydra|Entity added with}}
|-
|-
|<nowiki>{{CsgoOperation|hydra|Used in}}</nowiki>
|{{tlc|CsgoOperation|hydra|Used in}}
|{{CsgoOperation|hydra|Used in}}
|{{CsgoOperation|hydra|Used in}}
|}
|}
===<nowiki>{{{short}}}</nowiki>===
 
Hides start (prefix) and dot in end
{| class="standard-table"
====Examples====
|+ Examples for {{param|prefix}}
{| class="standard-table sortable"
!Code
!code
!Result
!result
|-
|{{tlc|CsgoOperation|hydra|prefix{{=}}1}}
|{{CsgoOperation|hydra|prefix=1}}
|-
|{{tlc|CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|}
 
{| class="standard-table"
|+ Examples for {{param|name}}
!Code
!Result
|-
|-
|<nowiki>{{CsgoOperation|hydra|short=1}}</nowiki>
|{{tlc|CsgoOperation|hydra|name{{=}}Operation hydrogen}}
|{{CsgoOperation|hydra|short=1}}
|{{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}}
|-
|-
|<nowiki>{{CsgoOperation|hydra}}</nowiki>
|{{tlc|CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|{{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