Aide:Infobox

Le WikiHalo rappelle à ses contributeurs que toute information ajoutée doit être officielle et vérifiable. Les contributions sans sources et les théories sur Halo Infinite seront rejetées.

Révision datée du 23 juillet 2019 à 16:55 par Lunaramethyst (discussion | contributions) (remplacement: <toggledisplay hidetext=[Masquer] showtext=[Voir]> → {{Collapse|showtext=Voir|hidetext=Masquer}}, <toggledisplay showtext=[Voir] hidetext=[Masquer]> → {{Collapse|showtext=Voir|hidetext=Masquer}}, </toggledisplay> → {{Collapse-end}} (2))

Une Infobox est un type de modèle présenté sous forme de tableau, situé en haut à droite d'un article et permettant de faire une synthèse de certaines caractéristiques (âge, taille, affiliation…). Chaque infobox est liée à un certain sujet (personnage, vaisseau), et toutes les pages concernant ce sujet doivent comprendre cette infobox.


Voici la liste des infobox existantes : Infobox


Utilisation

Chaque page d'infobox comprend un code d'affichage à copier/coller afin de faire apparaître l'infobox. Voici par exemple le code à copier/coller pour faire apparaître l'infobox Armes Covenantes :

«

{{infoboxarmecov
|nom=
|dénomination=
|image=
|degats=
|portée=
|précision=
|mode=
|cadence=
|recharge=
|longueur=
|hauteur=
|poids=
|portée effective=
|capacité=
|munitions max=
|type de munition=
|fréquence de tir=
|mode de tir=
|vélocité=
|zoom=
|fabriquant=
|jeux=
}}

»


  • Ne copiez jamais le code source de l'infobox sur la page.
  • Placez toujours l'infobox tout en haut de la page, mais après les messages d'avertissement (s’il y en a).


Une fois le code d'affichage copié/collé sur la page, les caractéristiques peuvent être ajoutées après le signe = de chaque ligne. Si vous ne savez pas quoi mettre dans une ligne, référez-vous aux instructions dans l'infobox d'exemple disponible sur la page de l'infobox.

  • Il n'est pas obligatoire de remplir toutes les lignes, et c'est généralement impossible.
  • Si une ligne ne concerne pas le sujet de l'article (par exemple la ligne "classe (Spartan)" d'infoboxpersoUNSC, réservée aux Spartans), alors vous pouvez la supprimer.
  • Lorsque vous prévisualisez une infobox, vérifiez que vous avez fermé toutes les balises des liens : une balise ouverte interférerait avec le fonctionnement de l'infobox.


Création

La création d'une infobox est un processus complexe. Voici par exemple le code source de l'infobox Modèle:InfoboxpersoUNSC :

«

<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"> <tr><td colspan="2"><div id="infoboxinternal"> <table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;"> <tr style="text-align:center; color:#ffffff; background:#338833; font-size:larger;"><th colspan="2">{{{nom}}}</th></tr> <tr style="text-align:center;"><td colspan="2" style="padding:0; background:#66cc66;">{{{image|}}}</td></tr> {{t|1=|1{{{hidea|}}}=<tr><th colspan="2" style="text-align:center; font-weight:normal; background:#66cc66;">'''Informations'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; width:100px; padding:0; border-top: 1px solid #999;">Naissance :  </td><td class="infoboxcell" style="width:150px; padding:0; align:center; height:15px; border-top: 1px solid #999;"> {{{naissance|}}} </td></tr>|1{{{naissance|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Décès :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{décès|}}} </td></tr>|1{{{décès|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Sexe :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{sexe|}}} </td></tr>|1{{{sexe|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Taille :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{taille|}}} </td></tr>|1{{{taille|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Poids :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{poids|}}} </td></tr>|1{{{poids|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Cheveux :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{cheveux|}}} </td></tr>|1{{{cheveux|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Yeux :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{yeux|}}} </td></tr>|1{{{yeux|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Groupe sanguin :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{groupe sanguin|}}} </td></tr>|1{{{groupe sanguin|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Affiliation :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{affiliation|}}} </td></tr>|1{{{affiliation|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Numéro de service :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{numéro de service|}}} </td></tr>|1{{{numéro de service|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Grade :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{grade|}}} </td></tr>|1{{{grade|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Vaisseaux :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{vaisseaux|}}} </td></tr>|1{{{vaisseaux|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Spécialité :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{spécialité|}}} </td></tr>|1{{{spécialité|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Classe :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{classe (spartan)|}}} </td></tr>|1{{{classe (spartan)|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Type :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{type (IA)|}}} </td></tr>|1{{{type (IA)|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Apparence :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{apparence (IA)|}}} </td></tr>|1{{{apparence (IA)|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Batailles :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{batailles|}}} </td></tr>|1{{{batailles|}}}=}} {{t|1=<tr style="padding:0; spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#eeffee}}}"><td style="text-align:right; padding:0;">Acteurs :  </td><td class="infoboxcell" style="padding:0; align:center; height:15px;"> {{{acteurs|}}} </td></tr>|1{{{acteurs|}}}=}} </table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:100%;"></td></tr></table>

»


À moins que vous ne possédiez un bon niveau en HTML, CSS et WikiCode, il est préférable de faire part des modifications à apporter à une infobox ou de la création d'une nouvelle infobox à un membre habitué.

Avant toute demande de création d'infobox, soyez sûr d'avoir listé les critères, et que votre infobox sera bien utile au Wiki.