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

De Histo-Sport
Création du modèle
 
Aucun résumé des modifications
 
(27 versions intermédiaires par 2 utilisateurs 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;" | [[File:{{{logo}}}|180px|alt={{{nom|{{{nom_complet|}}}}}|link=]]
  </tr>
|-
  }}
}}
 
{{#if:{{{nom_complet|}}}
  {{#if:{{{accronyme|}}}|
| ! style="width:40%;" | Nom complet
  <tr>
| {{{nom_complet}}}
    <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:{{{acronyme|}}}
  }}
| ! | Acronyme
 
| {{{acronyme}}}
  {{#if:{{{anciens noms|}}}|
|-
  <tr>
}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Anciens noms</th>
{{#if:{{{ancien_nom|}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{anciens noms}}}</td>
| ! | Ancien nom
  </tr>
| {{{ancien_nom}}}
  }}
|-
 
}}
  {{#if:{{{fondation|}}}|
{{#if:{{{fondation|}}}
  <tr>
| ! | Fondation
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Fondation</th>
| {{{fondation}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{fondation}}}</td>
|-
  </tr>
}}
  }}
{{#if:{{{disparition|}}}
 
| ! | Disparition
  {{#if:{{{déclaration|}}}|
| {{{disparition}}}
  <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>
{{#if:{{{ville|}}}
  </tr>
| ! | Ville
  }}
| {{{ville}}}
 
|-
  {{#if:{{{disparition|}}}|
}}
  <tr>
{{#if:{{{siege_social|}}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Disparition</th>
| ! | Siège social
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{disparition}}}</td>
| {{{siege_social}}}
  </tr>
|-
  }}
}}
 
{{#if:{{{affiliation|}}}
  {{#if:{{{siège social|}}}{{{ville|}}}|
| ! | Affiliation
  <tr>
| {{{affiliation}}}
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Localisation</th>
|-
  </tr>
}}
  }}
{{#if:{{{disciplines|}}}
 
| ! | Disciplines
  {{#if:{{{siège social|}}}|
| {{{disciplines}}}
  <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>
{{#if:{{{sections|}}}
  </tr>
| ! | Sections
  }}
| {{{sections}}}
 
|-
  {{#if:{{{ville|}}}|
}}
  <tr>
{{#if:{{{nombre_licencies|}}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Ville</th>
| ! | Nombre de licenciés
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{ville}}}</td>
| {{{nombre_licencies}}}
  </tr>
|-
  }}
}}
 
{{#if:{{{president|}}}
  {{#if:{{{discipline|}}}{{{section|}}}{{{nombre de licenciés|}}}{{{président|}}}{{{personnalités|}}}|
| ! | Président
  <tr>
| {{{president}}}
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Informations</th>
|-
  </tr>
}}
  }}
{{#if:{{{personnalites|}}}
 
| ! | Personnalités
  {{#if:{{{discipline|}}}|
| {{{personnalites}}}
  <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>
{{#if:{{{couleurs|}}}
  </tr>
| ! | Couleurs
  }}
| {{{couleurs}}}
 
|-
  {{#if:{{{section|}}}|
}}
  <tr>
{{#if:{{{palmares_national|}}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Section</th>
| ! | Palmarès (national)
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{section}}}</td>
| {{{palmares_national}}}
  </tr>
|-
  }}
}}
 
{{#if:{{{palmares_regional|}}}
  {{#if:{{{nombre de licenciés|}}}|
| ! | Palmarès (régional)
  <tr>
| {{{palmares_regional}}}
    <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:{{{palmares_local|}}}
  }}
| ! | Palmarès (local)
 
| {{{palmares_local}}}
  {{#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:{{{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>
  }}


<noinclude>
  {{#if:{{{palmarès nationale|}}}|
== 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;">National</th>
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{palmarès nationale}}}</td>
  </tr>
  }}


Paramètres supportés (tous optionnels — seul ce qui est fourni s'affiche) :
  {{#if:{{{palmarès régional|}}}|
- nom — nom court / titre affiché de l'infobox (préféré)
  <tr>
- nom_complet — nom complet officiel
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Régional</th>
- logo — nom du fichier image (ex. Exemple_logo.png)
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{palmarès régional}}}</td>
- acronyme — sigle ou abréviation
  </tr>
- ancien_nom — ancien nom(s)
  }}
- fondation — date ou année de fondation
- disparition — date ou année de dissolution (si applicable)
- ville — localité / ville principale
- siege_social — adresse ou ville du siège social
- affiliation — fédération ou structure d'affiliation
- disciplines — liste des disciplines pratiquées (ex. Football, Basket)
- sections — liste des sections du club (ex. senior, jeunes, loisirs)
- nombre_licencies — nombre de licenciés (nombre ou fourchette)
- president — président / présidente
- personnalites — personnalités notables (joueurs, entraîneurs, dirigeants)
- couleurs — couleurs du club
- palmares_national — palmarès au niveau national
- palmares_regional — palmarès au niveau régional
- palmares_local — palmarès au niveau local


Remarques :
  {{#if:{{{palmarès local|}}}|
- Les noms de paramètres sont en minuscules et utilisent le underscore (_) pour les espaces.
  <tr>
- Pour inclure une URL du logo, charge d'abord le fichier dans le wiki (Spécial:Upload) puis indique seulement le nom du fichier (ex. ASE_logo.png).
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Local</th>
- Tu peux formater les champs (dates, listes, liens) directement lors de l'appel du modèle.
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{palmarès local}}}</td>
- Si tu souhaites, je peux :
   </tr>
   - ajouter des alias pour accepter des paramètres avec espaces ou sans accents,
   }}
  - formater automatiquement les dates (ex. conversion en ISO),
   - afficher le logo à gauche avec alignement texte,
  - ajouter la possibilité d'afficher le drapeau du pays à partir du paramètre affiliation.


== Exemple d'utilisation ==
  {{#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              =  
| acronyme = ASE
| accronyme          =  
| ancien_nom = Club de l'Exemple (1901–1950)
| anciens noms        =  
| fondation = 1901
| fondation           =  
| disparition =
| déclaration        =  
| ville = Lyon
| disparition        =  
| siege_social = 12 rue du Stade, Lyon
| siège social        =  
| affiliation = Fédération Française de Sport
| ville              =  
| disciplines = Football; Basketball; Athlétisme
| discipline          =  
| sections = Seniors; Jeunes; Féminines
| section            =  
| nombre_licencies = 420
| nombre de licenciés =  
| president = Jean Dupont
| président          =  
| personnalites = Marie Curie; Pierre Martin
| personnalités      =  
| couleurs = Bleu et blanc
| palmarès nationale  =  
| palmares_national = Champion de France D3 (1999)
| palmarès régional  =  
| palmares_regional = Champion régional (2005, 2012)
| palmarès local      =  
| palmares_local = Coupe locale (2010)
| site web            =  
| logo = ASE_logo.png
}}
}}
</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.