Difference between revisions of "Template:Navbox list/Documentation"

From GodWiki
Jump to navigation Jump to search
(Use Template:Fake link in linked examples, to avoid creating "Wanted pages" entries)
m (Add category)
Line 31: Line 31:
  
 
;{{para|item-wrap|no}}
 
;{{para|item-wrap|no}}
:If {{para|bullet-wrap|yes}}, this parameter tells the template to stop list items from breaking across a space, but allow the bullet to appear on the next line.
+
:If {{para|bullet-wrap|yes}}, this parameter tells the template to stop list items from breaking across a space, but allow the bullet to appear on the next line.<noinclude>
 +
[[Category:Templates/Documents|{{PAGENAME}}]]
 +
</noinclude>

Revision as of 21:37, 19 January 2019

Navbox templates
{{Navbox}}
{{Navbox subgroup}}
{{Navbox items}}

{{Navbox list}} is intended for use with the {{Navbox}} set of templates to make correctly formatted lists of items.

Items should be wikilinked and formatted exactly as they will appear in the final list.

Example of use:

{{Navbox
|title=List example
|list1={{Navbox list|[[Item one]]|[[Piped link|Item two]]|[[Item three]] (note)}}
}}
 List example
Item one Item two Item three (note)

Up to 99 list items are supported.

{{Navbox list}} optional parameters

|bullet=
Defines a bullet to appear between the list items. The default bullet is , which is defined in the sub-page {{Navbox list/Bullet}}.
|space=
Defines the space to appear between the bullet and the adjacent list items on either side, as in:
Item[space]bullet[space]Item. The default is a normal space, and is defined in the sub-page {{Navbox list/Space}}.
|bullet-wrap=yes
By default, this template makes a list item and the bullet to its right non-breaking, so that wherever possible it stays together on a single line and doesn't wrap. Setting |bullet-wrap=yes allows list items and bullets to break freely across lines. This is only useful if your list contains very long items, which cause ugly line breaking on small screens.
|item-wrap=no
If |bullet-wrap=yes, this parameter tells the template to stop list items from breaking across a space, but allow the bullet to appear on the next line.