Template talk:Odd-Even

From D&D Wiki

Jump to: navigation, search


I am curious as to the use behind this. Is this, throughout time, meant to replace class="even" on class="d20" tables or what ideas did you have in mind when you made this template? --Green Dragon 21:21, 29 November 2007 (MST)

You've got it! I intended it for the automated tables like the DnD Base Classes table. Instead of putting:
|- {{#vardefine:odd|{{#ifexpr: {{#var:odd}}|0|1}}}}{{#ifexpr: {{#var:odd}}||class="even"}}
We can now just put:
|- class="{{Odd-Even}}"
However, it'll work with any class="d20" table, not just the automated ones. That way if you insert a new entry in a table, you don't have to reassign the class="even" lines. —Sledged (talk) 21:32, 29 November 2007 (MST)
I like the use of this... I think Equipment needs a makeover. --Green Dragon 23:04, 4 December 2007 (MST)

How to use this template[edit]

Here's an example with the template in use. Mostly because I can never remember, but hopefully it will help someone else as well...

Column 1 Column 2
Test 1 Test 2
Test 3 Test 4

JazzMan 23:49, 14 June 2012 (MDT)

Personal tools
Home of user-generated,
homebrew pages!
system reference documents
admin area
Terms and Conditions for Non-Human Visitors