Difference between revisions of "Template:List"
From Twinsuniverse
J McKalling (Talk | contribs) (Created page with "<includeonly>{{ #ifexpr: ({{#if:{{{1|}}}|1|0}} + {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}} + {{#if:{{{4|}}}|1|0}} + {{#if:{{{5|}}}|1|0}} + {{#if:{{{6|}}}|1|0}} + {{#if:{{{7|...") |
J McKalling (Talk | contribs) m |
||
Line 2: | Line 2: | ||
#ifexpr: ({{#if:{{{1|}}}|1|0}} + {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}} + {{#if:{{{4|}}}|1|0}} + {{#if:{{{5|}}}|1|0}} + {{#if:{{{6|}}}|1|0}} + {{#if:{{{7|}}}|1|0}} + {{#if:{{{8|}}}|1|0}} + {{#if:{{{9|}}}|1|0}} + {{#if:{{{10|}}}|1|0}}) > 1 | #ifexpr: ({{#if:{{{1|}}}|1|0}} + {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}} + {{#if:{{{4|}}}|1|0}} + {{#if:{{{5|}}}|1|0}} + {{#if:{{{6|}}}|1|0}} + {{#if:{{{7|}}}|1|0}} + {{#if:{{{8|}}}|1|0}} + {{#if:{{{9|}}}|1|0}} + {{#if:{{{10|}}}|1|0}}) > 1 | ||
|<ul>{{ | |<ul>{{ | ||
− | #if: {{{1}}}| <li>{{{1}}}</li>}}{{ | + | #if: {{{1|}}}| <li>{{{1}}}</li>}}{{ |
− | #if: {{{2}}}| <li>{{{2}}}</li>}}{{ | + | #if: {{{2|}}}| <li>{{{2}}}</li>}}{{ |
− | #if: {{{3}}}| <li>{{{3}}}</li>}}{{ | + | #if: {{{3|}}}| <li>{{{3}}}</li>}}{{ |
− | #if: {{{4}}}| <li>{{{4}}}</li>}}{{ | + | #if: {{{4|}}}| <li>{{{4}}}</li>}}{{ |
− | #if: {{{5}}}| <li>{{{5}}}</li>}}{{ | + | #if: {{{5|}}}| <li>{{{5}}}</li>}}{{ |
− | #if: {{{6}}}| <li>{{{6}}}</li>}}{{ | + | #if: {{{6|}}}| <li>{{{6}}}</li>}}{{ |
− | #if: {{{7}}}| <li>{{{7}}}</li>}}{{ | + | #if: {{{7|}}}| <li>{{{7}}}</li>}}{{ |
− | #if: {{{8}}}| <li>{{{8}}}</li>}}{{ | + | #if: {{{8|}}}| <li>{{{8}}}</li>}}{{ |
− | #if: {{{9}}}| <li>{{{9}}}</li>}}{{ | + | #if: {{{9|}}}| <li>{{{9}}}</li>}}{{ |
− | #if:{{{10}}}|<li>{{{10}}}</li>}}</ul> | + | #if:{{{10|}}}|<li>{{{10}}}</li>}}</ul> |
|{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}} | |{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> |
Revision as of 22:50, 3 January 2013
This template wraps up to 10 nonempty strings into an unordered list. If only one string is not empty, it is returned as-is.
Parameters
Ten numbered parameters, no parameter name, case sensitive, all default to not displayed.
Syntax
{{list |string one |string two |string three |... |string ten }}
Examples
When specifying only five strings:
{{list |Ape |Bear |Chihuahua |Donkey |Eel }}
If only one string is specified:
{{list|only one string this time}}
- only one string this time
If all strings are empty or no string is specified, all are effectively omitted resulting in no display at all.