< User:Badger < sandbox3

User:Badger/sandbox3/tables

Trouble with Tables

So you want to make a table. First things first, you have to decide what kind of table you need. If you are making a simple table of DCs for a variant skill you wrote, you'll want to use a simple table. If you are making a table to display the name, summary, and pre-reqs for various feats, you'll want to use a DPL table (dynamic page list table). If you're just curious, about tables in general, that's ok too.

Static Tables

Static tables are tables that don't change. You want to use a static table for things like class progressions, DCs, weapon stats, and other things that once entered, don't have to change often. I'm going to show three examples of tables, the first is single column table for lists. The second is a two column table (great for DCs and the like), and the third is a 2+ column table. While each of these tables is ostensibly the same thing, you can copy the raw code for the table that best fits your need and use it without much work.

Single Column Static Table

Raw Code:

{| class="{{d20}}"
! rowspan="2" | 1st Column Name
|+
|- class="{{Odd-Even|{{#var:odd}}}}"
|1st row
|- class="{{Odd-Even|{{#var:odd}}}}"
|2nd row
|- class="{{Odd-Even|{{#var:odd}}}}"
|3rd row
|- class="{{Odd-Even|{{#var:odd}}}}"
|4th row
|}

Table:

1st Column Name

1st row
2nd row
3rd row
4th row

If you need to add more rows to this chart, that's easy as pie. Just add |- class="{{Odd-Even|{{#var:odd}}" and then a new line that begins with a pipe ( "|" ), then the content of the new row. This can be done indefinitely.

Two Column Static Table

Raw Code:

{| class="{{d20}}"
! rowspan="2" | 1st Column Name
! rowspan="2" | 2nd Column Name
|+
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R1||C2 R1
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R2||C2 R2
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R3||C2 R3
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R4||C2 R4
|}

Table:

1st Column Name 2nd Column Name

C1 R1C2 R1
C1 R2C2 R2
C1 R3C2 R3
C1 R4C2 R4

Just as before, if you want to add a new line, first add this line: |- class="{{Odd-Even|{{#var:odd}}}}" then add this one: |Column 1 new row text || Column 2 new row text . Again, this can be done indefinitely.

Multi-Column Static Table

This table can be used for many different applications. However, as is the case with many multi-column tables, you may want to evaluate if you want a static or dynamic table. If you're pretty sure you want a static table, it's easy, just follow the steps below:

Raw Code: {| class="{{d20}}"
! rowspan="2" | 1st Column Name
! rowspan="2" | 2nd Column Name
! rowspan="2" | 3rd Column Name
|+
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R1||C2 R1||C3 R1
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R2||C2 R2||C3 R2
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R3||C2 R3|| C3 R3
|- class="{{Odd-Even|{{#var:odd}}}}"
|C1 R4||C2 R4||C3 R4
|}

Table:

1st Column Name 2nd Column Name 3rd Column Name

C1 R1C2 R1C3 R1
C1 R2C2 R2C3 R2
C1 R3C2 R3C3 R3
C1 R4C2 R4C3 R4

Just as before, if you want to add a new row, first add this line: |- class="{{Odd-Even|{{#var:odd}}}}" then add this one: |Column 1 new row text || Column 2 new row text || Column 3 new row text . Again, this can be done indefinitely. If you want to add a new column, there is another step that also has to happen. if you'll notice up top we added a new line of text: ! rowspan="2" | 3rd Column Name . If you're adding another column you'll need to add another one of those, or your new column won't have a title.

Dynamic Lists

A dynamic list can change over time more easily than a static list can. If you are making a table to display every feat that falls into a certain category, (Aerial feats, for instance) you will want to use a dynamic list. The benefit is, whenever anyone adds a new aerial feat to the category, the list will automatically update to reflect the changes, so you don't have to go through and edit all the text by hand. This sort of table is a bit more complicated, but is worth the extra learning. Because of the nature of dynamic lists, adding a new column is as simple as thinking of a name, and you don't have to add new rows, because the list automatically updates.

The key with making a good dynamic list is to narrow down the categories. Because a list is generated by compiling everything in all the categories, you need to be specific. As you can see, in the example below I wanted only homebrew aerial feats. Therefore I included Category:User and Category:Aerial Feats to get only the intersection of those two categories. If I had left out Category:user I would have gotten SRD and OGL feats that were aerial feats. If I had left out Category:Aerial Feats I would have gotten a list of every single homebrew feat, not just the aerial ones. I left out Category:Feats because every aerial feat is also in category:feat, so this wouldn't narrow down my search any.

To include categories to search in, you need to type "category=<Name of category, ie Feats>. Once you've compiled the list of all the feats, you can decide what content you want on your list. In this instance I chose to include items from the template: 3.5e feat. I chose :prereqs and :summary. I could have chosen anything from that template, or any other template that was applied to all those pages. If there is a no information (for instance, no pre-reqs) the default leaves the cell blank. You can edit this list further to input something like "This feat has no pre-requisites", but that is far beyond the scope of this new user guide.Here's how a dynamic list gets things done:

gollark: I'm mostly concerned about the fact that I'm trying to spread out the base a bit, and without any control this will inetvitably result in a Mess\™.
gollark: I think my phytogenic insolation system almost does that.
gollark: I basically just meant "standard design and location for a common group of cables for in-base systems".
gollark: Have you *seen* the machine room basement?
gollark: It's okay with power and water, which are simple, but AE2's got channels and I'm P2P tunneling.

Multi-column dynamic table

Raw Code:

{| class="d20" style="text-align: left;" {{#vardefine:odd|0}}
|+ Aerial Feats
|- style="text-align: center;"
! Name || [[Property:3e Prerequisite|Prerequisite(s)]] ||[[Property:3e Summary|Summary]]
{{#dpl:debug=1
|category=User
|category=Aerial Feat
|include={3.5e Feat}:prereqs:summary
|mode=userformat
|format=,¦- class="²{Odd-Even¦²{var:odd}²}²"\n¦ [[%PAGE%¦²{#replace:%PAGE%¦(3.5e Feat)¦} ²]],\n,
|tablerow=¦¦ style="text-align: left;" ¦ %%, %%\n
}}|}

Table:

Aerial Feats
NamePrerequisite(s)Summary

{{#dpl:debug=1

category=User category=Aerial Feat include={3.5e Feat}:prereqs:summary mode=userformat format=,¦- class="²{Odd-Even¦²{var:odd}²}²"\n¦ [[%PAGE%¦²{#replace:%PAGE%¦(3.5e Feat)¦}²]],\n, tablerow=¦¦ style="text-align: left;" ¦ %%, %%\n

}}|}

Specific Tables

Some tables are pre-made, and you just have to fill in your ideas. These next few sections are devoted to helping you fill out pre-made tables.

3.5e Base and Prestige Class Tables

3.5e Creature Tables


This article is issued from Dandwiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.