Template:ReconItem

From Mud and Blood official Wiki
(Difference between revisions)
Jump to: navigation, search
m (image edit)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
<onlyinclude><div style="position: relative; {{plural:{{{center|2}}}|margin: {{{margin|12}}}px auto|float: {{plural:{{{left|2}}}|left|right}};{{plural:{{{pile|2}}}| clear: {{plural:{{{left|2}}}|left|right}};|}} margin: {{{margin|12}}}px}}; width: 160px; padding: 12px; background: #eee; border: 2px solid black;">
 
<onlyinclude><div style="position: relative; {{plural:{{{center|2}}}|margin: {{{margin|12}}}px auto|float: {{plural:{{{left|2}}}|left|right}};{{plural:{{{pile|2}}}| clear: {{plural:{{{left|2}}}|left|right}};|}} margin: {{{margin|12}}}px}}; width: 160px; padding: 12px; background: #eee; border: 2px solid black;">
<div style="margin: 0; font-size: 15px; text-align: center;">[[Image:Side_allied24.png|US Weapon]]<div style="margin-top: 3px;">'''{{{name|Unknown}}}'''</div></div>
+
<div style="margin: 0; font-size: 15px; text-align: center;">[[Image:US.png|US Item]]<div style="margin-top: 3px;">'''{{{name|Unknown}}}'''</div></div>
 
<div style="position: relative; margin: 8px 0; width: 160px; height: 80px;">
 
<div style="position: relative; margin: 8px 0; width: 160px; height: 80px;">
 
<table cellpadding="0" cellspacing="0" border="0" style="width: 160px; height: 80px; padding: 0; background: transparent;"><tr><td style="padding: 0; vertical-align: middle; text-align: center;">
 
<table cellpadding="0" cellspacing="0" border="0" style="width: 160px; height: 80px; padding: 0; background: transparent;"><tr><td style="padding: 0; vertical-align: middle; text-align: center;">
Line 21: Line 21:
 
 
 
</tr><tr style="height: 16px;">
 
</tr><tr style="height: 16px;">
 +
                                <td>{{{bulk|?}}}</td>
 
<td>{{{quantity|?}}}</td>
 
<td>{{{quantity|?}}}</td>
<td>{{{bulk|?}}}</td>
+
 
</tr>
 
</tr>
 
</table>
 
</table>

Latest revision as of 07:11, 11 September 2015

US Item
Unknown
Recontemplatebg.png
No Image
Item stats:
(mouseover the icons for explanation)
Bulk value (1 bulk = about 1 pound) Quantity. The more the merrier
? ?
Unlockable By:
Unknown
Strengths:
None.
Weaknesses:
None.
Description:
None.

[edit] Usage

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

{{ ReconItem
| name   = Name
| image  = [[Image:Filename.gif]]
| bulk = ?
| quantity = ?
| unlock =
| str =
| weak =
| desc =
}}

For unknown data, please type "?" in the field. For non-applicable data (i.e. rifles don't have explosion radius), 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:Weapons and Category:Axis_Weapons by default. To override this behavior, add this parameter:

| nocat  = 1

The template box 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 templates side-by-side. By default, it is 12 pixels wide, as shown:

| margin = 12
Personal tools