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

De Histo-Sport
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<includeonly>{| 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;"
<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;">
|-
  <tr>
! colspan="2" style="text-align: center; font-size: 125%; background-color: #B0C4DE; padding: 0.6em; border-bottom: 1px solid #aaa;" {{!}} {{{nom complet|{{PAGENAME}}}}}
    <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>
|-
  </tr>
{{#if:{{{image|}}}|
 
{{!}} colspan="2" style="text-align: center; padding: 0.8em;" {{!}} {{{image}}}
  {{#if:{{{image|}}}|
{{!}}-
  <tr>
}}
    <td colspan="2" style="text-align: center; padding: 0.8em;">{{{image}}}</td>
{{#if:{{{accronyme|}}}|
  </tr>
! scope="row" style="text-align: left; width: 40%; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Acronyme
  }}
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{accronyme}}}
 
{{!}}-
  {{#if:{{{accronyme|}}}|
}}
  <tr>
{{#if:{{{anciens noms|}}}|
    <th scope="row" style="text-align: left; width: 40%; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Acronyme</th>
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Anciens noms
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{accronyme}}}</td>
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{anciens noms}}}
  </tr>
{{!}}-
  }}
}}
 
{{#if:{{{fondation|}}}|
  {{#if:{{{anciens noms|}}}|
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Fondation
  <tr>
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{fondation}}}
    <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:{{{déclaration|}}}|
  }}
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Déclaration
 
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{déclaration}}}
  {{#if:{{{fondation|}}}|
{{!}}-
  <tr>
}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Fondation</th>
{{#if:{{{disparition|}}}|
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{fondation}}}</td>
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Disparition
  </tr>
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{disparition}}}
  }}
{{!}}-
 
}}
  {{#if:{{{déclaration|}}}|
{{#if:{{{siège social|}}}{{{ville|}}}|
  <tr>
! colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;" {{!}} Localisation
    <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:{{{siège social|}}}|
  }}
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Siège social
 
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{siège social}}}
  {{#if:{{{disparition|}}}|
{{!}}-
  <tr>
}}
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Disparition</th>
{{#if:{{{ville|}}}|
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{disparition}}}</td>
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Ville
  </tr>
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{ville}}}
  }}
{{!}}-
 
}}
  {{#if:{{{siège social|}}}{{{ville|}}}|
{{#if:{{{discipline|}}}{{{section|}}}{{{nombre de licenciés|}}}{{{président|}}}{{{personnalités|}}}|
  <tr>
! colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;" {{!}} Informations
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Localisation</th>
{{!}}-
  </tr>
}}
  }}
{{#if:{{{discipline|}}}|
 
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Discipline
  {{#if:{{{siège social|}}}|
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{discipline}}}
  <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:{{{section|}}}|
  </tr>
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Section
  }}
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{section}}}
 
{{!}}-
  {{#if:{{{ville|}}}|
}}
  <tr>
{{#if:{{{nombre de licenciés|}}}|
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Ville</th>
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Licenciés
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{ville}}}</td>
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{nombre de licenciés}}}
  </tr>
{{!}}-
  }}
}}
 
{{#if:{{{président|}}}|
  {{#if:{{{discipline|}}}{{{section|}}}{{{nombre de licenciés|}}}{{{président|}}}{{{personnalités|}}}|
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Président
  <tr>
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{président}}}
    <th colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;">Informations</th>
{{!}}-
  </tr>
}}
  }}
{{#if:{{{personnalités|}}}|
 
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Personnalités
  {{#if:{{{discipline|}}}|
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{personnalités}}}
  <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:{{{palmarès nationale|}}}{{{palmarès régional|}}}{{{palmarès local|}}}|
  </tr>
! colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;" {{!}} Palmarès
  }}
{{!}}-
 
}}
  {{#if:{{{section|}}}|
{{#if:{{{palmarès nationale|}}}|
  <tr>
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} National
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Section</th>
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{palmarès nationale}}}
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{section}}}</td>
{{!}}-
  </tr>
}}
  }}
{{#if:{{{palmarès régional|}}}|
 
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Régional
  {{#if:{{{nombre de licenciés|}}}|
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{palmarès régional}}}
  <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:{{{palmarès local|}}}|
  </tr>
! scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} Local
  }}
{{!}} style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;" {{!}} {{{palmarès local}}}
 
{{!}}-
  {{#if:{{{président|}}}|
}}
  <tr>
{{#if:{{{site web|}}}|
    <th scope="row" style="text-align: left; padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">Président</th>
! colspan="2" style="text-align: center; background-color: #E1E1E1; padding: 0.2em;" {{!}} Lien
    <td style="padding: 0.3em 0.5em; border-bottom: 1px dotted #ccc;">{{{président}}}</td>
{{!}}-
  </tr>
! scope="row" style="text-align: left; padding: 0.5em;" {{!}} Site web
  }}
{{!}} style="padding: 0.5em;" {{!}} {{{site web}}}
 
}}
  {{#if:{{{personnalités|}}}|
|}</includeonly>
  <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>
  }}
 
  {{#if:{{{palmarès régional|}}}|
  <tr>
    <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:{{{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:{{{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>

Version du 26 février 2026 à 14:51