Difference between revisions of "Template:Libull/doc"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(→‎Usage: recode example)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(5 intermediate revisions by 3 users not shown)
Line 3: Line 3:
  
 
==Usage==
 
==Usage==
This template, {{tlx|libull}} (for "list item, bulleted") is part of the '''system of templates for copy-pasteable lists'''.  It is used inside {{tlx|ulist}} to provide a bullet, automatically spaced for you, in front of an item in an unordered list.  For complex content, it has a two-part start and end tag version, {{tlx|libull-}} and {{tlx|!libull}}.
+
This template, {{tlx|libull}} (for "list item, bulleted") is part of the '''system of templates for copy-pasteable lists'''.  It may be used inside {{tlx|unbulleted list}} to provide a bullet, automatically spaced for you, in front of an item in an unordered list.
  
 
Example:
 
Example:
  
{{ulist|1=
+
{{unbulleted list
  {{libull|1=An unordered list item}}
+
| {{libull|1=An unordered list item}}
  {{libull|1=Another unordered list item}}
+
| {{libull|1=Another unordered list item}}
 
}}
 
}}
  
 
==Tech note==
 
==Tech note==
This template uses <code>list-style</code> instead of the more specific <code>list-style-type</code> because of [[bugzilla:31746|MediaWiki bug 31746]]. What that's fixed, the template should be, too.
+
This template uses <code>list-style-image: none</code> to suppress MedaWiki's auto-generated blue bullet image, and <code>list-style-type: none</code> to prevent the auto-generation of the default HTML bullet, which is not copy-pasteable either, then replaces them with a copy-pasteable (and scaleable!) text bullet generated by the {{tl|lidot}} meta-template.
 
 
==Redirects==
 
*{{tlx|li bullet}}
 
*{{tlx|li*}}
 
  
 
==See also==
 
==See also==
 
{{olist/see-also}}
 
{{olist/see-also}}
[[Category:Copy-pasteable lists templates]]
 
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
  
</includeonly>
+
<includeonly>{{Sandbox other||
 +
<!-- Categories go here: -->
 +
[[Category:Copy-pasteable list templates]]
 +
}}</includeonly>

Latest revision as of 23:57, 25 April 2020

Usage

This template, {{libull}} (for "list item, bulleted") is part of the system of templates for copy-pasteable lists. It may be used inside {{unbulleted list}} to provide a bullet, automatically spaced for you, in front of an item in an unordered list.

Example:

  •   An unordered list item
  •   Another unordered list item

Tech note

This template uses list-style-image: none to suppress MedaWiki's auto-generated blue bullet image, and list-style-type: none to prevent the auto-generation of the default HTML bullet, which is not copy-pasteable either, then replaces them with a copy-pasteable (and scaleable!) text bullet generated by the {{lidot}} meta-template.

See also

Template:Olist/see-also