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
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<div class="infobox"><div style="text-align:center;"><div>{{{img|}}}</div><div>{{{namePrefix|A}}} <strong>{{{name|{{FULLPAGENAME}}}}}</strong></div></div>{{Special Unit infobox/row|[[Special unit#Attack and Defence power|Attack power]]|{{{AttackPower|Customizable, same as Defence power}}}}}{{Special Unit infobox/row|[[Special unit#Attack and Defence power|Defence power]]|{{{DefensePower|Customizable, same as Attack power}}}}}{{Special Unit infobox/row|Can be transferred to teammates|{{{CanBeTransferredToTeammate|Customizable}}}}}{{Special Unit infobox/row|Can be [[airlift card|airlifted]] to self|{{{CanBeAirliftedToSelf|Customizable}}}}}{{Special Unit infobox/row|Can be airlifted to teammates|{{{CanBeAirliftedToTeammate|Customizable}}}}}{{Special Unit infobox/row|Can be [[gift card|gifted]]|{{{CanBeGiftedWithGiftCard|Customizable}}}}}{{Special Unit infobox/row|[[Special unit#Combat order|Combat order]]|{{{CombatOrder|}}}}}{{Special Unit infobox/row|[[Special unit#Damage to kill|Damage to kill]]|{{{DamageToKill|N/A}}}}}{{Special Unit infobox/row|[[Special unit#Health|Starting health]]|{{{Health|N/A}}}}}{{Special Unit infobox/row|[[Special unit#Visible to all players|Visible to all players]]|{{{IsVisibleToAllPlayers|No}}}}}</div><noinclude>
<div style="text-align:center;"><div>{{{img|}}}</div><div>A <strong>{{{name|{{FULLPAGENAME}}}}}</strong></div></div>{{Special Unit infobox/row|Attack power|{{{AttackPower|Customizable}}}}}{{Special Unit infobox/row|Defence power|{{{DefensePower|Customizable}}}}}{{Special Unit infobox/row|Can be transferred to teammates|{{{CanBeTransferredToTeammate|Customizable}}}}}{{Special Unit infobox/row|Can be [[airlift card|airlifted]] to self|{{{CanBeAirliftedToSelf|Customizable}}}}}{{Special Unit infobox/row|Can be airlifted to teammates|{{{CanBeAirliftedToTeammate|Customizable}}}}}{{Special Unit infobox/row|Can be [[gift card|gifted]]|{{{CanBeGiftedWithGiftCard|Customizable}}}}}{{Special Unit infobox/row|[[Special unit#Combat Order|Combat order]]|{{{CombatOrder|}}}}}{{Special Unit infobox/row|Damage to kill|{{{DamageToKill|N/A}}}}}{{Special Unit infobox/row|Starting health|{{{Health|N/A}}}}}{{Special Unit infobox/row|Visible to all players|{{{IsVisibleToAllPlayers|No}}}}}
== Usage ==
</div>
All fields have same name as that of [[Mod_API_Reference:CustomSpecialUnit]].


<noinclude><nowiki>img from https://github.com/FizzerWL/ExampleMods/blob/master/TanksMod/SpecialUnitImages/Tank.png > Right click > Open image in new tab > https://raw.githubusercontent.com/FizzerWL/ExampleMods/master/TanksMod/SpecialUnitImages/Tank.png</nowiki></noinclude>
<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)


<noinclude>[[Category:Infobox Templates]]</noinclude>
<code>namePrefix</code> - defaults to <code>A</code>, use <code>namePrefix=</code> for no prefix
 
[[Tanks|Tank]] example:
<pre>
<nowiki>
{{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
}}
</nowiki>
</pre></noinclude><noinclude>[[Category:Infobox Templates]]</noinclude>

Latest revision as of 21:27, 22 June 2024

A Template:Special Unit infobox
Attack power Customizable, same as Defence power
Defence power Customizable, same as Attack power
Can be transferred to teammates Customizable
Can be airlifted to self Customizable
Can be airlifted to teammates Customizable
Can be gifted Customizable
Combat order
Damage to kill N/A
Starting health N/A
Visible to all players No

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
}}