Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Template:Collapsible list/Documentation
Template page
Views
Read
Edit source
View history
associated-pages
Template
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This template creates a collapsible list with room for up to 50 items. ==Parameters== ;Unnamed These range from 1β50 and don't require a parameter name. For instance '''<tt><nowiki>{{collapsible list|one|two|three}}</nowiki></tt>''' will result in: {{collapsible list|one|two|three}} ;Named parameters These parameters are all technically optional, but it is suggested that you at least give the '''<tt>title</tt>''' parameter. *'''<tt>title</tt>''': The title of the list. Default is "List". *'''<tt>expand</tt>''': Putting something here will make the list expanded on page load. Default is collapsed. *'''<tt>framestyle</tt>''': CSS styling for the entire list container. Default is "border:none; padding:0;". *'''<tt>titlestyle</tt>''': CSS styling for the title element. Default is "background:transparent;font-size:12px". *'''<tt>liststyle</tt>''': CSS styling for the list itself. Default is "text-align:left;". ==Examples== ;Standalone template <pre>{{collapsible list |one |two |three |title=Example list |expand=yes |framestyle=padding:3px;border:1px solid black; |titlestyle=background-color:pink;padding:2px;text-align:center; |liststyle=text-align:left;color:blue;margin-left:10px; }}</pre> {{collapsible list |one |two |three |title=Example list |expand=yes |framestyle=padding:3px;border:1px solid black; |titlestyle=background-color:pink;padding:2px;text-align:center; |liststyle=text-align:left;color:blue;margin-left:10px; }} ;Within another element <pre>{{collapsible list |[[bulbapedia:Sandshrew|Alolan Sandshrew]] |[[bulbapedia:Sandslash|Alolan Sandslash]] |[[bulbapedia:Vulpix|Alolan Vulpix]] |[[bulbapedia:Ninetails|Alolan Ninetails]] |[[bulbapedia:Smoochum|Smoochum]] |[[bulbapedia:Jinx|Jinx]] |title=TMs}}</pre> {|{{prettytable|style=width:250px}} ! Example table |- | {{collapsible list |[[bulbapedia:Sandshrew|Alolan Sandshrew]] |[[bulbapedia:Sandslash|Alolan Sandslash]] |[[bulbapedia:Vulpix|Alolan Vulpix]] |[[bulbapedia:Ninetails|Alolan Ninetails]] |[[bulbapedia:Smoochum|Smoochum]] |[[bulbapedia:Jinx|Jinx]] |title=TMs}} |} <noinclude>[[Category:Template documentation]]</noinclude>
Summary:
Please note that all contributions to Turing Complete are considered to be released under the Creative Commons Attribution-ShareAlike (see
TuringComplete:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:-
(
edit
)
Template:Collapsible list
(
edit
)
Template:Prettytable
(
edit
)