Template:CsgoOperation/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Examples: added some new examples)
(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|...}}".)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- 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 {{game name|csgo|name=Counter-Strike: Global Offensive}} 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|short}} - If defined, wipes the sentence prefix and full stop at the end.
* {{param|disableop}} - If defined, hides the word "Operation" in the link text.
===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}}
|-
|-
|<nowiki>{{CsgoOperation}}</nowiki>
|{{tlc|CsgoOperation}}
|{{CsgoOperation}}
|{{CsgoOperation}}
|-
|-
|<nowiki>{{CsgoOperation|hydrogen}}</nowiki>
|{{tlc|CsgoOperation|hydrogen}}
|{{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|short}}
{| class="standard-table sortable"
!Code
!code
!Result
!result
|-
|-
|<nowiki>{{CsgoOperation|hydra|short=1}}</nowiki>
|{{tlc|CsgoOperation|hydra|short=1}}
|{{CsgoOperation|hydra|short=1}}
|{{CsgoOperation|hydra|short=1}}
|-
|-
|<nowiki>{{CsgoOperation|hydra}}</nowiki>
|{{tlc|CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|{{CsgoOperation|hydra}}
|}
|}

Revision as of 11:15, 27 March 2022

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.
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 Template:Game name operation.

Parameters

  • {{{1}}} - The operation name or operation number (1-11). Should be one of the ones on the right.
  • {{{2}}} - Sentence prefix.
  • {{{short}}} - If defined, wipes the sentence prefix and full stop at the end.
  • {{{disableop}}} - If defined, hides the word "Operation" in the link text.

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 {{{short}}}
Code Result
{{CsgoOperation|hydra}} OpHydra.pngOperation Hydra
{{CsgoOperation|hydra}} OpHydra.pngOperation Hydra