Template:AlliedUnit

From Mud and Blood official Wiki
Jump to: navigation, search

See also: Template:AxisUnit.


?
Allied Unit
Unknown
Backdrop160tp.png
No Image
No specialty icon
?
Starting equipment:
None.
Average stats:
Health Rifle Exp Morale Speed
? ? ? ? ?
Specialties:
None.
Description:
None.

Usage

Place this template preferably at the top of the unit page. The syntax is the following:

{{ AlliedUnit
| name   = Name
| image  = [[Image:File.gif]]
| menu   = [[Image:Menu_icon.gif]]
| hotkey = 1-1
| cost   = 1
| icon   = [[Image:Specialty_icon_175%zoom.gif]]
| equip  = None.
| health = 100
| rifle  = 1-20
| exp    = ?
| morale = N/A
| speed  = 3px/s
| specs  = None.
| desc   = Generic unit.
}}

For unknown data, please type "?" in the field. For non-applicable data (i.e. vehicles don't have morale), please use "N/A" instead.

This template can be used multiple times in the same page if needed. By default, they will appear side-by-side. In order to force them to appear one below each other, add this extra parameter:

| pile   = 1

If you want to force other page content to appear below the template, instead of beside it, add this parameter:

| clear  = 1

Pages where this template is used will be entered into Category:Units and Category:AlliedUnits by default. To override this behavior (e.g. if you're using this to put a unit on your user page), add this parameter:

| nocat  = 1

The unit card will float on the right side by default. To switch it to the left, add the following parameter:

| left   = 1

You can also align it to the center, but this will automatically force the clearing of the content:

| center = 1

Lastly, you can change the margin around the box. This might come in handy when placing multiple unit cards side-by-side. By default, it is 12 pixels wide, as shown:

| margin = 12
Personal tools