« Modèle:Collapsible list » : différence entre les versions

De Pikmin FR
fr>Fxfxfx0
m 1 version importée : Import de la majorité des modèles manquants
fr>Fxfxfx0
mAucun résumé des modifications
Ligne 97 : Ligne 97 :


;Within another element
;Within another element
<pre>{{collapsible list
<pre>{| class="wikitable" style="width:250px"
! Tableau d'exemple
|-
| {{collapsible list
|[[bulbapedia:Sandshrew|Alolan Sandshrew]]
|[[bulbapedia:Sandshrew|Alolan Sandshrew]]
|[[bulbapedia:Sandslash|Alolan Sandslash]]
|[[bulbapedia:Sandslash|Alolan Sandslash]]
Ligne 104 : Ligne 107 :
|[[bulbapedia:Smoochum|Smoochum]]
|[[bulbapedia:Smoochum|Smoochum]]
|[[bulbapedia:Jinx|Jinx]]
|[[bulbapedia:Jinx|Jinx]]
|title=TMs}}</pre>
|title=TMs}}
|}</pre>


{|{{prettytable|style=width:250px}}
{| class="wikitable" style="width:250px"
! Example table
! Tableau d'exemple
|-
|-
| {{collapsible list
| {{collapsible list

Version du 11 novembre 2024 à 15:24

List

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 {{collapsible list|one|two|three}} will result in:

List
one
two
three
Named parameters

These parameters are all technically optional, but it is suggested that you at least give the title parameter.

  • title: The title of the list. Default is "List".
  • expand: Putting something here will make the list expanded on page load. Default is collapsed.
  • framestyle: CSS styling for the entire list container. Default is "border:none; padding:0;".
  • titlestyle: CSS styling for the title element. Default is "background:transparent;font-size:12px".
  • liststyle: CSS styling for the list itself. Default is "text-align:left;".

Examples

Standalone template
{{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;
}}
Example list
one
two
three


Within another element
{| class="wikitable" style="width:250px"
! Tableau d'exemple
|-
| {{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}}
|}
Tableau d'exemple