Work in progress — This wiki is an active migration / mirror of Homestar Runner Wiki and is not finished yet. Account registration and public editing are turned off until the migration is further along. For status updates, see the migration thread on the forums.

HRWiki autocolumn: Difference between revisions

From HR Wiki Twice
Jump to navigationJump to search
imported>HRWikiMirrorBot
Imported from hrwiki.org via Wayback Machine (HTML→wikitext)
 
imported>HRWikiMirrorBot
Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)
 
Line 1: Line 1:
<!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine; HTML converted to wikitext. Formatting may be imperfect. -->
<!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine -->
'''Description:''' An extension to easily create tables whose columns have equal lengths (or nearly so), especially for tables that are updated often.
'''Description:''' An extension to easily create tables whose columns have equal lengths (or nearly so), especially for tables that are updated often.


Line 8: Line 8:
''Please put any bugs or feature requests on the talk page.''
''Please put any bugs or feature requests on the talk page.''


{| id="toc" class="wikitable toc" summary="Contents"
== Format ==
|-
| <div id="toctitle">
 
<span id="contents"></span>
== Contents ==
 
</div>
* [#Format 1 Format]
* [#Parameters 2 Parameters]
* [#Known_limitations 3 Known limitations]
* [#Variations 4 Variations]
* [#Example 5 Example]
* [#Gallery 6 Gallery]
** [#Sample_1 6.1 Sample 1]
** [#Sample_2 6.2 Sample 2]
** [#Sample_3 6.3 Sample 3]
 
|}


<span id="format"></span>
<pre><table [parameters]>
== <span class="mw-headline">Format</span> ==


<pre>&lt;table [parameters]&gt;
<autocolumn [parameters]>
 
&lt;autocolumn [parameters]&gt;


[single list of content to be automatically divided]
[single list of content to be automatically divided]


&lt;/autocolumn&gt;
</autocolumn>
&lt;/table&gt;</pre>
</table></pre>
<span id="parameters"></span>
== <span class="mw-headline">Parameters</span> ==


The parameters in the <code>&lt;table&gt;</code> tag are the normal table parameters, and are optional.
== Parameters ==


The available <code>&lt;autocolumn&gt;</code> parameters are listed below. Each one is optional.
The parameters in the <table> tag are the normal table parameters, and are optional.


<code>cols</code> – the number of columns (the default is 2)
The available <autocolumn> parameters are listed below. Each one is optional.


<code>width</code> – the remaining parameters are normal cell parameters
cols – the number of columns (the default is 2)
 
width – the remaining parameters are normal cell parameters
<code>align</code>
align
 
valign – "top" is the default value
<code>valign</code> &quot;top&quot; is the default value
class
 
style
<code>class</code>
 
<code>style</code>


You cannot have fewer than 2 columns (unless there is only 1 item in the list), nor can you have more columns than total items in the list. The function removes all extra white space between the tags and then formats each column according to standard wiki markup rules.
You cannot have fewer than 2 columns (unless there is only 1 item in the list), nor can you have more columns than total items in the list. The function removes all extra white space between the tags and then formats each column according to standard wiki markup rules.


<span id="known-limitations"></span>
== Known limitations ==
== <span class="mw-headline">Known limitations</span> ==


* Automatic text replacement (for example, when signing using tildes (~~~~)) is not supported. This feature will be included when we upgrade to MediaWiki 1.6.
* Automatic text replacement (for example, when signing using tildes (~~~~)) is not supported. This feature will be included when we upgrade to MediaWiki 1.6.


<span id="variations"></span>
== Variations ==
== <span class="mw-headline">Variations</span> ==


* You can use wiki table markup ( <code>{| ... |}</code> ) instead of HTML ''(see gallery sample 1)''.
* You can use wiki table markup ( {| ... |} ) instead of HTML ''(see gallery sample 1)''.
* You can have a header row ''(see gallery sample 1)''.
* You can have a header row ''(see gallery sample 1)''.
* You can stack <code>&lt;autocolumn&gt;</code> rows within the same table ''(see gallery sample 2)''.
* You can stack <autocolumn> rows within the same table ''(see gallery sample 2)''.
* If the ''entire'' list is an ordered list (each line begins with a <code>#</code> and has no subitems), it will be correctly numbered across the columns ''(see gallery sample 3)''.
* If the ''entire'' list is an ordered list (each line begins with a # and has no subitems), it will be correctly numbered across the columns ''(see gallery sample 3)''.


<span id="example"></span>
== Example ==
== <span class="mw-headline">Example</span> ==


<pre>&lt;table width=&quot;80%&quot;&gt;
<pre><table width="80%">
&lt;autocolumn cols=&quot;3&quot; width=&quot;33%&quot;&gt;
<autocolumn cols="3" width="33%">
*'''Debut:''' [[some kinda robot]]
*'''Debut:''' [[some kinda robot]]
*[[i she be]]
*[[i she be]]
Line 88: Line 59:
*[[rock opera]]
*[[rock opera]]
*[[technology]]
*[[technology]]
&lt;/autocolumn&gt;
</autocolumn>
&lt;/table&gt;</pre>
</table></pre>
{| class="wikitable" width="80%"
 
{| class="wikitable"
|-
|-
| width="33%" valign="top"| * '''Debut:''' [[some kinda robot]]
|  
* [[i she be]]
|  
* [[guitar]]
|  
* [[island]]
 
| width="33%" valign="top"| * [[japanese cartoon]]
* [[personal favorites]]
* [[different town]]
 
| width="33%" valign="top"| * [[radio]]
* [[rock opera]]
* [[technology]]
 
|}
|}


<span id="gallery"></span>
== Gallery ==
== <span class="mw-headline">Gallery</span> ==


View the source code to see how each table was made. You can also experiment in the [[HRWiki:Sandbox|sandbox]].
View the source code to see how each table was made. You can also experiment in the [[HRWiki:Sandbox|sandbox]].


<span id="sample-1"></span>
=== Sample 1 ===
=== <span class="mw-headline">Sample 1</span> ===


Selected Toons
{| class="wikitable"
 
|-
* [[20X6 vs. 1936]]
! colspan="5" style="background:#DDD" | Selected Toons
* [[500 The Cheats]]
|-
* [[A Folky Tale]]
|
* [[A Jorb Well Done]]
|
* [[Arcade Game]]
|
* [[Ballad of The Sneak]]
|
* [[Bug In Mouth Disease]]
|
* [[Cheat Commandos]]
|}
 
* [[Cheat Commandos...O's]]
* [[Commandos in the Classroom]]
* [[Cool Things]]
* [[Experimental Film]]
* [[Fluffy Puff Commercial]]
* [[In Search of the Yello Dello]]
* [[Kick the Can]]
* [[Lookin at a Thing in a Bag]]
 
* [[Meet Marshie]]
* [[Mr. Shmallow]]
* [[Parsnips A-Plenty]]
* [[Peasant's Quest Movie Trailer]]
* [[Peasant's Quest Preview]]
* [[Senor Mortgage]]
* [[Shopping For Danger]]
 
* [[Sick Day]]
* [[Strong Bad is a Bad Guy]]
* [[Strong Bad is in Jail Cartoon]]
* [[Strong Bad Sings]]
* [[The Cheatar]]
* [[The Interview]]
* [[The King of Town DVD]]
 
* [[The Li'l Brudder Show]]
* [[The Luau]]
* [[The Reddest Radish]]
* [[The System is Down]]
* [[Theme Song Video]]
* [[Trogdor Con '97]]
* [[Where's The Cheat?]]


<br />
<br />


<span id="sample-2"></span>
=== Sample 2 ===
=== <span class="mw-headline">Sample 2</span> ===


{| class="wikitable" style="background:gold; border:3px double black" cellspacing="5"
{| class="wikitable"
|-
|-
| valign="bottom" style="text-align: center; background: lightyellow; border: 1px solid black; padding: 0.5em;"| Before<br />
| style="background:lightyellow; border:1px solid black; padding:0.5em" | Before<br />
I<br />
I<br />
drink<br />
drink<br />
Line 172: Line 98:
tall<br />
tall<br />
glass<br />
glass<br />
 
| style="background:lightyellow; border:1px solid black; padding:0.5em" | of<br />
| valign="bottom" style="text-align: center; background: lightyellow; border: 1px solid black; padding: 0.5em;"| of<br />
melonade<br />
melonade<br />
I<br />
I<br />
Line 179: Line 104:
to<br />
to<br />
eat<br />
eat<br />
 
| style="background:lightyellow; border:1px solid black; padding:0.5em" | about<br />
| valign="bottom" style="text-align: center; background: lightyellow; border: 1px solid black; padding: 0.5em;"| about<br />
147<br />
147<br />
Fluffy<br />
Fluffy<br />
Puff<br />
Puff<br />
Marshmallows<br />
Marshmallows<br />
 
| style="background:lightyellow; border:1px solid black; padding:0.5em" | Seriously<br />
| valign="bottom" style="text-align: center; background: lightyellow; border: 1px solid black; padding: 0.5em;"| Seriously<br />
folks<br />
folks<br />
they're<br />
they're<br />
the<br />
the<br />
best
best
|-
|-
| valign="top" style="text-align: center; background: #EEF; border: 1px solid black; padding: 0.5em;"| You<br />
| style="background:#EEF; border:1px solid black; padding:0.5em" | You<br />
heard<br />
heard<br />
 
| style="background:#EEF; border:1px solid black; padding:0.5em" | it<br />
| valign="top" style="text-align: center; background: #EEF; border: 1px solid black; padding: 0.5em;"| it<br />
folks<br />
folks<br />
 
| style="background:#EEF; border:1px solid black; padding:0.5em" | Homestar<br />
| valign="top" style="text-align: center; background: #EEF; border: 1px solid black; padding: 0.5em;"| Homestar<br />
likes<br />
likes<br />
 
| style="background:#EEF; border:1px solid black; padding:0.5em" | marshmallows
| valign="top" style="text-align: center; background: #EEF; border: 1px solid black; padding: 0.5em;"| marshmallows
 
|}
|}


<br />
<br />


<span id="sample-3"></span>
=== Sample 3 ===
=== <span class="mw-headline">Sample 3</span> ===


{| class="wikitable"
{| class="wikitable"
|-
|-
| width="200" valign="top"| # [[User:AbdiViklas|AbdiViklas]]
|  
# [[User:Alcnolien|Alcnolien]]
|  
# [[User:Bad Graphics Ghost|Bad Graphics Ghost]]
|  
# [[User:BazookaJoe|BazookaJoe]]
# [[User:Bill|Bill]]
# [[User:Bluebry muffin|Bluebry muffin]]
# [[User:Chmera|Chmera]]
# [[User:Csours|Csours]]
# [[User:DBK|Dantheburgerking]]
# [[User:Darthvader66|Darthvader66]]
# [[User:DorianGray|DorianGray]]
# [[User:Double J|Double J]]
# [[User:FireBird|FireBird]]
# [[User:Frickinsellout|Frickinsellout]]
# [[User:GWR 2004|GWR 2004]]
 
| width="200" valign="top"| <ol start="16">
<li>[[User:Has Matt?|Has Matt?]]</li>
<li>[[User:Heimstern Läufer|Heimstern Läufer]]</li>
<li>[[User:It's dot com|It's dot com]]</li>
<li>[[User:ItalianBallerina|ItalianBallerina]]</li>
<li>[[User:Jay|Jay]]</li>
<li>[[User:Jetamoo|Jetamoo]]</li>
<li>[[User:Joshua|Joshua]]</li>
<li>[[User:KieferSkunk|KieferSkunk]]</li>
<li>[[User:Kilroy|Kilroy]]</li>
<li>[[User:Lapper|Lapper]]</li>
<li>[[User:LePorello|LePorello]]</li>
<li>[[User:Mycroft.holmes|Mycroft Holmes]]</li>
<li>[[User:NFITC1|NFITC1]]</li>
<li>[[User:Nintendostar Runner|Nintendostar Runner]]</li>
<li>[[User:Octan|Octan]]</li></ol>
 
| width="200" valign="top"| <ol start="31">
<li>[[User:Qermaq|Qermaq]]</li>
<li>[[User:Rogue Leader|Rogue Leader]]</li>
<li>[[User:Sam Goldfish|Sam Goldfish]]</li>
<li>[[User:Seriously|Seriously]]</li>
<li>[[User:Shadow Hog|Shadow Hog]]</li>
<li>[[User:Spell4yr|Spell4yr]]</li>
<li>[[User:Teh Frossty One|Teh Frossty One]]</li>
<li>[[User:Thunderbird L17|Thunderbird L17]]</li>
<li>[[User:Trelawney|Trelawney]]</li>
<li>[[User:Trey56|Trey56]]</li>
<li>[[User:Venusy|Venusy]]</li>
<li>[[User:Xeroc|Xeroc]]</li>
<li>[[User:YK|YK]]</li>
<li>[[User:Yourmomgoestocollege|Yourmomgoestocollege]]</li></ol>
 
|}
|}
 
[[Category:Help]]
<div id="catlinks" class="catlinks">
 
<div id="mw-normal-catlinks">
 
[/wiki/Special:Categories Category]: <span dir="ltr">[[Category:Help|Help]]</span>
 
</div>
 
</div>



Latest revision as of 14:24, 14 July 2026

Description: An extension to easily create tables whose columns have equal lengths (or nearly so), especially for tables that are updated often.

Filename: exfAutoColumn.php

Written by: It's dot com ©2006

Please put any bugs or feature requests on the talk page.

Format

<table [parameters]>

<autocolumn [parameters]>

[single list of content to be automatically divided]

</autocolumn>
</table>

Parameters

The parameters in the

tag 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 – "top" is the default value class style You cannot have fewer than 2 columns (unless there is only 1 item in the list), nor can you have more columns than total items in the list. The function removes all extra white space between the tags and then formats each column according to standard wiki markup rules.

Known limitations

  • Automatic text replacement (for example, when signing using tildes (~~~~)) is not supported. This feature will be included when we upgrade to MediaWiki 1.6.

Variations

  • You can use wiki table markup ( {| ... |} ) instead of HTML (see gallery sample 1).
  • You can have a header row (see gallery sample 1).
  • You can stack <autocolumn> rows within the same table (see gallery sample 2).
  • If the entire list is an ordered list (each line begins with a # and has no subitems), it will be correctly numbered across the columns (see gallery sample 3).

Example

<table width="80%">
<autocolumn cols="3" width="33%">
*'''Debut:''' [[some kinda robot]]
*[[i she be]]
*[[guitar]]
*[[island]]
*[[japanese cartoon]]
*[[personal favorites]]
*[[different town]]
*[[radio]]
*[[rock opera]]
*[[technology]]
</autocolumn>
</table>

View the source code to see how each table was made. You can also experiment in the sandbox.

Sample 1

Selected Toons


Sample 2

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


Sample 3