Template:40k-Vehicle-Model-Profile: Difference between revisions
Jump to navigation
Jump to search
Created page with "{| border="1" cellspacing="0" cellpadding="5" align="{{#if:{{{align|}}}|{{{align}}}|left}}" class="wikitable" |+ ''' {{#if:{{{name|}}}|{{{name}}}|{{{1|}}}}} ''' ! rowspan=2 |..." |
No edit summary |
||
Line 6: | Line 6: | ||
|- align="center" | |- align="center" | ||
| {{#if:{{{points|}}}|{{{points}}}|{{{2|}}}}} || {{#if:{{{bs|}}}|{{{bs}}}|{{{3|}}}}} || {{#if:{{{avf|}}}|{{{avf}}}|{{{4|}}}}} || {{#if:{{{avs|}}}|{{{avs}}}|{{{5|}}}}} || {{#if:{{{avr|}}}|{{{avr}}}|{{{6|}}}}} || {{#if:{{{hp|}}}|{{{hp}}}|{{{7|}}}}} | | {{#if:{{{points|}}}|{{{points}}}|{{{2|}}}}} || {{#if:{{{bs|}}}|{{{bs}}}|{{{3|}}}}} || {{#if:{{{avf|}}}|{{{avf}}}|{{{4|}}}}} || {{#if:{{{avs|}}}|{{{avs}}}|{{{5|}}}}} || {{#if:{{{avr|}}}|{{{avr}}}|{{{6|}}}}} || {{#if:{{{hp|}}}|{{{hp}}}|{{{7|}}}}} | ||
! Vehicle{{#if:{{{type|}}}| ({{{type}}})|{{#if:{{{8|}}}| ({{{8}}})|}}}} | ! Vehicle{{#if:{{{type|}}}| ({{{type}}})|{{#if:{{{8|}}}| ({{{8}}})|}}}}{{#if:{{{wargear|}}}|<br/> | ||
{{!}}- | |||
! colspan=7 {{!}} Wargear | |||
{{!}}- | |||
{{!}} colspan=7 {{!}} | |||
{{{wargear}}}|}} | |||
{{#if:{{{specialrules|}}}|{{!}}- | |||
! colspan=7 {{!}} Special Rules | |||
{{!}}- | |||
{{!}} colspan=7 {{!}} | |||
{{{specialrules}}}|}} | |||
|}{{#if:{{{clear|}}}|<br style="clear: both; height: 0px;" />|}}<noinclude><br style="clear: both; height: 0px;" /> | |}{{#if:{{{clear|}}}|<br style="clear: both; height: 0px;" />|}}<noinclude><br style="clear: both; height: 0px;" /> | ||
*This template is intended for nonwalker vehicles. | *This template is intended for nonwalker vehicles. | ||
Line 17: | Line 27: | ||
**Set clear equal to anything to break the flow after the table (otherwise everything will flow to the left). | **Set clear equal to anything to break the flow after the table (otherwise everything will flow to the left). | ||
**Set align to set table alignment (i.e. how the table fits in the flow around it). | **Set align to set table alignment (i.e. how the table fits in the flow around it). | ||
**Use 'wargear' for wargear and 'specialrules' for special rules (not available with numerical/unnamed arguments); best practice is to use a bulleted list, as below. | |||
*See examples below (edit the template to see the source): | *See examples below (edit the template to see the source): | ||
{{40k-Vehicle-Model-Profile|name=testname|bs=testbs|avf=testavf|avs=testavs|avr=testavr|hp=testhp|type=test_type, test_type|points=testpoints|clear=yes}} | {{40k-Vehicle-Model-Profile|name=testname|bs=testbs|avf=testavf|avs=testavs|avr=testavr|hp=testhp|type=test_type, test_type|points=testpoints|clear=yes|wargear= | ||
{{bulleted list item|Heavy Bolter}}{{bulleted list item|Multi-melta}}{{bulleted list item|Assault Cannon}} | |||
|specialrules= | |||
{{bulleted list item|Scout}}{{bulleted list item|Infiltrate}}{{bulleted list item|Move Through Cover}} | |||
}} | |||
{{40k-Vehicle-Model-Profile|name=testname|bs=testbs|avf=testavf|avs=testavs|avr=testavr|hp=testhp|type=test_type, test_type|points=testpoints|clear=yes | |||
|specialrules= | |||
{{bulleted list item|Scout}}{{bulleted list item|Infiltrate}}{{bulleted list item|Move Through Cover}} | |||
}} | |||
{{40k-Vehicle-Model-Profile|testname|testpoints|testbs|testavf|testavs|testavr|testhp|test_type|clear=yes}} | {{40k-Vehicle-Model-Profile|testname|testpoints|testbs|testavf|testavs|testavr|testhp|test_type|clear=yes}} | ||
</noinclude> | </noinclude> |
Revision as of 16:47, 1 March 2017
Points | BS | AV | HP | Type | ||
---|---|---|---|---|---|---|
F | S | R | ||||
Vehicle |
- This template is intended for nonwalker vehicles.
- Note on usage:
- Parameters should be in order, with name first (so points second, etc), when using unnamed parameters. Align and clear must be named parameters.
- Name all parameters as the column name in lower case, e.g. points, bs, or type.
- This can also be done in order, with name first (so name, points, etc).
- Use avf, avs, and avr for armour values front, side, and rear, respectively.
- Comma and space delimit the type (e.g. type=Fast, Skimmer) to look like a codex profile.
- Set clear equal to anything to break the flow after the table (otherwise everything will flow to the left).
- Set align to set table alignment (i.e. how the table fits in the flow around it).
- Use 'wargear' for wargear and 'specialrules' for special rules (not available with numerical/unnamed arguments); best practice is to use a bulleted list, as below.
- See examples below (edit the template to see the source):
Points | BS | AV | HP | Type | ||
---|---|---|---|---|---|---|
F | S | R | ||||
testpoints | testbs | testavf | testavs | testavr | testhp | Vehicle (test_type, test_type) |
Wargear | ||||||
| ||||||
Special Rules | ||||||
|
Points | BS | AV | HP | Type | ||
---|---|---|---|---|---|---|
F | S | R | ||||
testpoints | testbs | testavf | testavs | testavr | testhp | Vehicle (test_type, test_type) |
Special Rules | ||||||
|
Points | BS | AV | HP | Type | ||
---|---|---|---|---|---|---|
F | S | R | ||||
testpoints | testbs | testavf | testavs | testavr | testhp | Vehicle (test_type) |