Template:Rolltable/row: Difference between revisions

From The Undead Archive
Niuf (talk | contribs)
Created page with "<includeonly> |- | {{{1|}}} | {{{2|}}} </includeonly><noinclude> == Description == Creates one row for {{tl|Rolltable}}. This template should be used inside the <code>rows</code> parameter of {{tl|Rolltable}}. == Usage == <pre> {{Rolltable/row|Roll value|Result text}} </pre> == Example == <pre> {{Rolltable |rows= {{Rolltable/row|4 and under|Object lands 5 tiles off target.}} {{Rolltable/row|5-9|Object lands 3 tiles off target.}} }} </pre> <templatedata> { "descripti..."
 
Niuf (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>|-
|-
| style="width:150px; vertical-align:top; font-size:.9em; padding:4px 6px; font-weight:bold; color:inherit; background:transparent; border:1px solid #4A3D3A;" | {{{1|}}}
| {{{1|}}}
| style="vertical-align:top; font-size:.9em; padding:4px 6px; color:inherit; background:transparent; border:1px solid #4A3D3A;" | {{{2|}}}</includeonly><noinclude>
| {{{2|}}}
</includeonly><noinclude>
== Description ==
== Description ==
Creates one row for {{tl|Rolltable}}.
Creates one row for [[Template:Rolltable]].


This template should be used inside the <code>rows</code> parameter of {{tl|Rolltable}}.
This template should be used inside the <code>rows</code> parameter of [[Template:Rolltable]].


== Usage ==
== Usage ==
Line 42: Line 40:
}
}
},
},
"paramOrder": [
"1",
"2"
],
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 11:00, 31 May 2026

Description

Creates one row for Template:Rolltable.

This template should be used inside the rows parameter of Template:Rolltable.

Usage

{{Rolltable/row|Roll value|Result text}}

Example

{{Rolltable
|rows=
{{Rolltable/row|4 and under|Object lands 5 tiles off target.}}
{{Rolltable/row|5-9|Object lands 3 tiles off target.}}
}}

Creates one row for Template:Rolltable.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Roll1

The roll value, range, or condition for this row.

Example
4 and under
Stringrequired
Result2

The result text for this roll.

Example
Object lands 5 tiles off target.
Contentrequired