Template:Special Unit infobox: Difference between revisions

From Warzone Wiki
Jump to navigation Jump to search
DanWL60 (talk | contribs)
No edit summary
DanWL60 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


<code>img</code> from <nowiki>https://github.com/FizzerWL/ExampleMods/blob/master/TanksMod/SpecialUnitImages/Tank.png</nowiki> > Right click > Open image in new tab > (copy the URL)
<code>img</code> from <nowiki>https://github.com/FizzerWL/ExampleMods/blob/master/TanksMod/SpecialUnitImages/Tank.png</nowiki> > Right click > Open image in new tab > (copy the URL)
<code>namePrefix</code> - defaults to <code><nowiki>A</nowiki></code>
 
<code>namePrefix</code> - defaults to <code>A</code>, use <code>namePrefix=</code> for no prefix


[[Tanks|Tank]] example:
[[Tanks|Tank]] example:

Latest revision as of 21:27, 22 June 2024

A Template:Special Unit infobox
Attack powerCustomizable, same as Defence power
Defence powerCustomizable, same as Attack power
Can be transferred to teammatesCustomizable
Can be airlifted to selfCustomizable
Can be airlifted to teammatesCustomizable
Can be giftedCustomizable
Combat order
Damage to killN/A
Starting healthN/A
Visible to all playersNo

Usage

All fields have same name as that of Mod_API_Reference:CustomSpecialUnit.

img from https://github.com/FizzerWL/ExampleMods/blob/master/TanksMod/SpecialUnitImages/Tank.png > Right click > Open image in new tab > (copy the URL)

namePrefix - defaults to A, use namePrefix= for no prefix

Tank example:


{{Special Unit infobox
|img=https://raw.githubusercontent.com/FizzerWL/ExampleMods/master/TanksMod/SpecialUnitImages/Tank.png
|name=Tank
|CanBeTransferredToTeammate=Yes
|CanBeAirliftedToSelf=Yes
|CanBeAirliftedToTeammate=Yes
|CanBeGiftedWithGiftCard=Yes
|CombatOrder=3415
|DamageToKill=Same as attack/defence power
}}