Difference between revisions of "Template:Unbulleted list/doc"
From Kerbal Space Program Wiki
(Import from Wikipedia (CC BY-SA license)) |
(Sync doc from En-WP with current version.) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
− | |||
{{En-WP attribution notice}} | {{En-WP attribution notice}} | ||
− | <! | + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
− | |||
− | + | This template creates [[w:WP:UBLIST|unbulleted lists]]. Up to 50 entries are supported. Each item in the list may have [[w:CSS|CSS]] styles added to it individually, by appending a numbered parameter. The parameter <tt>li_style1</tt> formats the first item, <tt>li_style2</tt> the second, and so on. | |
− | ; | + | == Syntax == |
− | {{ | + | ;Simple |
+ | :{{tld|Unbulleted list |''entry1'' |''entry2'' ... |''entry50''|allowlinebreak=yes}} | ||
+ | ;With CSS style | ||
+ | :{{tld|Unbulleted list |''entry1'' |''entry2'' ... |''entry50'' |li_style{{=}}''CSS-all''|allowlinebreak=yes}} | ||
+ | ;With separate CSS styles for each item | ||
+ | :{{tld|Unbulleted list |''entry1'' |''entry2'' ... |''entry50'' |li_style1{{=}}''CSS1'' |li_style2{{=}}''CSS2'' ... |li_style50{{=}}''CSS50''|allowlinebreak=yes}} | ||
− | + | {| class="wikitable" | |
− | + | |+ Parameters' description | |
− | + | |- | |
− | + | ! Paramter !! Description | |
− | + | |- | |
− | + | | {{nowrap|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 "<nowiki>{{=}}</nowiki>"; otherwise, the affected line will not appear. | |
− | + | |- | |
− | + | | {{nowrap|CSS1 ... CSS50}} | |
− | + | | Standard [[w:Cascading Style Sheet|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 == | == Example == | ||
Line 38: | Line 35: | ||
| {{Unbulleted list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}} | | {{Unbulleted list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}} | ||
|- | |- | ||
− | | <code><nowiki>{{Unbulleted list|Winner|Runner-up|Third place| | + | | <code><nowiki>{{Unbulleted list|Winner|Runner-up|Third place|li_style=color:blue;}}</nowiki></code> |
− | | {{Unbulleted list|Winner|Runner-up|Third place| | + | | {{Unbulleted list|Winner|Runner-up|Third place|li_style=color:blue;}} |
|- | |- | ||
− | | <code><nowiki>{{Unbulleted list|Winner|Runner-up|Third place| | + | | <code><nowiki>{{Unbulleted list|Winner|Runner-up|Third place|li_style1=background-color:yellow;|li_style2=background-color:silver;}}</nowiki></code> |
− | | {{Unbulleted list|Winner|Runner-up|Third place| | + | | {{Unbulleted list|Winner|Runner-up|Third place|li_style1=background-color:yellow;|li_style2=background-color:silver;}} |
|} | |} | ||
+ | |||
+ | == Redirects == | ||
+ | The following redirect here: | ||
+ | * {{Tlc|Ubl}} | ||
+ | * {{Tlc|Ubt}} | ||
+ | * {{Tlc|Unbullet}} | ||
== See also == | == See also == | ||
+ | * {{tl|nowrap begin}}/{{tl|nowrap end}} | ||
* {{tl|plainlist}} | * {{tl|plainlist}} | ||
− | * {{tl| | + | * {{tl|multi-column numbered list}} |
− | |||
− | |||
* {{tl|pagelist}} | * {{tl|pagelist}} | ||
<includeonly> | <includeonly> | ||
− | + | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | |
− | <! | + | [[Category:Wikipedia list formatting templates]] |
− | [[Category: | + | |
− | |||
</includeonly> | </includeonly> |
Latest revision as of 10:08, 8 June 2015
Error creating thumbnail: /bin/bash: rsvg-convert: command not found |
This is a documentation subpage for Template:Unbulleted list. It contains usage information, categories and other content that is not part of the original template page. |
This template uses material from the Wikipedia template Template:Unbulleted list/doc, 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}}