Template:40k-Vehicle-Model-Profile: Difference between revisions

From 2d4chan
Jump to navigation Jump to search
No edit summary
imported>Administrator
m 4 revisions imported
 
(2 intermediate revisions by one other user not shown)
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|}}}|&nbsp;({{{type}}})|{{#if:{{{8|}}}|&nbsp;({{{8}}})|}}}}{{#if:{{{wargear|}}}|<br/>
! Vehicle{{#if:{{{type|}}}|&nbsp;({{{type}}})|{{#if:{{{8|}}}|&nbsp;({{{8}}})|}}}}
| {{#if:{{{composition|}}}|{{{composition}}}|{{{9|1}}}}}{{#if:{{{wargear|}}}{{{specialrules|}}}|<br/>
{{!}}-
{{!}}-
! colspan=7 {{!}} Wargear
{{#if:{{{wargear|}}}|! colspan={{#if:{{{specialrules|}}}|4|100}} {{!}} Wargear|}}
{{#if:{{{specialrules|}}}|! colspan={{#if:{{{wargear|}}}|4|100}} {{!}} Special Rules|}}
{{!}}-
{{!}}-
{{!}} colspan=7 {{!}}
{{#if:{{{wargear|}}}|{{!}} colspan={{#if:{{{specialrules|}}}|4|100}} {{!}}
{{{wargear}}}|}}
{{{wargear}}}|}}
{{#if:{{{specialrules|}}}|{{!}}-
{{#if:{{{specialrules|}}}|{{!}} colspan={{#if:{{{wargear|}}}|4|100}} {{!}}
! colspan=7 {{!}} Special Rules
{{{specialrules}}}|}}|}}{{#if:{{{options|}}}|<br/>
{{!}}-
{{!}}-
{{!}} colspan=7 {{!}}
! colspan=100 {{!}} Options
{{{specialrules}}}|}}
{{!}}-
{{!}} 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=
{{bulleted list item|Heavy Bolter}}{{bulleted list item|Multi-melta}}{{bulleted list item|Assault Cannon}}
*Heavy Bolter
*Multi-Melta
*Assault Cannon
|specialrules=
|specialrules=
{{bulleted list item|Scout}}{{bulleted list item|Infiltrate}}{{bulleted list item|Move Through Cover}}
*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=
{{bulleted list item|Scout}}{{bulleted list item|Infiltrate}}{{bulleted list item|Move Through Cover}}
*Scout
*Infiltrate
*Move Through Cover
|composition=2 thingies
}}
{{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 thingy
}}
}}
{{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>

Latest revision as of 17:57, 24 June 2023

Points BS AV HP Type Composition
F S R
1 1 10 10 10 1 Vehicle 1


  • 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):
testname
Points BS AV HP Type Composition
F S R
testpoints testbs testavf testavs testavr testhp Vehicle (test_type, test_type) 1
Wargear Special Rules
  • Heavy Bolter
  • Multi-Melta
  • Assault Cannon
  • Scout
  • Infiltrate
  • Move Through Cover
Options
Any model can replace its Heavy Bolter with:
Heavy Flamer Free
Multi-Melta 10 pts/model


testname
Points BS AV HP Type Composition
F S R
testpoints testbs testavf testavs testavr testhp Vehicle (test_type, test_type) 2 thingies
Special Rules
  • Scout
  • Infiltrate
  • Move Through Cover


testname
Points BS AV HP Type Composition
F S R
testpoints testbs testavf testavs testavr testhp Vehicle (test_type, test_type) 1 thingy
Wargear
  • Heavy Bolter
  • Multi-Melta
  • Assault Cannon


testname
Points BS AV HP Type Composition
F S R
testpoints testbs testavf testavs testavr testhp Vehicle (test_type) 1