List: Difference between revisions From Online Manual

Jump to: navigation, search
(remove <nowiki> from example; categorize basic as per http://docs.simplemachines.org/index.php?topic=57)
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<tr><td><center><span style="font-size: 12pt;" class="bbc_size"><tt>'''li'''</tt></span></center></td><td><center>'''List item'''</center></td><td></td></tr>
{{Wordy bbc
 
|tag=list
<tr><td><nowiki>[list]
|parameters={{Parmdesc
[li]blocks[/li]
    |type|d1=(optional) one of the following: none, disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman, lower-alpha, upper-alpha, lower-greek, lower-latin, upper-latin, hebrew, armenian, georgian, cjk-ideographic, hiragana, katakana, hiragana-iroha and katakana-iroha.}}
[li]text or[/li]
|button=list.gif
[li]more BB Code[/li]
|example=[list type=lower-greek] [li]list item (see [[li]])[/li] [li]another list item[/li] [/list]
[/list]</nowiki></td><td>The <tt>li</tt> tag creates list items. This is a block level tag, and can contain any other tag, but must be placed only in <tt>list</tt> tags.</td><td><ul class="bbc_list"><li>blocks</li><li>text or</li><li>more BB Code</li></ul></td></tr>
|result=<ol style="list-style-type: lower-greek;"><li>list item (see [[li]])</li><li>another list item</li></ol>
 
|description=The list tag encloses a list.  Each item in the list must be enclosed in [[li]] tags. The type property of the list tag lets you specify a few bullet formats, as well as several counting formats. Some of the list types might not work in some browsers.}}
<tr><td><nowiki>[o]circle
[O]circle
[0]circle
[*]disc
[@]disc
[+]square
[x]square
[#]square</nowiki></td><td>Although the best way to specify bullet formats is through the type property of the list, you can give each list item an individual style. Note that these do not have corresponding closing tags.</td><td><ul class="bbc_list"><li type="circle">circle</li><li type="circle">circle</li>[0]circle
<li type="disc">disc</li><li type="disc">disc</li><li type="square">square</li><li type="square">square</li><li type="square">square</li></ul></td></tr>
 
<tr><td><center><span style="font-size: 12pt;" class="bbc_size"><tt>'''list'''</tt></span></center></td><td><center>'''List'''</center></td><td><center><img src="http://docs.simplemachines.org/Themes/default/images/bbc/list.gif" alt="" class="bbc_img" /></center></td></tr>
 
<tr><td>&#91;list&#93;&#91;/list&#93;</td><td>The <tt>list</tt> tag creates a html list. It produces no visible output by itself. It is block level, and can only contain <tt>li</tt> tags.</td><td><ul class="bbc_list"></ul></td></tr>
 
<tr><td><nowiki>[list type=none][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=disc][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=circle][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=square][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=decimal][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=decimal-leading-zero][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=lower-roman][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=upper-roman][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=lower-alpha][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=upper-alpha][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=lower-greek][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=lower-latin][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=upper-latin][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=hebrew][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=armenian][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=georgian][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=cjk-ideographic][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=hiragana][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=katakana][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=hiragana-iroha][li]SMF[/li]
[li]YaBB SE[/li][/list]
[list type=katakana-iroha][li]SMF[/li]
[li]YaBB SE[/li][/list]</nowiki></td><td>The type property of the <tt>list</tt> tag lets you specify a few bullet formats, as well as several counting formats. The possible types are none, disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman, lower-alpha, upper-alpha, lower-greek, lower-latin, upper-latin, hebrew, armenian, georgian, cjk-ideographic, hiragana, katakana, hiragana-iroha and katakana-iroha. Examples of all of these are shown. Not all may work in your browser.</td><td><ul class="bbc_list" style="list-style-type: none;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: disc;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: circle;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: square;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: decimal;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: decimal-leading-zero;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: lower-roman;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: upper-roman;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: lower-alpha;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: upper-alpha;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: lower-greek;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: lower-latin;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: upper-latin;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: hebrew;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: armenian;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: georgian;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: cjk-ideographic;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: hiragana;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: katakana;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: hiragana-iroha;"><li>SMF</li><li>YaBB SE</li></ul><ul class="bbc_list" style="list-style-type: katakana-iroha;"><li>SMF</li><li>YaBB SE</li></ul></td></tr>
 
[[Category:Bulletin_Board_Code]]
[[Category:Bulletin_Board_Code]]
{{Cleanup html}}
[[Category:Basic Bulletin Board Code]]
[[Category:Basic Bulletin Board Code]]

Latest revision as of 11:43, 1 July 2013

button: List.gif

description: The list tag encloses a list. Each item in the list must be enclosed in li tags. The type property of the list tag lets you specify a few bullet formats, as well as several counting formats. Some of the list types might not work in some browsers.

parameters:

  • type (optional) one of the following: none, disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman, lower-alpha, upper-alpha, lower-greek, lower-latin, upper-latin, hebrew, armenian, georgian, cjk-ideographic, hiragana, katakana, hiragana-iroha and katakana-iroha.

example: [list type=lower-greek] [li]list item (see li)[/li] [li]another list item[/li] [/list]

result:

  1. list item (see li)
  2. another list item



Advertisement: