Template:Model-stats: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 18: Line 18:


<table style="width: 130px; text-align: right; margin: 0px; border-collapse: collapse;">
<table style="width: 130px; text-align: right; margin: 0px; border-collapse: collapse;">
<tr>
<tr>
<td style="width: 55%; font-size: 80%; font-weight: bold; ">BASE</td>
<td style="padding: 2px; padding-right: 10px; font-size: 80%; font-weight: bold; ">Base</td>
<td style="padding: 2px; padding-left: 5px; padding-right: 10px; font-size: 80%; border: 1px solid #b3b3b3; border-right: 0px;">{{ucfirst:{{{base|<span style="color: red;">Error</span>}}}}}</td>
<td style="padding: 2px; padding-right: 10px; font-size: 80%; ">{{{base}}}</td>
</tr>
</tr>
<tr style="{{{spd|display: none;}}}">
<tr style="{{{spd|display: none;}}}">
<td style="padding: 2px; padding-right: 10px; font-size: 80%; font-weight: bold; border: 1px solid #b3b3b3; border-left: 0px;">SPD</td>
<td style="padding: 2px; padding-right: 10px; font-size: 80%; font-weight: bold; ">SPD</td>
<td style="padding: 2px; padding-right: 10px; font-size: 80%; border: 1px solid #b3b3b3; border-right: 0px;">{{{spd}}}</td>
<td style="padding: 2px; padding-right: 10px; font-size: 80%; ">{{{spd}}}</td>
</tr>
</tr>
<tr style="{{{str|display: none;}}}">
<tr style="{{{str|display: none;}}}">
Line 149: Line 150:
</tr>
</tr>


{{{no_end|</table>}}}</includeonly><noinclude>
{{{no_end|</table>}}}</includeonly>
 
<noinclude>




Line 157: Line 160:
<pre style="width: 220px; margin-left: 20px;">
<pre style="width: 220px; margin-left: 20px;">
{{Model-stats
{{Model-stats
| name  =
| base  =  
| base  =  
| spd  =
| def  =  
| def  =  
| arm  =  
| arm  =  
Line 168: Line 169:


<pre style="width: 220px; margin-left: 20px;">
<pre style="width: 220px; margin-left: 20px;">
| name =
| spd  =
| str  =
| mat  =  
| mat  =  
| rat  =  
| rat  =  
Line 194: Line 198:


==Example 1==
==Example 1==
{{Model-stats
{{Infobox-Model
| name  = Lord Hexy
| name  = Lord Hexy
| altname = Hexeris1
| altname = Hexeris1

Revision as of 04:14, 26 December 2023



Usage

To use this template copy the following code into the page that you are editing. Then fill in the values and preview to make sure that the template is working and that all of the values have been filled in.

{{Model-stats
| base  = 
| def   = 
| arm   = 
}}

Optional fields:

| name = 
| spd   =
| str   = 
| mat   = 
| rat   = 
| ma    =
| cmd   = 
| ess   = 
| focus = 
| fury  = 
| thrs  = 
| hp    = 
| field =
| wjp   = 
| wbp   = 
| ihp   = 
| cost  = 
| cost_note =
| size  = 
| fa    = 
| notes = 

Note: "image" only requires the filename, but image2 requires a full input. See example.

Not listed here are fields for a secondary model (only use for CA or other edge cases). To use these fields just add 2 to the appropriate field. Example: | altname2 = Model Dos

Also, there is are cacost and casize and cafafields to be used when necessary on CA infoboxes.

Example 1

Template:Infobox-Model

{{Model-stats
| name  = Lord Hexy
| altname = Hexeris1
| type  = Warlock
| image = Lord_Tyrant_Hexeris.jpg
| image2= [[File:Cryx pic2.jpg|center|280px]]
| noimage 
| base  = a
| spd   = b
| def   = c
| arm   = d
| str   = e
| mat   = f
| rat   = g
| ma    = h
| cmd   = i
| ess   = j
| focus = k
| fury  = l
| thrs  = m
| hp    = n
| field = o
| wjp   = +p
| wbp   = +q
| ihp   = +r
| cost  = s
| cost_note = t each
| size  = u / v
| fa    = w
| notes = xyz
}}

Template:CLEAR

Example 2

Model-stats

Base {{{base}}}
SPD {{{spd}}}
STR {{{str}}}
MAT {{{mat}}}
RAT N/A
M.A. N/A
DEF Error
ARM Error
CMD N/A
ESSENCE {{{essence}}}
FOCUS N/A
FURY N/A
THRS N/A
HP 1
F. Field N/A
WJP {{{wjp}}}
WBP {{{wbp}}}
IHP {{{ihp}}}
FA N/A
UNIT SIZE N/A
COST N/A
N/A
N/A
N/A
Warcaster 1
COST N/A
N/A


{{Model-stats
}}