Difference between revisions of "Template:ThreeColumnList"

From LAH Wiki
Jump to: navigation, search
Line 7: Line 7:
 
<includeonly>{{{Col3}}}</includeonly><noinclude>Data for Column 3</noinclude>
 
<includeonly>{{{Col3}}}</includeonly><noinclude>Data for Column 3</noinclude>
 
|}
 
|}
<noinclude>
+
<noinclude><!--Between these tags will not appear on the template iteself-->
This is a simple template for creating three column list in instances where lists are extremely long, such as lists of doujins featuring a popular character.  It uses five fields, two of which are optional. Not that these are case sensative.
+
 
 +
This is a simple template for creating three column list in instances where lists are extremely long, such as lists of doujins featuring a popular character.  It uses five fields note that more may be added later), two of which are optional. Note that these are case sensative.
 
:'''width''': Optional.  The width of the table. Can be in pixels (written 100px), or more probably a percent (writen 80%). Wider tables are probably better with this template; otherwise, use the two column list template ([[Template:TwoColumnList]]).
 
:'''width''': Optional.  The width of the table. Can be in pixels (written 100px), or more probably a percent (writen 80%). Wider tables are probably better with this template; otherwise, use the two column list template ([[Template:TwoColumnList]]).
 
:'''align''': Optional, however, it will look best if filled it.  Left or right is best (usually right), but middle is also possible.
 
:'''align''': Optional, however, it will look best if filled it.  Left or right is best (usually right), but middle is also possible.
Line 14: Line 15:
 
:'''Col2''': the data for column 2.
 
:'''Col2''': the data for column 2.
 
:'''Col3''': the data for column 3.
 
:'''Col3''': the data for column 3.
Just about anything can be put into Col1, Col2 and Col3, using normal wiki markups, ect. '''Remember that the <nowiki><BR></nowiki> code will be needed for each line break within columns.''' The code to put into the article is  
+
The code to put into the article is  
 
<pre>{{ThreeColumnList|width=USERVALUE|align=USERVALUE
 
<pre>{{ThreeColumnList|width=USERVALUE|align=USERVALUE
 
|Col1=USERVALUE
 
|Col1=USERVALUE
 
|Col2=USERVALUE
 
|Col2=USERVALUE
 
|Col3=USERVALUE}}</pre>
 
|Col3=USERVALUE}}</pre>
 +
Just about anything can be put into Col1, Col2 and Col3, using normal wiki markups, ect. Note that unless you are using list codes such as * or #, that you will need to use the <nowiki><BR></nowiki> code for each line break within columns.
 +
 +
For example,
 +
<pre>
 +
{{ThreeColumnList|width=90%|align=center
 +
|Col1=*Bullet
 +
*Bullet
 +
|Col2=These will
 +
be on the same line
 +
|Col3=These will <BR>
 +
be on seperate lines}}
 +
</pre>
 +
 +
Will yield
 +
 +
{{ThreeColumnList|width=90%|align=center
 +
|Col1=*Bullet
 +
*Bullet
 +
|Col2=These will be
 +
on the same line
 +
|Col3=These will be <BR>
 +
on seperate lines}}
 
</noinclude>
 
</noinclude>

Revision as of 14:19, 15 July 2007

Personal tools