From TEPwiki, Urth's Encyclopedia
Jump to navigation
Jump to search
Content added Content deleted
(12 intermediate revisions by 5 users not shown)
{{<includeonly>safesubst:</includeonly>#invoke:list|unbulleted}}<noinclude>
{{#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; padding: 0px; margin: 0px; {{{ul_style|}}}">{{#if:{{{1|}}}|<li style="{{{li_style|}}}">{{{1}}}</li>}}{{#if:{{{2|}}}|<li style="{{{li_style|}}}">{{{2}}}</li>}}{{#if:{{{3|}}}|<li style="{{{li_style|}}}">{{{3}}}</li>}}{{#if:{{{4|}}}|<li style="{{{li_style|}}}">{{{4}}}</li>}}{{#if:{{{5|}}}|<li style="{{{li_style|}}}">{{{5}}}</li>}}{{#if:{{{6|}}}|<li style="{{{li_style|}}}">{{{6}}}</li>}}{{#if:{{{7|}}}|<li style="{{{li_style|}}}">{{{7}}}</li>}}{{#if:{{{8|}}}|<li style="{{{li_style|}}}">{{{8}}}</li>}}{{#if:{{{9|}}}|<li style="{{{li_style|}}}" >{{{9}}}</li>}}{{#if:{{{10|}}}|<li style="{{{li_style|}}}">{{{10}}}</li>}}{{#if:{{{11|}}}|<li style="{{{li_style|}}}">{{{11}}}</li>}}{{#if:{{{12|}}}|<li style="{{{li_style|}}}">{{{12}}}</li>}}{{#if:{{{13|}}}|<li style="{{{li_style|}}}">{{{13}}}</li>}}{{#if:{{{14|}}}|<li style="{{{li_style|}}}">{{{14}}}</li>}}{{#if:{{{15|}}}|<li style="{{{li_style|}}}">{{{15}}}</li>}}{{#if:{{{16|}}}|<li style="{{{li_style|}}}">{{{16}}}</li>}}{{#if:{{{17|}}}|<li style="{{{li_style|}}}">{{{17}}}</li>}}{{#if:{{{18|}}}|<li style="{{{li_style|}}}">{{{18}}}</li>}}{{#if:{{{19|}}}|<li style="{{{li_style|}}}">{{{19}}}</li>}}{{#if:{{{20|}}}|<li style="{{{li_style|}}}">{{{20}}}</li>}}{{#if:{{{21|}}}|<li style="{{{li_style|}}}">{{{21}}}</li>}}{{#if:{{{22|}}}|<li style="{{{li_style|}}}">{{{22}}}</li>}}{{#if:{{{23|}}}|<li style="{{{li_style|}}}">{{{23}}}</li>}}{{#if:{{{24|}}}|<li style="{{{li_style|}}}">{{{24}}}</li>}}{{#if:{{{25|}}}|<li style="{{{li_style|}}}">{{{25}}}</li>}}{{#if:{{{26|}}}|<li style="{{{li_style|}}}">{{{26}}}</li>}}{{#if:{{{27|}}}|<li style="{{{li_style|}}}">{{{27}}}</li>}}{{#if:{{{28|}}}|<li style="{{{li_style|}}}">{{{28}}}</li>}}{{#if:{{{29|}}}|<li style="{{{li_style|}}}">{{{29}}}</li>}}{{#if:{{{30|}}}|<li style="{{{li_style|}}}">{{{30}}}</li>}}{{#if:{{{31|}}}|<li style="{{{li_style|}}}">{{{31}}}</li>}}{{#if:{{{32|}}}|<li style="{{{li_style|}}}">{{{32}}}</li>}}{{#if:{{{33|}}}|<li style="{{{li_style|}}}">{{{33}}}</li>}}{{#if:{{{34|}}}|<li style="{{{li_style|}}}">{{{34}}}</li>}}{{#if:{{{35|}}}|<li style="{{{li_style|}}}">{{{35}}}</li>}}{{#if:{{{36|}}}|<li style="{{{li_style|}}}">{{{36}}}</li>}}{{#if:{{{37|}}}|<li style="{{{li_style|}}}">{{{37}}}</li>}}{{#if:{{{38|}}}|<li style="{{{li_style|}}}">{{{38}}}</li>}}{{#if:{{{39|}}}|<li style="{{{li_style|}}}">{{{39}}}</li>}}{{#if:{{{40|}}}|<li style="{{{li_style|}}}">{{{40}}}</li>}}{{#if:{{{41|}}}|<li style="{{{li_style|}}}">{{{41}}}</li>}}{{#if:{{{42|}}}|<li style="{{{li_style|}}}">{{{42}}}</li>}}{{#if:{{{43|}}}|<li style="{{{li_style|}}}">{{{43}}}</li>}}{{#if:{{{44|}}}|<li style="{{{li_style|}}}">{{{44}}}</li>}}{{#if:{{{45|}}}|<li style="{{{li_style|}}}">{{{45}}}</li>}}{{#if:{{{46|}}}|<li style="{{{li_style|}}}">{{{46}}}</li>}}{{#if:{{{47|}}}|<li style="{{{li_style|}}}">{{{47}}}</li>}}{{#if:{{{48|}}}|<li style="{{{li_style|}}}">{{{48}}}</li>}}{{#if:{{{49|}}}|<li style="{{{li_style|}}}">{{{49}}}</li>}}{{#if:{{{50|}}}|<li style="{{{li_style|}}}">{{{50}}}</li>}}</ul>}}<noinclude>
{{documentation}}</noinclude>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>
Latest revision as of 20:06, 25 April 2020
This template is used on approximately 685,000 pages, or roughly 5267% of all pages . To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage . The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template uses Lua :
This template creates unbulleted lists . Each item in the list may have CSS styles added to it individually, by appending a numbered parameter.
Usage
Basic usage
{{unbulleted list|first item |second item |third item |...}}
All parameters
{{unbulleted list
|first item |second item |third item |...
|class = class
|style = style
|list_style = style for ul tag
|item_style = style for all li tags
|item1_style = style for first li tag |item2_style = style for second li tag |...
}}
Parameters
Positional parameters (1
, 2
, 3
...) – these are the list items. If no list items are present, the module will output nothing.
class
– a custom class for the <div>...</div>
tags surrounding the list, e.g. plainlinks
.
style
– a custom CSS style for the <div>...</div>
tags surrounding the list, e.g. font-size: 90%;
.
list_style
– a custom CSS style for the <ul>...</ul>
tags around the list. The format is the same as for the |style=
parameter.
item_style
– a custom CSS style for all of the list items (the <li>...</li>
tags). The format is the same as for the |style=
parameter.
item1_style
, item2_style
, item3_style
... – custom CSS styles for each of the list items. The format is the same as for the |style=
parameter.
Example
Code
Result
{{Unbulleted list|entry1|entry2|entry3|entry4|entry5 |entry6|entry7|entry8|entry9}}
entry1 entry2 entry3 entry4 entry5 entry6 entry7 entry8 entry9
{{Unbulleted list|Winner|Runner-up|Third place|item_style=color:blue;}}
Winner Runner-up Third place
{{Unbulleted list|Winner|Runner-up|Third place|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
Winner Runner-up Third place
Controlling line-breaking
Template {{nbsp }}
may be used with {{wbr }}
and {{nowrap }}
to control line-breaking in bulletless lists, to prevent wrapped long entries from being confused with multiple entries. See Template:Wbr/doc#Controlling line-breaking in infoboxes for details.
Technical details
{{Unbulleted list }} works by constructing a div with the CSS class "plainlist" which has the following style (see MediaWiki:Common.css ):
. plainlist ul {
line-height : inherit ;
list-style : none none ;
margin : 0 ;
}
. plainlist ul li {
margin-bottom : 0 ;
}
Wikitext
Expanded template
HTML
{{Unbulleted list
| Example 1
| Example 2
| Example 3
}}
< div class = "plainlist" >< ul >< li > Example 1</ li >< li > Example 2</ li >< li > Example 3</ li ></ ul ></ div >
< div class = "plainlist" >
< ul >
< li > Example 1</ li >
< li > Example 2</ li >
< li > Example 3</ li >
</ ul >
</ div >
See also
HTML lists
Flat
Bulleted and Ordered
Unbulleted
{{glossary }} (glossary , description, definition, association)
{{glossary }}
{{term |first term}}
{{defn |first description}}
{{term|second term}}
{{defn|second description}}
{{term|...}}
{{defn|....}}
{{glossary end }}
first term first description
second term second description
... ....
Other
{{flowlist }}
[[File:Bad Title Example.png|left|thumb|100px]]
{{flowlist | *item1 *item2 *...}}