Difference between revisions of "Template:Unbulleted list"
From Kerbal Space Program Wiki
(Import from Wikipedia (CC BY-SA license)) |
(One rev older from En-WP, which does not rely on the missing CSS.) |
||
Line 1: | Line 1: | ||
− | {{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}{{{12|}}}{{{13|}}}{{{14|}}}{{{15|}}}{{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}{{{20|}}}{{{21|}}}{{{22|}}}{{{23|}}}{{{24|}}}{{{25|}}}{{{26|}}}{{{27|}}}{{{28|}}}{{{29|}}}{{{30|}}}{{{31|}}}{{{32|}}}{{{33|}}}{{{34|}}}{{{35|}}}{{{36|}}}{{{37|}}}{{{38|}}}{{{39|}}}{{{40|}}}{{{41|}}}{{{42|}}}{{{43|}}}{{{44|}}}{{{45|}}}{{{46|}}}{{{47|}}}{{{48|}}}{{{49|}}}{{{50|}}}| | + | {{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}{{{12|}}}{{{13|}}}{{{14|}}}{{{15|}}}{{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}{{{20|}}}{{{21|}}}{{{22|}}}{{{23|}}}{{{24|}}}{{{25|}}}{{{26|}}}{{{27|}}}{{{28|}}}{{{29|}}}{{{30|}}}{{{31|}}}{{{32|}}}{{{33|}}}{{{34|}}}{{{35|}}}{{{36|}}}{{{37|}}}{{{38|}}}{{{39|}}}{{{40|}}}{{{41|}}}{{{42|}}}{{{43|}}}{{{44|}}}{{{45|}}}{{{46|}}}{{{47|}}}{{{48|}}}{{{49|}}}{{{50|}}}|<ul style="list-style: none none; line-height: inherit; margin: 0px; {{{ul_style|}}}"><!-- |
-->{{#if:{{{1|}}}|<li style="{{{li_style|}}}{{{li_style1|}}}">{{{1}}}</li>}}<!-- | -->{{#if:{{{1|}}}|<li style="{{{li_style|}}}{{{li_style1|}}}">{{{1}}}</li>}}<!-- | ||
-->{{#if:{{{2|}}}|<li style="{{{li_style|}}}{{{li_style2|}}}">{{{2}}}</li>}}<!-- | -->{{#if:{{{2|}}}|<li style="{{{li_style|}}}{{{li_style2|}}}">{{{2}}}</li>}}<!-- | ||
Line 50: | Line 50: | ||
-->{{#if:{{{49|}}}|<li style="{{{li_style|}}}{{{li_style49|}}}">{{{49}}}</li>}}<!-- | -->{{#if:{{{49|}}}|<li style="{{{li_style|}}}{{{li_style49|}}}">{{{49}}}</li>}}<!-- | ||
-->{{#if:{{{50|}}}|<li style="{{{li_style|}}}{{{li_style50|}}}">{{{50}}}</li>}}<!-- | -->{{#if:{{{50|}}}|<li style="{{{li_style|}}}{{{li_style50|}}}">{{{50}}}</li>}}<!-- | ||
− | --></ul | + | --></ul>}}<noinclude> |
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 10:02, 8 June 2015
This template uses material from the Wikipedia template Template:Unbulleted list, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors). | Error creating thumbnail: /bin/bash: rsvg-convert: command not found |
This template creates unbulleted lists. Up to 50 entries are supported. Each item in the list may have CSS styles added to it individually, by appending a numbered parameter. The parameter li_style1 formats the first item, li_style2 the second, and so on.
Contents
Syntax
- Simple
{{Unbulleted list|''entry1''|''entry2'' ...|''entry50''}}
- With CSS style
{{Unbulleted list|''entry1''|''entry2'' ...|''entry50''|li_style=''CSS-all''}}
- With separate CSS styles for each item
{{Unbulleted list|''entry1''|''entry2'' ...|''entry50''|li_style1=''CSS1''|li_style2=''CSS2'' ...|li_style50=''CSS50''}}
Paramter | Description |
---|---|
entry1 ... entry50 | These unnamed parameters are individual list items that appear as separate lines. They can be words or full sentences. However, all instance of equal sign (=) must be replaced with "{{=}}"; otherwise, the affected line will not appear. |
CSS1 ... CSS50 | Standard Cascading Style Sheet (CSS) styles that change the look of each line. (User must know CSS syntax.) |
CSS-all | Standard CSS styles that change the look of all entries. (User must know CSS syntax.) When present, CSS1 through CSS5 are disregarded. |
Example
Code | Result |
---|---|
{{Unbulleted list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}
|
|
{{Unbulleted list|Winner|Runner-up|Third place|li_style=color:blue;}}
|
|
{{Unbulleted list|Winner|Runner-up|Third place|li_style1=background-color:yellow;|li_style2=background-color:silver;}}
|
|
Redirects
The following redirect here:
-
{{Ubl}}
-
{{Ubt}}
-
{{Unbullet}}
See also
- {{nowrap begin}}/{{nowrap end}}
- {{plainlist}}
- {{multi-column numbered list}}
- {{pagelist}}
The above documentation is transcluded from Template:Unbulleted list/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |