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

De Pikmin FR
fr>Fxfxfx0
Aucun résumé des modifications
fr>Fxfxfx0
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<includeonly>{| class="mw-collapsible mw-collapsed navbox" style="margin: auto; width: 80%; background-color: {{#if:{{{color|}}}
<includeonly><templatestyles src="Navbox/styles.css" />
{| class="mw-collapsible mw-collapsed navbox" style="background-color: {{#if:{{{color|}}}
     |rgb({{{color}}})
     |rgb({{{color}}})
     |{{ColorScheme|{{{colorscheme|Generic}}}}}
     |{{ColorScheme|{{{colorscheme|Generic}}}}}
}}; border-radius: 20px; border-spacing: 2px; {{{style|}}}"
}}; {{{style|}}}"
|-
|-
|<div style="color: {{ColorScheme|{{{colorscheme|}}}|textColor}}; font-size: 17px; font-weight: bold; text-align: center; margin-left: 56px;">{{{title|{{{1}}}}}}</div>
|<div style="color: {{ColorScheme|{{{colorscheme|}}}|textColor}};">{{{title|{{{1}}}}}}</div>
|-
|-
|style="background-color: rgba(255, 255, 255, 0.5); border-radius: 18px; padding: 0px;"|<div style="box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5) inset; background-color: {{#if:{{{color|}}}
|<div style="background-color: {{#if:{{{color|}}}
     |rgba({{{color}}}, 0.2)
     |rgba({{{color}}}, 0.2)
     |{{ColorScheme|{{{colorscheme|Generic}}}|contentBackground}}
     |{{ColorScheme|{{{colorscheme|Generic}}}|contentBackground}}
}}; border-radius: 18px; padding: 4px 4px 0px 4px;"></includeonly>
}};"></includeonly>
<noinclude>{{documentation}}[[Catégorie:Modèles de navigation]]
<noinclude>{{documentation}}[[Category:Modèles de navigation]]</noinclude>
</noinclude>

Version du 2 juillet 2024 à 07:37



Ci-dessous la documentation du modèle
N.B.: le modèle ci-dessus peut parfois être partiellement ou entièrement invisible.
Visitez Modèle:Navbox/doc pour modifier cette documentation. (Comment ça marche ?)
Cette page utilise l'Extension:TemplateStyles !
Sa sous-page CSS correspondante se situe sur :

Opens an expandable navigation box. The resulting DOM construct must be terminated with the following wiki markup:

</div>
|}

Arguments

title Unnamed The text to display at the top of the navbox, even when collapsed.
colorscheme Optional The color scheme of the navbox. Defaults to Generic.
color Optional Deprecated; use colorscheme instead. An RGB triplet to use as the base color for formatting. If left blank, the color scheme specified is used.
style Optional A list of CSS rules to apply to the top-level container.

Example

Markup

{{Navbox
|colorscheme = Splatoon 2
|title = S2 Demonstration
}}
{{NavboxGroup
|colorscheme = Splatoon 2
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}
{{Navbox
|colorscheme = Splatoon 3
|title = S3 Demonstration
}}
{{NavboxGroup
|colorscheme = Splatoon 3
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}

Output