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

De Pikmin FR
fr>Fxfxfx0
m Suppression de la catégorie Category:Template documentation et ajout de Catégorie:Documentation de modèle par un robot
m 14 versions importées
 
(11 versions intermédiaires par 3 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{| class="mw-collapsible mw-collapsed navbox" style="margin: auto; width: 80%; background-color: {{#if:{{{color|}}}
<templatestyles src="Modèle:Navbox/styles.css" />
    |rgb({{{color}}})
 
    |{{ColorScheme|{{{colorscheme|Generic}}}}}
{| class="navbox mw-collapsible autocollapse {{{class|}}}" style="border:2px #{{{tableborder|000000}}} solid; background-color:#{{{tablecolor|{{color|dark-green}}}}}; {{{style|}}}"
}}; border-radius: 20px; border-spacing: 2px; {{{style|}}}"
! colspan="{{{colpsan|2}}}" style="border:2px #{{{headerborder|{{color|light-green}}}}} solid; background-color:#{{{headercolor|{{color|green}}}}}" | '''{{{header|Header}}}'''
|-<noinclude>
|}
 
Navbox framework. '''Do not use this template directly!''' Instead, use it as the header to create other subpage templates to this page.
 
Some configurations are available:
*<code>tableborder</code>: Changes the outside border color
*<code>tablecolor</code>: Changes the table color
*<code>headerborder</code>: Changes the header border color
*<code>headercolor</code>: Changes the header background color
*<code>header</code>: Text to go within the header
*<code>class</code>: Any auxiliary classes for the entire navbox
*<code>style</code>: Any auxiliary styles for the entire navbox
 
<pre>
{{Naxbox|tableborder=|tablecolor=|headerborder=|headercolor=|header=|class=|style=}}
!
|
|-
|-
|<div style="color: {{ColorScheme|{{{colorscheme|}}}|textColor}}; font-size: 17px; font-weight: bold; text-align: center; margin-left: 56px;">{{{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|}}}
|}
    |rgba({{{color}}}, 0.2)
</pre>
    |{{ColorScheme|{{{colorscheme|Generic}}}|contentBackground}}
[[Categorie:Modèles]]</noinclude>
}}; border-radius: 18px; padding: 4px 4px 0px 4px;"></includeonly>
<noinclude>{{documentation}}[[Category:Navigation templates]][[Catégorie:Documentation de modèle]]
</noinclude>

Dernière version du 8 avril 2025 à 17:09

Navbox framework. Do not use this template directly! Instead, use it as the header to create other subpage templates to this page.

Some configurations are available:

  • tableborder: Changes the outside border color
  • tablecolor: Changes the table color
  • headerborder: Changes the header border color
  • headercolor: Changes the header background color
  • header: Text to go within the header
  • class: Any auxiliary classes for the entire navbox
  • style: Any auxiliary styles for the entire navbox
{{Naxbox|tableborder=|tablecolor=|headerborder=|headercolor=|header=|class=|style=}}
!
|
|-
!
|
|}