HRWiki:autocolumn

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Parameters: optional)
(tweak)
Line 5: Line 5:
''Please put any bugs or feature requests on the talk page.''
''Please put any bugs or feature requests on the talk page.''
-
==Primary use==
+
==Format==
<pre><nowiki><table [parameters]>
<pre><nowiki><table [parameters]>

Revision as of 07:38, 21 February 2006

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 parameters
align
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
I
drink
a
tall
glass

of
melonade
I
like
to
eat

about
147
Fluffy
Puff
Marshmallows

Seriously
folks
they're
the
best

You
heard

it
folks

Homestar
likes

marshmallows