Template:40k-Vehicle-Model-Profile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{| border="1" cellspacing="0" cellpadding="5" align="{{#if:{{{align|}}}|{{{align}}}|left}}" class="wikitable" | {| border="1" cellspacing="0" cellpadding="5" align="{{#if:{{{align|}}}|{{{align}}}|left}}" class="wikitable" | ||
|+ ''' {{#if:{{{name|}}}|{{{name}}}|{{{1|}}}}} ''' | |+ ''' {{#if:{{{name|}}}|{{{name}}}|{{{1|}}}}} ''' | ||
! rowspan=2 | Points !! rowspan=2 | BS !! colspan=3 | AV !! rowspan=2 | HP !! rowspan=2 | Type | ! rowspan=2 | Points !! rowspan=2 | BS !! colspan=3 | AV !! rowspan=2 | HP !! rowspan=2 | Type !! rowspan=2 | Composition | ||
|- | |- | ||
! F !! S !! R | ! F !! S !! R | ||
|- 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|1}}}}} || {{#if:{{{bs|}}}|{{{bs}}}|{{{3|1}}}}} || {{#if:{{{avf|}}}|{{{avf}}}|{{{4|10}}}}} || {{#if:{{{avs|}}}|{{{avs}}}|{{{5|10}}}}} || {{#if:{{{avr|}}}|{{{avr}}}|{{{6|10}}}}} || {{#if:{{{hp|}}}|{{{hp}}}|{{{7|1}}}}} | ||
! Vehicle{{#if:{{{type|}}}| ({{{type}}})|{{#if:{{{8|}}}| ({{{8}}})|}}}}{{#if:{{{wargear|}}}|<br/> | ! Vehicle{{#if:{{{type|}}}| ({{{type}}})|{{#if:{{{8|}}}| ({{{8}}})|}}}} | ||
| {{#if:{{{composition|}}}|{{{composition}}}{{#if:{{{name|}}}| {{{name}}}|{{#if:{{{1|}}}| {{{1}}}|}}}}{{#ifexpr: {{{composition}}}>1 |s}}|{{#if:{{{9|}}}|{{{9}}}{{#if:{{{name|}}}| {{{name}}}|{{#if:{{{1|}}}| {{{1}}}|}}}}{{#ifexpr: {{{9}}}>1 |s}}}}}}{{#if:{{{wargear|}}}{{{specialrules|}}}|<br/> | |||
{{!}}- | {{!}}- | ||
! colspan= | {{#if:{{{wargear|}}}|! colspan={{#if:{{{specialrules|}}}|4|100}} {{!}} Wargear|}} | ||
{{#if:{{{specialrules|}}}|! colspan={{#if:{{{wargear|}}}|4|100}} {{!}} Special Rules|}} | |||
{{!}}- | {{!}}- | ||
{{!}} colspan= | {{#if:{{{wargear|}}}|{{!}} colspan={{#if:{{{specialrules|}}}|4|100}} {{!}} | ||
{{{wargear}}}|}} | {{{wargear}}}|}} | ||
{{#if:{{{specialrules|}}}|{{!}} | {{#if:{{{specialrules|}}}|{{!}} colspan={{#if:{{{wargear|}}}|4|100}} {{!}} | ||
{{{specialrules}}}|}}|}}{{#if:{{{options|}}}|<br/> | |||
{{!}}- | {{!}}- | ||
{{!}} colspan= | ! colspan=100 {{!}} Options | ||
{{{ | {{!}}- | ||
{{!}} colspan=100 {{!}} | |||
{{{options}}}|}} | |||
|}{{#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 28: | Line 32: | ||
**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. | **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. | ||
**Use 'options' for options; ''usually'', you will want a nested table. | |||
*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|wargear= | {{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= | ||
*Heavy Bolter | |||
*Multi-Melta | |||
*Assault Cannon | |||
|specialrules= | |specialrules= | ||
{{ | *Scout | ||
*Infiltrate | |||
*Move Through Cover | |||
|composition=1 | |||
|options= | |||
{{{!}} | |||
{{!}}+ style="white-space: nowrap;" {{!}} Any model can replace its Heavy Bolter with: | |||
{{!}}- | |||
{{!}} Heavy Flamer {{!}}{{!}} align=right {{!}} '''Free''' | |||
{{!}}- | |||
{{!}} Multi-Melta {{!}}{{!}} 10 pts/model | |||
{{!}}} | |||
}} | }} | ||
{{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 | ||
|specialrules= | |specialrules= | ||
*Scout | |||
*Infiltrate | |||
*Move Through Cover | |||
|composition=2 | |||
}} | |||
{{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= | |||
*Heavy Bolter | |||
*Multi-Melta | |||
*Assault Cannon | |||
|composition=1 | |||
}} | }} | ||
{{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|1|clear=yes}} | ||
</noinclude> | </noinclude> |
Revision as of 19:32, 1 March 2017
Points | BS | AV | HP | Type | Composition | ||
---|---|---|---|---|---|---|---|
F | S | R | |||||
1 | 1 | 10 | 10 | 10 | 1 | 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.
- Use 'options' for options; usually, you will want a nested table.
- See examples below (edit the template to see the source):
Points | BS | AV | HP | Type | Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
F | S | R | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
testpoints | testbs | testavf | testavs | testavr | testhp | Vehicle (test_type, test_type) | 1 testname | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Wargear | Special Rules | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Options | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Points | BS | AV | HP | Type | Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
F | S | R | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
testpoints | testbs | testavf | testavs | testavr | testhp | Vehicle (test_type, test_type) | 2 testnames | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Special Rules | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Points | BS | AV | HP | Type | Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
F | S | R | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
testpoints | testbs | testavf | testavs | testavr | testhp | Vehicle (test_type, test_type) | 1 testname | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Wargear | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Points | BS | AV | HP | Type | Composition | ||
---|---|---|---|---|---|---|---|
F | S | R | |||||
testpoints | testbs | testavf | testavs | testavr | testhp | Vehicle (test_type) | 1 testname |