HRWiki:autocolumn
From Homestar Runner Wiki
Description: An extension to easily create tables whose columns have equal lengths (or nearly so), especially for tables that are updated often.
Written by: It's dot com
Please put any bugs or feature requests on the talk page.
Contents |
Format
<table [parameters]> <autocolumn [parameters]> [single list of content to be automatically divided] </autocolumn> </table>
Parameters
The parameters in the <table>
are the normal table parameters, and are optional.
The available <autocolumn>
parameters are listed below. Each one is optional.
cols
– the number of columns (the default is 2)width
– the remaining parameters are normal cell parametersalign
valign
class
style
You cannot have fewer than 2 columns. You cannot have more columns than total items in the list. The function ignores all white space between the tags. It formats each column according to wiki markup rules.
Variations
- You can use wiki table markup (
{| ... |}
) instead of HTML. - You can have a header row.
- You can stack
<autocolumn>
rows within the same table.
Example
<table width="80%"> <autocolumn cols="3" width="33%"> *'''Debut:''' [[some kinda robot]] *[[i she be]] *[[guitar]] *[[island]] *[[japanese cartoon]] *[[personal favorites]] *[[different town]] *[[rock opera]] *[[radio]] </autocolumn> </table>
|
Gallery
View the source code to see how each table was made.
Selected Toons | ||||
---|---|---|---|---|
Before |
of |
about |
Seriously |
You |
it |
Homestar |
marshmallows |