Template:Styled list: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
(Undo revision 4552 by AngelinaBelle (talk))
 
(15 intermediate revisions by the same user not shown)
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|}}}"}}>
{{#if: {{{1|}}}|<ul {{#if:{{{lc|}}}|class="{{{lc|}}}"}} style="{{{ls|}}}">
<li class="horizontal first" style="{{{lis|}}} {{{fis|}}}">{{{1}}}</li>|}}<!--
<li {{#if: {{{lic|}}}{{{fic|}}}|class="{{{lic|}}} {{{fic|}}}" |}}  style="{{{lis|}}} {{{fis|}}}">{{{1}}}</li>|}}<!--
-->{{#if: {{{2|}}}|<li class="horizontal" style="{{{lis|}}}">{{{2}}}</li>}}<!--
-->{{#if: {{{2|}}}|
-->{{#if: {{{3|}}}|<li class="horizontal" style="{{{lis|}}}">{{{3}}}</li>}}<!--
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{2}}}</li>}}<!--
-->{{#if: {{{4|}}}|<li class="horizontal" style="{{{lis|}}}">{{{4}}}</li>}}<!--
-->{{#if: {{{3|}}}|
-->{{#if: {{{5|}}}|<li class="horizontal" style="{{{lis|}}}">{{{5}}}</li>}}<!--
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{3}}}</li>}}<!--
-->{{#if: {{{6|}}}|<li class="horizontal" style="{{{lis|}}}">{{{6}}}</li>}}<!--
-->{{#if: {{{4|}}}|
-->{{#if: {{{7|}}}|<li class="horizontal" style="{{{lis|}}}">{{{7}}}</li>}}<!--
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{4}}}</li>}}<!--
-->{{#if: {{{8|}}}|<li class="horizontal" style="{{{lis|}}}">{{{8}}}</li>}}<!--
-->{{#if: {{{5|}}}|
-->{{#if: {{{9|}}}|<li class="horizontal" style="{{{lis|}}}">{{{9}}}</li>}}<!--
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{5}}}</li>}}<!--
-->{{#if: {{{10|}}}|<li class="horizontal" style="{{{lis|}}}">{{{10}}}</li>}}<!--
-->{{#if: {{{6|}}}|
-->{{#if: {{{11|}}}|<li class="horizontal" style="{{{lis|}}}">{{{11}}}</li>}}<!--
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{6}}}</li>}}<!--
-->{{#if: {{{12|}}}|<li class="horizontal" style="{{{lis|}}}">{{{12}}}</li>}}<!--
-->{{#if: {{{7|}}}|
-->{{#if: {{{13|}}}|<li class="horizontal" style="{{{lis|}}}">{{{13}}}</li>}}<!--
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{7}}}</li>}}<!--
-->{{#if: {{{14|}}}|<li class="horizontal" style="{{{lis|}}}">{{{14}}}</li>}}<!--
-->{{#if: {{{8|}}}|
-->{{#if: {{{15|}}}|<li class="horizontal" style="{{{lis|}}}">{{{15}}}</li>}}<!--
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{8}}}</li>}}<!--
-->{{#if: {{{16|}}}|<li class="horizontal" style="{{{lis|}}}; color: red">Warning: excess items</li>}}}<!--
-->{{#if: {{{9|}}}|
-->{{#if: {{{1|}}}|</ul>|}}
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{9}}}</li>}}<!--
-->{{#if: {{{10|}}}|
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{10}}}</li>}}<!--
-->{{#if: {{{11|}}}|
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{11}}}</li>}}<!--
-->{{#if: {{{12|}}}|
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{12}}}</li>}}<!--
-->{{#if: {{{13|}}}|
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{13}}}</li>}}<!--
-->{{#if: {{{14|}}}|
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{14}}}</li>}}<!--
-->{{#if: {{{15|}}}|
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}">{{{15}}}</li>}}<!--
-->{{#if: {{{16|}}}|
<li {{#if: {{{lic|}}}|class="{{{lic|}}}"|}}} style="{{{lis|}}}; color: red">Warning: too many items</li>}}<!--
-->{{#if: {{{1|}}}|</ul>|}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 15:01, 8 March 2011

[edit] [purge] 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

  • a
  • b
  • c
  • d
  • e
  • f
  • g

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:

  • 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


Advertisement: