Template:5e Height Weight: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
|Species = String
|Species = String
|Base_Height = String
|Base_Height = String
|BH_Inches = Integer
|Base_Weight = String
|Base_Weight = String
|BW_Pounds = Integer
|Height_Mod = String
|Height_Mod = String
|H_Mod = Integer
|H_Mod_Die = Integer
|Weight_Mod = String
|Weight_Mod = String
|W_Mod = Integer
|W_Mod_Die = Integer
|Avg_HW = String
|Avg_HW = String
|Avg_H = Integer
|Refs = Wikitext
|Avg_W = Integer
}}
}}
</noinclude><includeonly>{| style="border-radius:0.5em; text-align:center; font-size:9pt; background: lightgray;"
</noinclude><includeonly>{| style="border-radius:0.5em; text-align:center; font-size:9pt; background: lightgray;"
!{{#if: {{{6|}}}|colspan="6"|colspan="5"|}}|Height & Weight
!{{#if: {{{refs|}}}|colspan="5"|colspan="6"|}}|Height & Weight{{#if: {{{refs|}}}|<nowiki />
!style="text-align:right;"{{!}}{{{refs}}}|}}
|-
|-
!Species
!Species
Line 28: Line 22:
|- style="background: ghostwhite;"
|- style="background: ghostwhite;"
|style="text-align:left;"|{{#if: {{{1|}}}|'''{{{1}}}'''|! error|}}
|style="text-align:left;"|{{#if: {{{1|}}}|'''{{{1}}}'''|! error|}}
|{{#if: {{{2|}}}|{{{2}}}[[Base Height::{{{2}}}| ]]|! error|}}
|{{#if: {{{2|}}}|{{{2}}}|}} <!--base height-->
|{{#if: {{{3|}}}|{{{3}}}[[Height Mod::  &#43;{{{3}}}| ]]|! error|}}
|{{#if: {{{3|}}}|&#43;{{{3}}}|}}
|{{#if: {{{4|}}}|{{{4}}}[[Base Weight::{{{4}}} lbs.| ]]|! error|}}
|{{#if: {{{4|}}}|{{{4}}} lbs.|}}
| {{#if: {{{5|}}}|{{{5}}}[[Weight Mod:: x({{{5}}}) lbs.| ]]|! error|}}{{#if: {{{6|}}}|<nowiki/>
| {{#if: {{{5|}}}|x ({{{5}}}) lbs.|}}{{#if: {{{6|}}}|<nowiki/>
{{!}}{{{6}}}|}}
{{!}}{{{6}}}|}}
|}<!--
|}<!--
Line 39: Line 33:
|Species = {{{1|}}}
|Species = {{{1|}}}
|Base_Height = {{{2|}}}
|Base_Height = {{{2|}}}
|BH_Inches = Integer
|Base_Weight = {{{4|}}}
|Base_Weight = {{{4|}}}
|BW_Pounds = Integer
|Height_Mod = {{{3|}}}
|Height_Mod = {{{3|}}}
|H_Mod = Integer
|H_Mod_Die = Integer
|Weight_Mod = {{{5|}}}
|Weight_Mod = {{{5|}}}
|W_Mod = Integer
|W_Mod_Die = Integer
|Avg_HW = {{{6|}}}
|Avg_HW = {{{6|}}}
|Avg_H = Integer
|Refs = {{{refs|}}}
|Avg_W = Integer
}}}}</includeonly><noinclude>
}}}}</includeonly><noinclude>
==Use==
==Use==
Line 56: Line 43:


==Syntax==
==Syntax==
<pre>{{5e Height Weight|Race|baseHeight|hightMod|baseWeight|weightMod|optAvg}}</pre>
<pre>{{5e Height Weight|Race|baseHeight|hightMod|baseWeight|weightMod|Avg|optRefs}}</pre>


==Example==
==Example==
<pre>{{5e Height Weight|Foo|5'0"|1d8|130|2d6}}</pre>
<pre>{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.}}</pre>


or
or


<pre>{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.}}</pre>
<pre>{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.|refs=<ref name="foo10">{{Cite Pub|Foo's Guide to Nothing|pages=10}}</ref>}}</pre>


produces:
produces:


{{5e Height Weight|Foo|5' 0"|1d8|130|2d6|nodb=true}}
{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.|nodb=true}}


or
or


{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.|nodb=true}}
{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.|refs=<ref name="foo10">{{Cite Pub|Foo's Guide to Nothing|pages=10}}</ref>|nodb=true}}


{{DEFAULTSORTKEY: Height Weight 5e}}
{{DEFAULTSORTKEY: Height Weight 5e}}

Latest revision as of 08:46, 1 July 2020

This template defines the table "5e_Height_Weight". View table.

Use

Standard height and Weight table to be placed on 5th edition race articles.

Syntax

{{5e Height Weight|Race|baseHeight|hightMod|baseWeight|weightMod|Avg|optRefs}}

Example

{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.}}

or

{{5e Height Weight|Foo|5'0"|1d8|130|2d6|5' 5" 165 lbs.|refs=<ref name="foo10">{{Cite Pub|Foo's Guide to Nothing|pages=10}}</ref>}}

produces:

Height & Weight
Species Base Height Height Mod Base Weight Weight Mod Average
Foo 5'0" +1d8 130 lbs. x (2d6) lbs. 5' 5" 165 lbs.

or

Height & Weight [1]
Species Base Height Height Mod Base Weight Weight Mod Average
Foo 5'0" +1d8 130 lbs. x (2d6) lbs. 5' 5" 165 lbs.