Template:Unbulleted list/doc: Difference between revisions

From Video Credit Archive

Content deleted Content added
imported>Reinstall
No edit summary
imported>Codename Lisa
Expanded
Line 2: Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


This template is used (primarily in infoboxes) to create unbulleted lists using the correct HTML mark-up using CSS to hide the bullets. Up to 50 entries are supported. Each item in the list may have 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.
This template creates [[WP:UBLIST|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 <tt>li_style1</tt> formats the first item, <tt>li_style2</tt> the second, and so on.


== Usage ==
== Syntax ==
;Simple
:<code><nowiki>{{Unbulleted list|entry1|entry2|entry3}}</nowiki></code>
:<code><nowiki>{{Unbulleted list|entry1|entry2|entry3|li_style1=css-style-a;css-style-b;|li_style3=css-style-x;css-style-y;}}</nowiki></code>
:{{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}}



== Example ==
{| class="wikitable"
{| class="wikitable"
|+ Parameters' description
! Code !! Result
|-
|-
! Paramter !! Description
| <code><nowiki>{{Unbulleted list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}</nowiki></code> || {{Unbulleted list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}
|-
|-
| {{nowrap|entry1 ... entry50}}
| <code><nowiki>{{Unbulleted list|Winner|Runner-up|Third place|li_style1=background-color:#FE2;|li_style2=background-color:#DDD;}}</nowiki></code> || {{Unbulleted list|Winner|Runner-up|Third place|li_style1=background-color:#FE2;|li_style2=background-color:#DDD;}}
| 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}}
| <code><nowiki>{{Unbulleted list| |entry2|entry3}}</nowiki></code> || {{Unbulleted list| |entry2|entry3}}
| Standard [[Cascading Style Sheet]] (CSS) styles that change the look of each line. (User must know CSS syntax.)
|-
|-
| CSS-all
| <code><nowiki>{{Unbulleted list|entry1| |entry3}}</nowiki></code> || {{Unbulleted list|entry1| |entry3}}
| Standard CSS styles that change the look of all entries. (User must know CSS syntax.) When present, ''CSS1'' through ''CSS5'' are disregarded.
|-
|}
| <code><nowiki>{{Unbulleted list|entry1|entry2| }}</nowiki></code> || {{Unbulleted list|entry1|entry2| }}

|-
== Example ==
| <code><nowiki>{{Unbulleted list|entry1| | }}</nowiki></code> || {{Unbulleted list|entry1| | }}
{| class="wikitable"
! Code !! Result
|-
|-
| <code><nowiki>{{Unbulleted list| |entry2| }}</nowiki></code> || {{Unbulleted list| |entry2| }}
| <code><nowiki>{{Unbulleted list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}</nowiki></code>
| {{Unbulleted list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}
|-
|-
| <code><nowiki>{{Unbulleted list| | |entry3}}}</nowiki></code> || {{Unbulleted list| | |entry3}}
| <code><nowiki>{{Unbulleted list|Winner|Runner-up|Third place|li_style=color:blue;}}</nowiki></code>
| {{Unbulleted list|Winner|Runner-up|Third place|li_style=color:blue;}}
|-
|-
| <code><nowiki>{{Unbulleted list| | | }}}</nowiki></code> || {{Unbulleted list| | | }}
| <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|li_style1=background-color:yellow;|li_style2=background-color:silver;}}
|}
|}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.