Template:CsgoOperation/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Parameters: added some parameters)
(→‎Examples: Added more examples)
Line 103: Line 103:
|{{tlc|CsgoOperation|hydra|short{{=}}1}}
|{{tlc|CsgoOperation|hydra|short{{=}}1}}
|{{CsgoOperation|hydra|short=1}}
|{{CsgoOperation|hydra|short=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}}

Revision as of 13:22, 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.
  • {{{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 {{{short}}}
Code Result
{{CsgoOperation|hydra|short=1}} 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