Bem-vindo à Wiki Wargaming.net!

Predefinição:CammoCell/doc

Ir para: navegação, pesquisa

How does it work??

Inserts a 'cell' on the table, putting the Permacammo image in, as well as its name. If needed, the editor can add the values for: Cost, in Doubloons, Coal, Steel and Comunity Tokens; Earned Credits Bonus, in percentiles; Service Cost Reduction, in percentiles; XP Earned per Battle Bonus, in percentiles; Commander XP Earned per Battle Bonus, in percentiles; Free XP Earned per Battle Bonus, in percentiles; A 'standard' and simple description or a more detailed one.

Code:

| style="vertical-align:middle;" | [[File:{{{1}}}.png|center|link=]] 
| style="vertical-align:middle;" | '''{{#shipstr:IDS_{{{1}}}}}'''
| style="vertical-align:middle;" | {{#switch:{{{2|}}}|db = {{Doubloons}} {{{3}}}|coal = {{Coal}} {{{3}}}|st = {{Steel}} {{{3}}}|ct = {{Community Tokens}} {{{3}}}|}}
| style="vertical-align:middle;" | {{{4}}}
| style="vertical-align:middle;" | {{{5}}}
| style="vertical-align:middle;" | {{{6}}} 
| style="vertical-align:middle;" | {{{7}}}
| style="vertical-align:middle;" | {{{8}}}
| style="vertical-align:middle;" |<br>{{#switch:{{{9|}}}|std = Permanent camouflage for '''{{{10}}}'''. {{{11}}}|special = {{{11}}}|}}

Usage

This template needs a 'wikitable' to work, along with some sortable columns. A 'standard' header for permacammos can be found here.

To use, the editor will need to use as arguments:

  • 1st argument: "Internal" camouflage name;
  • 2nd argument: The currency (if the cost is known) out of: Doubloons (db), Coal (coal), Steel (st) and Community Tokens (ct);
  • 3rd argument: The cost itself;

If a Currency type isn't picked, the cost won't be used, thus enabling the possibility of laving the Cost field blank.

  • 4th argument: Earned Credits Bonus, in percentage;
  • 5th argument: Service Cost Reduction, in percentage;
  • 6th argument: XP Earned per Battle Bonus, in percentage;
  • 7th argument: Commander XP Earned per Battle Bonus, in percentage;
  • 8th argument: Free XP Earned per Battle Bonus, in percentage;
  • 9th argument: The type of Description, out of: Standard (std) and Special (special);
  • 10th argument: The name of the Ship, if Standard was picked;
  • 11th argument: The details of the description, regardless of the type.

If a Description type isn't picked, the name of the ship or the details won't be used, leaving a blank description.

Example:

Code:

{| class="wikitable sortable" style="text-align:center; width:1000px"
|-
! class="unsortable" style="width: 100px; vertical-align:middle;" rowspan="2" | Icon 
! style="width: 100px; vertical-align:middle;" rowspan="2"                    | Type 
! style="width: 50px; vertical-align:middle;" rowspan="2"                     | Buy Cost 
! class="unsortable" style="width: 375px; vertical-align:middle;" colspan="5" | Effects 
! class="unsortable" style="width: 250px; vertical-align:middle;" rowspan="2" | Notes 
|-
! style="width: 75px; vertical-align:middle; font-weight:normal;"             | Credits
! style="width: 75px; vertical-align:middle; font-weight:normal;"             | Service Cost
! style="width: 75px; vertical-align:middle; font-weight:normal;"             | XP per battle
! style="width: 75px; vertical-align:middle; font-weight:normal;"             | Commander XP
! style="width: 75px; vertical-align:middle; font-weight:normal;"             | Free XP
|-
{{CammoCell|PGEP418_Prinz_Eugen|db|3,000|+10%|-10%|+50%|+50%||std|[[Prinz Eugen]]|hello world!}}
|-
|}

On the example, PGEP418_Prinz_Eugen is the "internal name" of the "Adler" cammo for Prinz Eugen.
The template uses said names to grab the file and search for the camouflage name, returning the name.
"db" is the chosen currency. "3,000" is the price of the camouflage, in Doubloons.
+10% is the Credits bonus, -10% is the reduction on service cost, +50% is the XP bonus, +50% is the CXP bonus and as you can notice, the FXP bonus is empty because this camouflage doesn't have it.
The description picked was a "Standard" one, which only requires the editor to put in the ship name. 'hello world' is the additional description.

Result:

Icon Type Buy Cost Effects Notes
Credits Service Cost XP per battle Commander XP Free XP
PGEP418_Prinz_Eugen.png
Adler Dobrões 3,000 +10% -10% +50% +50%
Permanent camouflage for Prinz Eugen. hello world!