(documentation) |
(whitespace control, first item) |
||
Line 1: | Line 1: | ||
<!-- This template is to produce a classed and styled list with up to 15 items. This can rely on defined classes, and also on passed-in styles--> | <!-- This template is to produce a classed and styled list with up to 15 items. This can rely on defined classes, and also on passed-in styles--> | ||
{{#if: {{{1|}}}|<ul {{#if:{{{lc|}}}|class="{{{lc|}}}"}} style="{{{ls|}}}"> | {{#if: {{{1|}}}|<ul {{#if:{{{lc|}}}|class="{{{lc|}}}"}} style="{{{ls|}}}"> | ||
<li {{#if: {{{lic|}}}{{{fic|}}}|class="{{{lic|}}} {{{fic|}}}" |}} style="{{{lis|}}} {{{fis|}}}">{{{1}}}</li>| | <li {{#if: {{{lic|}}}{{{fic|}}}|class="{{{lic|}}} {{{fic|}}}" |}} style="{{{lis|}}} {{{fis|}}}">{{{1}}}</li>|}<!-- | ||
-->{{#if: {{{2|}}}| | -->{{#if: {{{2|}}}| | ||
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{2}}}</li>}}<!-- | <li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{2}}}</li>}}<!-- |
Revision as of 15:00, 8 March 2011
{{#if: |
- {{{1}}} |}
- a |}
- b
- c
- d
- e
- f
- g
- lc list class
- lic list item class
- fic first item class
- ls list style= content
- lis list item style= content
- fis first list item style= content
[edit] [ ] Template documentation
This template is designed to produce stylable list of up to 15 items, with a left-border "separator" In its simplest form, it is
{{Styled list|a|b|c|d|e|f|g}}
Which produces
{{#if: a|Passing parameter 16 will produce an error message.
In addition to the unnamed parameters, this template can take the following parameters for class and style:
The above documentation is transcluded from Template:Styled list/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |