<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AColevel%2Fdoc</id>
	<title>Template:Colevel/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AColevel%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Colevel/doc&amp;action=history"/>
	<updated>2026-04-23T22:28:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.5</generator>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:Colevel/doc&amp;diff=5489&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Colevel/doc&amp;diff=5489&amp;oldid=prev"/>
		<updated>2014-03-27T06:48:54Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 06:48, 27 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:Colevel/doc&amp;diff=5488&amp;oldid=prev</id>
		<title>Mors Principium Est at 07:17, 27 May 2013</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Colevel/doc&amp;diff=5488&amp;oldid=prev"/>
		<updated>2013-05-27T07:17:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
==Function==&lt;br /&gt;
===Purpose===&lt;br /&gt;
{{[[Template:Colevel|colevel]]}} is a set of templates which allow a list of single items or a list of coupled items to be displayed in one or more columns and be automatically column depth balanced.&lt;br /&gt;
&lt;br /&gt;
The templates are not designed to be called directly from an article, but are designed to be incorporated into other templates which are presenting tables of many items.&lt;br /&gt;
&lt;br /&gt;
There are six entry point templates:&lt;br /&gt;
*{{[[Template:colevel/item set|colevel/item set]]}}&lt;br /&gt;
:Item set produces a row for a table consisting of one or more &amp;quot;columns&amp;quot; of items or coupled items.  It must always be enclosed within a table declaration.&lt;br /&gt;
:This is used or linked to by [[Special:WhatLinksHere/Template:Colevel/item set|pages]]&lt;br /&gt;
*{{[[Template:colevel/headings|colevel/headings]]}}&lt;br /&gt;
:Headings places a set of headings above the &amp;quot;columns&amp;quot; produced by item set.  It must always be enclosed within a table declaration, the same table as item set.&lt;br /&gt;
:This is used or linked to by [[Special:WhatLinksHere/Template:Colevel/headings|pages]]&lt;br /&gt;
*{{[[Template:colevel/find first|colevel/find first]]}}&lt;br /&gt;
:Find first returns the positional number of the first instantiated item in an optionally populated list of items.  If there are no items it returns 51.&lt;br /&gt;
:This is used or linked to by [[Special:WhatLinksHere/Template:Colevel/find first|pages]]&lt;br /&gt;
*{{[[Template:colevel/find last|colevel/find last]]}}&lt;br /&gt;
:Find last returns the positional number of the last set item in an optionally populated list of items.  If there are no items it returns 0.&lt;br /&gt;
:This is used or linked to by [[Special:WhatLinksHere/Template:Colevel/find last|pages]]&lt;br /&gt;
*{{[[Template:colevel/count params|colevel/count params]]}}&lt;br /&gt;
:Count params returns the number of the set parameters in an optionally populated list of items.&lt;br /&gt;
:This is used or linked to by [[Special:WhatLinksHere/Template:Colevel/count params|pages]]&lt;br /&gt;
*{{[[Template:colevel/count items|colevel/count items]]}}&lt;br /&gt;
:Count items returns the number of set items in an optionally populated list of items, between and including a start item and an end item.&lt;br /&gt;
:This is used or linked to by [[Special:WhatLinksHere/Template:Colevel/count items|pages]]&lt;br /&gt;
&lt;br /&gt;
See templates {{[[Template:Event list|event list]]}}, {{[[Template:Overlay|overlay]]}}, and {{[[Template:Balanced columns list|Balanced columns list]]}} for typical applications.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
Often articles have tables of many items spread over multiple columns, and an editor has spent a non trivial amount of time getting the columns balanced and the table looking good.&lt;br /&gt;
&lt;br /&gt;
One more item or several items are then required to be inserted in to the table, requiring the editing of the whole table to move items around and across and down columns.  Or, the number of columns in the table needs to be changed to either allow it to better fit into the article or as more and more values are added.  Not all editors are as good at editing tables as others and mistakes are made, or the potential content editor is put off altogether, or editors avoid constructing the table in the first place because it will be difficult to maintain.&lt;br /&gt;
&lt;br /&gt;
These templates allow other templates which generate tables to be constructed to allow the table to be kept in the article as a simple list of items, allowing editors to be concerned only with content and article layout, and not with either table syntax or laborious table reconfiguration as the article grows.&lt;br /&gt;
&lt;br /&gt;
===Limitations===&lt;br /&gt;
====Number of items====&lt;br /&gt;
The maximum number of single items or number of coupled items is 50, that is for coupled items a total of 100 items.&lt;br /&gt;
&lt;br /&gt;
====Column balancing====&lt;br /&gt;
Column balancing does not allow for inconsistent text wrap of items, and text wrap can disturb column depth balancing.  &lt;br /&gt;
&lt;br /&gt;
If there is an equivalent number of text wrap new lines in each column then the columns will remain balanced.&lt;br /&gt;
&lt;br /&gt;
====Missing items====&lt;br /&gt;
Items missing from within the list of items are treated as items and a blank position will be displayed in the column where the missing item would otherwise appear.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
The main entry point template is &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;'''colevel/item set'''&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Item set===&lt;br /&gt;
====Skeleton====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 =    |beta1 = &lt;br /&gt;
(...up to 50...)&lt;br /&gt;
|firstitem  =&lt;br /&gt;
|lastitem   = &lt;br /&gt;
|columns    = &lt;br /&gt;
|alphawidth = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Item set uses named parameters:&lt;br /&gt;
*alpha1, optional, text for an item, or for the first item of two coupled items, in a list of up to 50 items, optionally linked text&lt;br /&gt;
*beta1, optional, text for the second item of two coupled items, optionally linked text&lt;br /&gt;
*firstitem, mandatory, the positional number of the first item to be displayed from the list, number from 1 to 50&lt;br /&gt;
*lastitem, mandatory, the positional number of the last item to be displayed from the list, number from 1 to 50&lt;br /&gt;
*columns, mandatory, the number of columns to be displayed, number from 1&lt;br /&gt;
*alphawidth, mandatory, the percentage width for the first item of two coupled items.  If 100 then only the first item in the couple is displayed.  If 0 then only the second item in the couple is displayed, number from 0 to 100&lt;br /&gt;
&lt;br /&gt;
===Headings===&lt;br /&gt;
====Skeleton====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/headings&lt;br /&gt;
|alphaheading = &lt;br /&gt;
|betaheading  = &lt;br /&gt;
|columns      = &lt;br /&gt;
|alphawidth   = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Headings uses named parameters:&lt;br /&gt;
*alphaheading, optional, text for the heading above the first item of two coupled items, optionally linked text&lt;br /&gt;
*betaheading, optional, text for the heading above the second item of two coupled items, optionally linked text&lt;br /&gt;
*columns, mandatory, the number of columns to be displayed, number from 1&lt;br /&gt;
*alphawidth, mandatory, the percentage width for the alpha heading.  If 100 then only the alphaheadin is displayed.  If 0 then only the betaheading is displayed, number from 0 to 100.&lt;br /&gt;
&lt;br /&gt;
===Find first===&lt;br /&gt;
====Skeleton====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find first&lt;br /&gt;
|item1&lt;br /&gt;
(...up to 50...)&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Find first uses positional parameters:&lt;br /&gt;
*1, optional, an item in a list, up to 50, any content&lt;br /&gt;
&lt;br /&gt;
===Find last===&lt;br /&gt;
====Skeleton====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find last&lt;br /&gt;
|item1&lt;br /&gt;
(...up to 50...)&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Find last uses positional parameters:&lt;br /&gt;
*1, optional, an item in a list, up to 50, any content&lt;br /&gt;
&lt;br /&gt;
===Count params===&lt;br /&gt;
====Skeleton====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count params&lt;br /&gt;
|item1&lt;br /&gt;
(...up to 50...)&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Count params uses positional parameters:&lt;br /&gt;
*1, optional, an item in a list, up to 50, any content&lt;br /&gt;
&lt;br /&gt;
===Count items===&lt;br /&gt;
====Skeleton====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count items&lt;br /&gt;
|item1&lt;br /&gt;
(...up to 50...)&lt;br /&gt;
|firstitem = &lt;br /&gt;
|lastitem  = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Count item uses positional parameters and named parameters:&lt;br /&gt;
*1, optional, an item in a list, up to 50, any content&lt;br /&gt;
*firstitem, mandatory, items with a position before firstitem are ignored, number&lt;br /&gt;
*lastitem, mandatory, items with a position after lastitem are ignored, number&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Headings===&lt;br /&gt;
====Headings for four columns====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/headings&lt;br /&gt;
|alphaheading = [[Letter (alphabet)|Letter]]s&lt;br /&gt;
|betaheading  = [[Word]]s&lt;br /&gt;
|columns      = 4&lt;br /&gt;
|alphawidth   = 25&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/headings&lt;br /&gt;
|alphaheading = [[Letter (alphabet)|Letter]]s&lt;br /&gt;
|betaheading  = [[Word]]s&lt;br /&gt;
|columns      = 4&lt;br /&gt;
|alphawidth   = 25&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
===Item set===&lt;br /&gt;
====Ten items in four columns====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 = A  |beta1 = One. Numero uno prima.&lt;br /&gt;
|alpha2 = BB  |beta2 = Two. Seconda mondo.&lt;br /&gt;
|alpha3 = CC C  |beta3 = Three. Triplet gamma.&lt;br /&gt;
|alpha4 = D DDD  |beta4 = Four. Quinella equina.&lt;br /&gt;
|alpha5 = EE EE E  |beta5 = Five. Cinque torri.&lt;br /&gt;
|alpha6 = FFF FFF  |beta6 = Six. Sex before zeben.&lt;br /&gt;
|alpha7 = GG GG GG G  |beta7 = Seven. Heptagonaloid.&lt;br /&gt;
|alpha8 = HHHH HHHH  |beta8 = Eight. Octapussy bond.&lt;br /&gt;
|alpha9 = III III III  |beta9 = Nine. El nina deci.&lt;br /&gt;
|alpha10 = J JJ JJJ JJJJ |beta10 = Ten. Decimal dextra.&lt;br /&gt;
|firstitem = 1&lt;br /&gt;
|lastitem  = 10&lt;br /&gt;
|columns   = 4&lt;br /&gt;
|alphawidth = 25&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 = A  |beta1 = One. Numero uno prima.&lt;br /&gt;
|alpha2 = BB  |beta2 = Two. Seconda mondo.&lt;br /&gt;
|alpha3 = CC C  |beta3 = Three. Triplet gamma.&lt;br /&gt;
|alpha4 = D DDD  |beta4 = Four. Quinella equina.&lt;br /&gt;
|alpha5 = EE EE E  |beta5 = Five. Cinque torri.&lt;br /&gt;
|alpha6 = FFF FFF  |beta6 = Six. Sex before zeben.&lt;br /&gt;
|alpha7 = GG GG GG G  |beta7 = Seven. Heptagonaloid.&lt;br /&gt;
|alpha8 = HHHH HHHH  |beta8 = Eight. Octapussy bond.&lt;br /&gt;
|alpha9 = III III III  |beta9 = Nine. El nina deci.&lt;br /&gt;
|alpha10 = J JJ JJJ JJJJ |beta10 = Ten. Decimal dextra.&lt;br /&gt;
|firstitem = 1&lt;br /&gt;
|lastitem  = 10&lt;br /&gt;
|columns   = 4&lt;br /&gt;
|alphawidth = 25&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Combined headings and item set====&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/headings&lt;br /&gt;
|alphaheading = [[Letter (alphabet)|Letter]]s&lt;br /&gt;
|betaheading  = [[Word]]s&lt;br /&gt;
|columns      = 4&lt;br /&gt;
|alphawidth   = 25&lt;br /&gt;
}}&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 = A  |beta1 = One. Numero uno prima.&lt;br /&gt;
|alpha2 = BB  |beta2 = Two. Seconda mondo.&lt;br /&gt;
|alpha3 = CC C  |beta3 = Three. Triplet gamma.&lt;br /&gt;
|alpha4 = D DDD  |beta4 = Four. Quinella equina.&lt;br /&gt;
|alpha5 = EE EE E  |beta5 = Five. Cinque torri.&lt;br /&gt;
|alpha6 = FFF FFF  |beta6 = Six. Sex before zeben.&lt;br /&gt;
|alpha7 = GG GG GG G  |beta7 = Seven. Heptagonaloid.&lt;br /&gt;
|alpha8 = HHHH HHHH  |beta8 = Eight. Octapussy bond.&lt;br /&gt;
|alpha9 = III III III  |beta9 = Nine. El nina deci.&lt;br /&gt;
|alpha10 = J JJ JJJ JJJJ |beta10 = Ten. Decimal dextra.&lt;br /&gt;
|firstitem = 1&lt;br /&gt;
|lastitem  = 10&lt;br /&gt;
|columns   = 4&lt;br /&gt;
|alphawidth = 25&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Nine items in six columns====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 = A  |beta1 = One. Numero uno prima.&lt;br /&gt;
|alpha2 = B  |beta2 = Two. Seconda mondo.&lt;br /&gt;
|alpha3 = C  |beta3 = Three. Triplet gamma.&lt;br /&gt;
|alpha4 = D  |beta4 = Four. Quinella equina.&lt;br /&gt;
|alpha5 = E  |beta5 = Five. Cinque torri.&lt;br /&gt;
|alpha6 = F  |beta6 = Six. Sex before zeben.&lt;br /&gt;
|alpha7 = G  |beta7 = Seven. Heptagonaloid.&lt;br /&gt;
|alpha8 = H  |beta8 = Eight. Octapussy bond.&lt;br /&gt;
|alpha9 = I  |beta9 = Nine. El nina deci.&lt;br /&gt;
|alpha10 = J |beta10 = Ten. Decimal dextra.&lt;br /&gt;
|firstitem = 1&lt;br /&gt;
|lastitem  = 9&lt;br /&gt;
|columns   = 6&lt;br /&gt;
|alphawidth = 15&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 = A  |beta1 = One. Numero uno prima.&lt;br /&gt;
|alpha2 = B  |beta2 = Two. Seconda mondo.&lt;br /&gt;
|alpha3 = C  |beta3 = Three. Triplet gamma.&lt;br /&gt;
|alpha4 = D  |beta4 = Four. Quinella equina.&lt;br /&gt;
|alpha5 = E  |beta5 = Five. Cinque torri.&lt;br /&gt;
|alpha6 = F  |beta6 = Six. Sex before zeben.&lt;br /&gt;
|alpha7 = G  |beta7 = Seven. Heptagonaloid.&lt;br /&gt;
|alpha8 = H  |beta8 = Eight. Octapussy bond.&lt;br /&gt;
|alpha9 = I  |beta9 = Nine. El nina deci.&lt;br /&gt;
|alpha10 = J |beta10 = Ten. Decimal dextra.&lt;br /&gt;
|firstitem = 1&lt;br /&gt;
|lastitem  = 9&lt;br /&gt;
|columns   = 6&lt;br /&gt;
|alphawidth = 15&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Seven items in three columns====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 = A A A  |beta1 = One. Numero uno prima.&lt;br /&gt;
|alpha2 = B B B  |beta2 = Two. Seconda mondo.&lt;br /&gt;
|alpha3 = C C C  |beta3 = Three. Triplet gamma.&lt;br /&gt;
|alpha4 = D D D  |beta4 = Four. Quinella equina.&lt;br /&gt;
|alpha5 = E E E  |beta5 = Five. Cinque torri.&lt;br /&gt;
|alpha6 = F F F  |beta6 = Six. Sex before zeben.&lt;br /&gt;
|alpha7 = G G G  |beta7 = Seven. Heptagonaloid.&lt;br /&gt;
|alpha8 = H H H  |beta8 = Eight. Octapussy bond.&lt;br /&gt;
|alpha9 = I I I  |beta9 = Nine. El nina deci.&lt;br /&gt;
|alpha10 = J J J |beta10 = Ten. Decimal dextra.&lt;br /&gt;
|firstitem = 2&lt;br /&gt;
|lastitem  = 8&lt;br /&gt;
|columns   = 3&lt;br /&gt;
|alphawidth = 5&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|alpha1 = A A A  |beta1 = One. Numero uno prima.&lt;br /&gt;
|alpha2 = B B B  |beta2 = Two. Seconda mondo.&lt;br /&gt;
|alpha3 = C C C  |beta3 = Three. Triplet gamma.&lt;br /&gt;
|alpha4 = D D D  |beta4 = Four. Quinella equina.&lt;br /&gt;
|alpha5 = E E E  |beta5 = Five. Cinque torri.&lt;br /&gt;
|alpha6 = F F F  |beta6 = Six. Sex before zeben.&lt;br /&gt;
|alpha7 = G G G  |beta7 = Seven. Heptagonaloid.&lt;br /&gt;
|alpha8 = H H H  |beta8 = Eight. Octapussy bond.&lt;br /&gt;
|alpha9 = I I I  |beta9 = Nine. El nina deci.&lt;br /&gt;
|alpha10 = J J J |beta10 = Ten. Decimal dextra.&lt;br /&gt;
|firstitem = 2&lt;br /&gt;
|lastitem  = 8&lt;br /&gt;
|columns   = 3&lt;br /&gt;
|alphawidth = 5&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
====Full item set test - 50 items in 6 columns====&lt;br /&gt;
{|&lt;br /&gt;
{{colevel/item set&lt;br /&gt;
|firstitem = 1&lt;br /&gt;
|lastitem = 50&lt;br /&gt;
|columns = 6&lt;br /&gt;
|alphawidth = 20&lt;br /&gt;
|alpha1 = 1   |beta1 = One&lt;br /&gt;
|alpha2 = 2   |beta2 = Two&lt;br /&gt;
|alpha3 = 3   |beta3 = Three&lt;br /&gt;
|alpha4 = 4   |beta4 = Four&lt;br /&gt;
|alpha5 = 5   |beta5 = Five&lt;br /&gt;
|alpha6 = 6   |beta6 = Six&lt;br /&gt;
|alpha7 = 7   |beta7 = Seven&lt;br /&gt;
|alpha8 = 8   |beta8 = Eight&lt;br /&gt;
|alpha9 = 9   |beta9 = Nine&lt;br /&gt;
|alpha10 = 10 |beta10 = 10&lt;br /&gt;
|alpha11 = 11 |beta11 = 11&lt;br /&gt;
|alpha12 = 12 |beta12 = 12&lt;br /&gt;
|alpha13 = 13 |beta13 = 13&lt;br /&gt;
|alpha14 = 14 |beta14 = 14&lt;br /&gt;
|alpha15 = 15 |beta15 = 15&lt;br /&gt;
|alpha16 = 16 |beta16 = 16&lt;br /&gt;
|alpha17 = 17 |beta17 = 17&lt;br /&gt;
|alpha18 = 18 |beta18 = 18&lt;br /&gt;
|alpha19 = 19 |beta19 = 19&lt;br /&gt;
|alpha20 = 20 |beta20 = 20&lt;br /&gt;
|alpha21 = 21 |beta21 = 21&lt;br /&gt;
|alpha22 = 22 |beta22 = 22&lt;br /&gt;
|alpha23 = 23 |beta23 = 23&lt;br /&gt;
|alpha24 = 24 |beta24 = 24&lt;br /&gt;
|alpha25 = 25 |beta25 = 25&lt;br /&gt;
|alpha26 = 26 |beta26 = 26&lt;br /&gt;
|alpha27 = 27 |beta27 = 27&lt;br /&gt;
|alpha28 = 28 |beta28 = 28&lt;br /&gt;
|alpha29 = 29 |beta29 = 29&lt;br /&gt;
|alpha30 = 30 |beta30 = 30&lt;br /&gt;
|alpha31 = 31 |beta31 = 31&lt;br /&gt;
|alpha32 = 32 |beta32 = 32&lt;br /&gt;
|alpha33 = 33 |beta33 = 33&lt;br /&gt;
|alpha34 = 34 |beta34 = 34&lt;br /&gt;
|alpha35 = 35 |beta35 = 35&lt;br /&gt;
|alpha36 = 36 |beta36 = 36&lt;br /&gt;
|alpha37 = 37 |beta37 = 37&lt;br /&gt;
|alpha38 = 38 |beta38 = 38&lt;br /&gt;
|alpha39 = 39 |beta39 = 39&lt;br /&gt;
|alpha40 = 40 |beta40 = 40&lt;br /&gt;
|alpha41 = 41 |beta41 = 41&lt;br /&gt;
|alpha42 = 42 |beta42 = 42&lt;br /&gt;
|alpha43 = 43 |beta43 = 43&lt;br /&gt;
|alpha44 = 44 |beta44 = 44&lt;br /&gt;
|alpha45 = 45 |beta45 = 45&lt;br /&gt;
|alpha46 = 46 |beta46 = 46&lt;br /&gt;
|alpha47 = 47 |beta47 = 47&lt;br /&gt;
|alpha48 = 48 |beta48 = 48&lt;br /&gt;
|alpha49 = 49 |beta49 = 49&lt;br /&gt;
|alpha50 = 50 |beta50 = 50&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Find first===&lt;br /&gt;
&lt;br /&gt;
====Full list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find first |A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
First item is: {{colevel/find first |A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&lt;br /&gt;
====List with gaps====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find first ||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
First item is: {{colevel/find first ||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&lt;br /&gt;
====Empty list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find first ||||||||||}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
First item is: {{colevel/find first ||||||||||}}&lt;br /&gt;
&lt;br /&gt;
===Find last===&lt;br /&gt;
&lt;br /&gt;
====Full list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find last |A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Last item is: {{colevel/find last |A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&lt;br /&gt;
====List with gaps====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find last ||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Last item is: {{colevel/find last ||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&lt;br /&gt;
====Empty list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/find last ||||||||||}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Last item is: {{colevel/find last ||||||||||}}&lt;br /&gt;
&lt;br /&gt;
===Count items===&lt;br /&gt;
&lt;br /&gt;
====Full list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count items |firstitem = 3|lastitem = 7|A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Item count is: {{colevel/count items |firstitem = 3|lastitem = 7|A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&lt;br /&gt;
====List with gaps====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count items |firstitem = 3|lastitem = 7||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Item count is: {{colevel/count items |firstitem = 3|lastitem = 7||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&lt;br /&gt;
====Empty list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count items |firstitem = 3|lastitem = 7 ||||||||||}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Item count is: {{colevel/count items |firstitem = 3|lastitem = 7||||||||||}}&lt;br /&gt;
&lt;br /&gt;
===Count parameters===&lt;br /&gt;
&lt;br /&gt;
====Full list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count params |A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Paameter count is: {{colevel/count params |firstitem = 3|lastitem = 7|A|BB|CCC|DDDD|E E E E E|f f f f|g g g|h h|i|JjJjJjJj}}&lt;br /&gt;
&lt;br /&gt;
====List with gaps====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count params ||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Parameter count is: {{colevel/count params ||BB|CCC|DDDD||f f f f|g g g|h h|i|}}&lt;br /&gt;
&lt;br /&gt;
====Empty list====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{colevel/count params ||||||||||}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Parameter count is: {{colevel/count params ||||||||||}}&lt;br /&gt;
&lt;br /&gt;
==Notes for template editors==&lt;br /&gt;
A &amp;quot;column&amp;quot; in the row produced by the template &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;'''colevel/item set'''&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt; is actually a group of items or coupled items with each item placed on a new line.&lt;br /&gt;
&lt;br /&gt;
===Algorithm===&lt;br /&gt;
The algorithms for this set of templates are:&lt;br /&gt;
&lt;br /&gt;
====Item set====&lt;br /&gt;
The main challenge to be overcome to achieve depth blanced columns is that HTML tables and hence Wiki tables are &amp;quot;row major&amp;quot;, that is rows are defined, not columns; the table is constructed row by row.  Cells in rows are then aligned to make cells look like they are in columns.&lt;br /&gt;
&lt;br /&gt;
This alogorithm emulates a rudimentrary &amp;quot;column major&amp;quot; table column by column and balances the depth of the columns so that no column is more than one item shorter than any other column, that is when there is a short fall of more than one item, instead of the last column being shorter than all other columns, the shortfall is evened out over multiple columns.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;column&amp;quot; is a cell in a row with items separated by line breaks to emulate a column.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
numberofitems := lastitem - firstitem + 1&lt;br /&gt;
rows := 1 + (numberofitems - 1 ) intdiv columns&lt;br /&gt;
fullcolumns := if numberofitems mod columns = 0&lt;br /&gt;
               then columns&lt;br /&gt;
               else numberofitems mod columns&lt;br /&gt;
itemsinfullcolumns := fullcolumns x rows&lt;br /&gt;
start a row of columns&lt;br /&gt;
for item := firstitem to lastitem&lt;br /&gt;
    eachitem := item - firstitem + 1&lt;br /&gt;
    if eachitem &amp;lt;= itemsinfullcolumns&lt;br /&gt;
    then if rows == 1&lt;br /&gt;
         then start column&lt;br /&gt;
              display list(item)&lt;br /&gt;
         else itemmodrows := eachitem mod rows&lt;br /&gt;
              if itemmodrows == 1&lt;br /&gt;
              then start column&lt;br /&gt;
                   display list(item)&lt;br /&gt;
                   continue column&lt;br /&gt;
              else display list(item)&lt;br /&gt;
                   if itemmodrows != 0&lt;br /&gt;
                   then continue column&lt;br /&gt;
    else if (rows - 1) == 1&lt;br /&gt;
         then start column&lt;br /&gt;
              display list(item)&lt;br /&gt;
         else itemmodrows := (eachitem - itemsinfullcolumns) mod (rows - 1)&lt;br /&gt;
              if itemmodrows == 1&lt;br /&gt;
              then start column&lt;br /&gt;
                   display list(item)&lt;br /&gt;
                   continue column&lt;br /&gt;
              else display list(item)&lt;br /&gt;
                   if itemmodrows != 0&lt;br /&gt;
                   then continue column&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=====Other templates within colevel=====&lt;br /&gt;
'''{{[[Template:Colevel/all items|colevel/all items]]}}'''&lt;br /&gt;
&lt;br /&gt;
'''{{[[Template:Colevel/each item|colevel/each item]]}}'''&lt;br /&gt;
&lt;br /&gt;
'''{{[[Template:Colevel/process item|colevel/process item]]}}:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if rows == 1&lt;br /&gt;
then start column&lt;br /&gt;
     display item&lt;br /&gt;
else if itemmodrows == 1&lt;br /&gt;
     then start column&lt;br /&gt;
          display item&lt;br /&gt;
          continue column&lt;br /&gt;
     else display item&lt;br /&gt;
          if itemmodrows != 0&lt;br /&gt;
          then continue column&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''{{[[Template:Colevel/start column|colevel/start column]]}}'''&lt;br /&gt;
&lt;br /&gt;
'''{{[[Template:Colevel/display item|colevel/display item]]}}'''&lt;br /&gt;
&lt;br /&gt;
====Find first====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
item := 1&lt;br /&gt;
while item &amp;lt;= maxitem and list(item) is empty&lt;br /&gt;
      item := item + 1&lt;br /&gt;
firstitem := item&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Find last====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
lastitem := maxitem + 1 - firstitem( reverse( list ) )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Structure===&lt;br /&gt;
Two key factors have influenced the way the algorithms have been structured into templates:&lt;br /&gt;
#There is no looping or recursion available.  This has required a loop to be simulated by expressing each iteration of the loop as a separate but incremented instantantion of the loop control and content.&lt;br /&gt;
#To reduce server load a bit, calculated values which are required multiple times within a template (module) (and some module as are called for evey item) and would otherwise be calculated there once and stored as a working variable, are calculated once by a template calling the template and passed as a parameter.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The algorithms are structured as follows:&lt;br /&gt;
====Item set====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Find first====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Find last====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===To increase number of items===&lt;br /&gt;
The current maximum number of items is 50.&lt;br /&gt;
&lt;br /&gt;
To increase the maximum number of items from 50 to MaxItem the following need to be done:&lt;br /&gt;
*Template:Colevel/item set&lt;br /&gt;
:Update the last item check from 51 to MaxItem + 1.&lt;br /&gt;
:Add parameter passing from 51 to MaxItem.&lt;br /&gt;
*Template:Colevel/all items&lt;br /&gt;
:Add loop instantiations for each value from 51 to MaxItem.&lt;br /&gt;
*Template:Colevel/find first&lt;br /&gt;
:Add loop instantiations for each value from 51 to MaxItem.&lt;br /&gt;
:Update 51 to MaxItem + 1.&lt;br /&gt;
*Template:Colevel/find last&lt;br /&gt;
:Update 51 to Maxitem + 1.&lt;br /&gt;
:Add parameter passing from 51 to MaxItem.&lt;br /&gt;
*Update this documentation wherever 50 or 51 appears to be MaxItem and MaxItem + 1 respectively.&lt;br /&gt;
&lt;br /&gt;
While '''count items''' and '''count parameters''' are not currently used by '''item set''', they should also be updated if MaxItem is updated:&lt;br /&gt;
*Template:Colevel/count parameters&lt;br /&gt;
:Add loop instantiations for each value from 51 to MaxItem.&lt;br /&gt;
*Template:Colevel/count items&lt;br /&gt;
:Add loop instantiations for each value from 51 to MaxItem.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia list formatting templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mors Principium Est</name></author>
		
	</entry>
</feed>