Template:Special Unit infobox

 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
<div style="text-align:center;"><div>{{{img|}}}</div><div>A <strong>{{{name|{{FULLPAGENAME}}}}}</strong></div></div>{{Special Unit infobox/row|Attack power <small>(in armies)</small>|{{{AttackPower|Customizable}}}}}{{Special Unit infobox/row|Defence power <small>(in armies)</small>|{{{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}}}}}
+
<div style="text-align:center;"><div>{{{img|}}}</div><div>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>
 
</div>
  
<noinclude>== Usage ==
+
<noinclude>
 +
== Usage ==
 +
All fields have same name as that of [[Mod_API_Reference:CustomSpecialUnit]].
 +
 
 +
<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)
 +
 
 
[[Tanks|Tank]] example:
 
[[Tanks|Tank]] example:
 
<pre>
 
<pre>
Line 20: Line 25:
 
</pre>
 
</pre>
  
<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>
+
</noinclude>
  
 
<noinclude>[[Category:Infobox Templates]]</noinclude>
 
<noinclude>[[Category:Infobox Templates]]</noinclude>

Latest revision as of 12:44, 17 November 2023



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)

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