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

De Histo-Sport
Aucun résumé des modifications
Aucun résumé des modifications
 
(26 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
{| class="infobox" style="width:24em; font-size:90%; border:1px solid #aaa; background:#f8f8f8;"
<includeonly><table class="infobox" style="width: 23em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; float: right; margin: 0.5em 0 0.5em 1em; padding: 0; font-size: 88%; line-height: 1.5em; border-radius: 10px; overflow: hidden; border-collapse: separate;">
|+ style="font-weight:bold; text-align:center; font-size:1.1em;" |
  <tr>
{{#if:{{{nom|}}}
    <th colspan="2" style="text-align: center; font-size: 125%; background-color: #B0C4DE; padding: 0.6em; border-bottom: 1px solid #aaa;">{{{nom complet|{{PAGENAME}}}}}</th>
| {{{nom}}}
  </tr>
| {{#if:{{{nom_complet|}}}|{{{nom_complet}}}|Club}}
 
}}
  {{#if:{{{image|}}}|
|-
  <tr>
{{#if:{{{logo|}}}
    <td colspan="2" style="text-align: center; padding: 0.8em;">{{{image}}}</td>
| colspan="2" style="text-align:center; padding:6px 0;" |
  </tr>
  {{#if:{{{nom|}}}
  }}
    | [[File:{{{logo}}}|180px|alt={{{nom}}}]]
 
    | [[File:{{{logo}}}|180px|alt={{{nom_complet}}}]]
  {{#if:{{{accronyme|}}}|
  }}
  <tr>
|-
    <th scope="row" style="text-align: left; width: 40%; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Acronyme</th>
}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{accronyme}}}</td>
{{#if:{{{nom_complet|}}}
  </tr>
| ! style="width:40%;" | Nom complet
  }}
| {{{nom_complet}}}
 
|-
  {{#if:{{{anciens noms|}}}|
}}
  <tr>
{{#if:{{{acronyme|}}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Anciens noms</th>
| ! | Acronyme
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{anciens noms}}}</td>
| {{{acronyme}}}
  </tr>
|-
  }}
}}
 
{{#if:{{{ancien_nom|}}}
  {{#if:{{{fondation|}}}|
| ! | Ancien nom
  <tr>
| {{{ancien_nom}}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Fondation</th>
|-
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{fondation}}}</td>
}}
  </tr>
{{#if:{{{fondation|}}}
  }}
| ! | Fondation
 
| {{{fondation}}}
  {{#if:{{{déclaration|}}}|
|-
  <tr>
}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Déclaration</th>
{{#if:{{{disparition|}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{déclaration}}}</td>
| ! | Disparition
  </tr>
| {{{disparition}}}
  }}
|-
 
}}
  {{#if:{{{disparition|}}}|
{{#if:{{{ville|}}}
  <tr>
| ! | Ville
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Disparition</th>
| {{{ville}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{disparition}}}</td>
|-
  </tr>
}}
  }}
{{#if:{{{siege_social|}}}
 
| ! | Siège social
  {{#if:{{{siège social|}}}{{{ville|}}}|
| {{{siege_social}}}
  <tr>
|-
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Localisation</th>
}}
  </tr>
{{#if:{{{affiliation|}}}
  }}
| ! | Affiliation
 
| {{{affiliation}}}
  {{#if:{{{siège social|}}}|
|-
  <tr>
}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Siège social</th>
{{#if:{{{disciplines|}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{siège social}}}</td>
| ! | Disciplines
  </tr>
| {{{disciplines}}}
  }}
|-
 
}}
  {{#if:{{{ville|}}}|
{{#if:{{{sections|}}}
  <tr>
| ! | Sections
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Ville</th>
| {{{sections}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{ville}}}</td>
|-
  </tr>
}}
  }}
{{#if:{{{nombre_licencies|}}}
 
| ! | Nombre de licenciés
  {{#if:{{{discipline|}}}{{{section|}}}{{{nombre de licenciés|}}}{{{président|}}}{{{personnalités|}}}|
| {{{nombre_licencies}}}
  <tr>
|-
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Informations</th>
}}
  </tr>
{{#if:{{{president|}}}
  }}
| ! | Président
 
| {{{president}}}
  {{#if:{{{discipline|}}}|
|-
  <tr>
}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Discipline</th>
{{#if:{{{personnalites|}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{discipline}}}</td>
| ! | Personnalités
  </tr>
| {{{personnalites}}}
  }}
|-
 
}}
  {{#if:{{{section|}}}|
{{#if:{{{couleurs|}}}
  <tr>
| ! | Couleurs
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Section</th>
| {{{couleurs}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{section}}}</td>
|-
  </tr>
}}
  }}
{{#if:{{{palmares_national|}}}
 
| ! | Palmarès (national)
  {{#if:{{{nombre de licenciés|}}}|
| {{{palmares_national}}}
  <tr>
|-
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Licenciés</th>
}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{nombre de licenciés}}}</td>
{{#if:{{{palmares_regional|}}}
  </tr>
| ! | Palmarès (régional)
  }}
| {{{palmares_regional}}}
 
|-
  {{#if:{{{président|}}}|
}}
  <tr>
{{#if:{{{palmares_local|}}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Président</th>
| ! | Palmarès (local)
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{président}}}</td>
| {{{palmares_local}}}
  </tr>
|-
  }}
}}
 
