Difference between revisions of "Template:List"

From Wikispooks
Jump to navigation Jump to search
(Generic list template)
 
(Clarify summary)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Used to display list correctly. Currently supports up to 10 items, but easily extended if need arises.<br/>
+
<noinclude>'''A template for displaying lists correctly.''' Currently supports up to 10 items, but easily extended if need arises.<br/><br/>
<nowiki>{{List|Item1|Item2|Item3...}}</nowiki>
+
Usage:<br/>
</noinclude><includeonly>{{{1|}}}{{#if: {{{3|}}}|, | and |}}{{{2|}}}{{#if: {{{4|}}}|, | and |}}{{{3|}}}{{#if: {{{5|}}}|, | and |}}{{{4|}}}{{#if: {{{6|}}}|, | and |}}{{{5|}}}{{#if: {{{7|}}}|, | and |}}{{{6|}}}{{#if: {{{8|}}}|, | and |}}{{{7|}}}{{#if: {{{9|}}}|, | and |}}{{{8|}}}{{#if: {{{10|}}}|, | and |}}{{{9|}}}{{#if: {{{11|}}}|, | and |}}{{{10|}}}</includeonly>
+
:{{t|<nowiki>{{List|Item1|Item2|Item3...}}</nowiki>}}
 +
</noinclude><includeonly>{{{1|}}}{{#if: {{{3|}}}|,&nbsp; | {{#if: {{{2|}}}|&nbsp;and&nbsp;|}} |}}{{{2|}}}{{#if: {{{4|}}}|,&nbsp; | {{#if: {{{3|}}}|&nbsp;and&nbsp;|}} |}}{{{3|}}}{{#if: {{{5|}}}|,&nbsp; | {{#if: {{{4|}}}|&nbsp;and&nbsp;|}} |}}{{{4|}}}{{#if: {{{6|}}}|,&nbsp; | {{#if: {{{5|}}}|&nbsp;and&nbsp;|}} |}}{{{5|}}}{{#if: {{{7|}}}|,&nbsp; | {{#if: {{{6|}}}|&nbsp;and&nbsp;|}} |}}{{{6|}}}{{#if: {{{8|}}}|,&nbsp; | {{#if: {{{7|}}}|&nbsp;and&nbsp;|}} |}}{{{7|}}}{{#if: {{{9|}}}|,&nbsp; | {{#if: {{{8|}}}|&nbsp;and&nbsp;|}} |}}{{{8|}}}{{#if: {{{10|}}}|,&nbsp; | {{#if: {{{9|}}}|&nbsp;and&nbsp;|}} |}}{{{9|}}}{{#if: {{{11|}}}|,&nbsp; | {{#if: {{{10|}}}|&nbsp;and&nbsp;|}} |}}{{{10|}}}</includeonly>

Latest revision as of 03:44, 2 December 2013

A template for displaying lists correctly. Currently supports up to 10 items, but easily extended if need arises.

Usage:

{{List|Item1|Item2|Item3...}}