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

De Histo-Sport
Aucun résumé des modifications
Aucun résumé des modifications
 
(25 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
{{Infobox
<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;">
| titre = {{{nom|}}}
  <tr>
| image = {{{logo|}}}
    <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>
| corps =
  </tr>
{{#if:{{{nom_complet|}}}|{{Infobox/ligne|libellé=Nom complet|valeur={{{nom_complet}}}}}|}}
 
{{#if:{{{acronyme|}}}|{{Infobox/ligne|libellé=Acronyme|valeur={{{acronyme}}}}}|}}
  {{#if:{{{image|}}}|
{{#if:{{{ancien_nom|}}}|{{Infobox/ligne|libellé=Ancien nom|valeur={{{ancien_nom}}}}}|}}
  <tr>
    <td colspan="2" style="text-align: center; padding: 0.8em;">{{{image}}}</td>
  </tr>
  }}
 
  {{#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>
  </tr>
  }}
 
  {{#if:{{{anciens noms|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Anciens noms</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{anciens noms}}}</td>
  </tr>
  }}
 
  {{#if:{{{fondation|}}}|
  <tr>
    <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:{{{déclaration|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Déclaration</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{déclaration}}}</td>
  </tr>
  }}
 
  {{#if:{{{disparition|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Disparition</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{disparition}}}</td>
  </tr>
  }}
 
  {{#if:{{{siège social|}}}{{{ville|}}}|
  <tr>
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Localisation</th>
  </tr>
  }}
 
  {{#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>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{siège social}}}</td>
  </tr>
  }}
 
  {{#if:{{{ville|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Ville</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{ville}}}</td>
  </tr>
  }}
 
  {{#if:{{{discipline|}}}{{{section|}}}{{{nombre de licenciés|}}}{{{président|}}}{{{personnalités|}}}|
  <tr>
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Informations</th>
  </tr>
  }}
 
  {{#if:{{{discipline|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Discipline</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{discipline}}}</td>
  </tr>
  }}
 
  {{#if:{{{section|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Section</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{section}}}</td>
  </tr>
  }}
 
  {{#if:{{{nombre de licenciés|}}}|
  <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>
  </tr>
  }}
 
  {{#if:{{{président|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Président</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{président}}}</td>
  </tr>
  }}


{{#if:{{{fondation|}}}|{{Infobox/ligne|libellé=Fondation|valeur={{{fondation}}}}}|}}
  {{#if:{{{personnalités|}}}|
{{#if:{{{disparition|}}}|{{Infobox/ligne|libellé=Disparition|valeur={{{disparition}}}}}|}}
  <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:{{{ville|}}}|{{Infobox/ligne|libellé=Ville|valeur={{{ville}}}}}|}}
  {{#if:{{{palmarès nationale|}}}{{{palmarès régional|}}}{{{palmarès local|}}}|
{{#if:{{{siege_social|}}}|{{Infobox/ligne|libellé=Siège social|valeur={{{siege_social}}}}}|}}
  <tr>
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Palmarès</th>
  </tr>
  }}


{{#if:{{{affiliation|}}}|{{Infobox/ligne|libellé=Affiliation|valeur={{{affiliation}}}}}|}}
  {{#if:{{{palmarès nationale|}}}|
{{#if:{{{disciplines|}}}|{{Infobox/ligne|libellé=Disciplines|valeur={{{disciplines}}}}}|}}
  <tr>
{{#if:{{{sections|}}}|{{Infobox/ligne|libellé=Sections|valeur={{{sections}}}}}|}}
    <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>
  }}


{{#if:{{{nombre_licencies|}}}|{{Infobox/ligne|libellé=Licenciés|valeur={{{nombre_licencies}}}}}|}}
  {{#if:{{{palmarès régional|}}}|
{{#if:{{{president|}}}|{{Infobox/ligne|libellé=Président|valeur={{{president}}}}}|}}
  <tr>
{{#if:{{{personnalites|}}}|{{Infobox/ligne|libellé=Personnalités|valeur={{{personnalites}}}}}|}}
    <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>
  }}


{{#if:{{{couleurs|}}}|{{Infobox/ligne|libellé=Couleurs|valeur={{{couleurs}}}}}|}}
  {{#if:{{{palmarès local|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Local</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{palmarès local}}}</td>
  </tr>
  }}


{{#if:{{{palmares_national|}}}|{{Infobox/ligne|libellé=Palmarès national|valeur={{{palmares_national}}}}}|}}
  {{#if:{{{site web|}}}|
{{#if:{{{palmares_regional|}}}|{{Infobox/ligne|libellé=Palmarès régional|valeur={{{palmares_regional}}}}}|}}
  <tr>
{{#if:{{{palmares_local|}}}|{{Infobox/ligne|libellé=Palmarès local|valeur={{{palmares_local}}}}}|}}
    <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>
{{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            =  
}}
}}
</pre>
</noinclude>
<noinclude>
{{Documentation}}
</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.