|}
  {{#if:{{{personnalités|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Personnalités</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{personnalités}}}</td>
  </tr>
  }}
 
  {{#if:{{{palmarès nationale|}}}{{{palmarès régional|}}}{{{palmarès local|}}}|
  <tr>
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Palmarès</th>
  </tr>
  }}
 
  {{#if:{{{palmarès nationale|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">National</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{palmarès nationale}}}</td>
  </tr>
  }}


<noinclude>
  {{#if:{{{palmarès régional|}}}|
== Documentation ==
  <tr>
Modèle : Infobox pour une page « Club ».
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Régional</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{palmarès régional}}}</td>
  </tr>
  }}


Paramètres supportés (optionnels) :
  {{#if:{{{palmarès local|}}}|
- nom
  <tr>
- nom_complet
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Local</th>
- logo (nom du fichier chargé dans le wiki)
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{palmarès local}}}</td>
- acronyme
  </tr>
- ancien_nom
  }}
- fondation
- disparition
- ville
- siege_social
- affiliation
- disciplines
- sections
- nombre_licencies
- president
- personnalites
- couleurs
- palmares_national
- palmares_regional
- palmares_local


Exemple :
  {{#if:{{{site web|}}}|
  <tr>
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Lien</th>
  </tr>
  <tr>
    <th scope="row" style="text-align: left; padding: 0.5em;">Site web</th>
    <td style="padding: 0.5em;">{{{site web}}}</td>
  </tr>
  }}
</table></includeonly><noinclude>
== Mode d'emploi ==
Pour utiliser ce modèle sur une page de club, copiez-collez ceci :
<pre>
<pre>
{{Infobox_Club
{{Infobox
| nom = AS Exemple
| nom complet        =  
| nom_complet = Association Sportive Exemple
| image              =  
| logo = ASE_logo.png
| accronyme          =  
| acronyme = ASE
| anciens noms        =  
| fondation = 1901
| fondation           =
| ville = Lyon
| déclaration        =
| nombre_licencies = 420
| disparition        =
| president = Jean Dupont
| siège social        =  
| couleurs = Bleu et blanc
| ville               =
| palmares_national = Champion de France D3 (1999)
| discipline          =
| section            =  
| nombre de licenciés =  
| président          =  
| personnalités      =  
| palmarès nationale  =
| palmarès régional  =
| palmarès local      =
| site web            =  
}}
}}
</pre>
</pre>
</noinclude>
<noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Dernière version du 26 février 2026 à 17:11

Mode d'emploi

[modifier le wikicode]

Pour utiliser ce modèle sur une page de club, copiez-collez ceci :

{{Infobox
| nom complet         = 
| image               = 
| accronyme           = 
| anciens noms        = 
| fondation           = 
| déclaration         = 
| disparition         = 
| siège social        = 
| ville               = 
| discipline          = 
| section             = 
| nombre de licenciés = 
| président           = 
| personnalités       = 
| palmarès nationale  = 
| palmarès régional   = 
| palmarès local      = 
| site web            = 
}}



Documentation du modèle

Ce modèle permet d'afficher une boîte d'information (infobox) sur les pages des clubs sportifs.

Copiez et collez ceci en haut de l'article d'un club :

{{Infobox
| nom complet         = 
| image               = 
| accronyme           = 
| anciens noms        = 
| fondation           = 
| déclaration         = 
| disparition         = 
| siège social        = 
| ville               = 
| discipline          = 
| section             = 
| nombre de licenciés = 
| président           = 
| personnalités       = 
| palmarès nationale  = 
| palmarès régional   = 
| palmarès local      = 
| site web            = 
}}
  • nom complet : Nom officiel du club.
  • image : Logo (syntaxe : [[Fichier:Nom.png|200px|center]]).
  • fondation : Date de création.
  • ville : Ville d'origine.
  • site web : URL officielle.