Template:5e Dice Table: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
(small option)
Line 1: Line 1:
<includeonly>{{{!}} class="zebra small" {{#if: {{{width|}}} | style="width:{{{width}}};"}}
<includeonly>{{{!}} class="zebra{{#if: {{{small|}}}| small}}" {{#if: {{{width|}}} | style="width:{{{width}}};"}}
{{!}}-
{{!}}-
! style="width:30px" {{!}} d{{#if: {{{entry13|}}}|20|{{#if: {{{entry11|}}}|12|{{#if: {{{entry9|}}}|10|{{#if: {{{entry7|}}}|8|{{#if: {{{entry5|}}}|6|{{#if: {{{entry4|}}}|4|{{#if: {{{entry3|}}}|3|2}} }} }} }} }} }} }} !! class="left" {{!}} {{{name|}}}
! style="width:30px" {{!}} d{{#if: {{{entry13|}}}|20|{{#if: {{{entry11|}}}|12|{{#if: {{{entry9|}}}|10|{{#if: {{{entry7|}}}|8|{{#if: {{{entry5|}}}|6|{{#if: {{{entry4|}}}|4|{{#if: {{{entry3|}}}|3|2}} }} }} }} }} }} }} !! class="left" {{!}} {{{name|}}}

Revision as of 12:49, 11 March 2021

Template documentation (for the above template, sometimes hidden or invisible)
{{5e Dice Table
|name=<!-- table name -->
|entry1=<!-- value associated with rolling a 1 on the table -->
|entry2=<!-- value associated with rolling a 2 on the table -->
|entry3=<!-- value associated with rolling a 3 on the table -->
...
|entry20=<!-- value associated with rolling a 20 on the table -->
}}

Delete unused entry values. Table will automatically size to d2, d3, d4, d6, d8, d10, d12, or d20. It does not support entries in an amount that does not correspond to one of those dice.