« Modèle:Infobox » : différence entre les versions
De gahan
Aller à la navigationAller à la recherche
Aucun résumé des modifications Balise : Révocation manuelle |
Aucun résumé des modifications Balise : Révocation manuelle |
||
(43 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<div | <noinclude> | ||
< | <div style="color: red;">MERCI DE '''NE PAS MODIFIER OU SUPPRIMER''' CE MODELE. IL SERT DE BASE A TOUS LES AUTRES. EN CAS DE PROBLEME AVEC LES INFOBOX MERCI DE CONTACTER '''Anthony'''.</div> | ||
< | |||
{{#if: {{{Image|}}} | | |||
Ce template n'est pas normalement destiné à être utilisé directement car il sert de base aux autres infobox. Il est néanmoins possible de l'utiliser pour créer sa propre infobox de façon dynamique. | |||
-->{{#if: {{{ | |||
Dans ce cas il faut utiliser le code suivant sachant que tous les champs sont optionnels: | |||
<pre> | |||
{{Infobox | |||
| BoxName = Donne le titre de la boîte. Apparaitra en rouge sur toute la longueur | |||
| Image = Affiche une image en-dessous du BoxName | |||
| BoxType = Affiche un sous-titre sous l'image | |||
| BoxColor = Permet de choisir entre 1 (Bordeaux) ou 2 (Bleu charron) | |||
| ParamName1 = Titre de ligne | |||
| Param1 = Texte lié au titre correspondant | |||
| ParamName2 = etc. | |||
| Param2 = etc. | |||
| ParamName3 = | |||
| Param3 = | |||
| ParamName4 = | |||
| Param4 = | |||
| ParamName5 = | |||
| Param5 = | |||
| ParamName6 = | |||
| Param6 = | |||
| ParamName7 = | |||
| Param7 = | |||
| ParamName8 = | |||
| Param8 = | |||
| ParamName9 = | |||
| Param9 = | |||
| ParamName10 = | |||
| Param10 = | |||
| ParamName11 = | |||
| Param11 = | |||
| Image2 = | |||
}} | |||
</pre> | |||
Par exemple, pour l'infobox Catfolk qui se trouve à droite : | |||
{{Infobox | |||
| BoxName = Catflok | |||
| Image = Tabaxi_0.jpg | |||
| BoxType = Race | |||
| BoxColor = 2 | |||
| ParamName1 = Ability mod. | |||
| Param1 = +2 DEX, +2 CHA, –2 WIS | |||
| ParamName2 = Type | |||
| Param2 = Humanoïd / Catfolk | |||
| ParamName3 = Size | |||
| Param3 = Medium | |||
| ParamName4 = Base Speed | |||
| Param4 = 30 feet | |||
| ParamName5 = Languages | |||
| Param5 = Common, Catfolk | |||
| ParamName6 = Racial Traits | |||
| Param6 = Cat's Luck (Ex) | |||
| ParamName7 = Feat & Traits | |||
| Param7 = Natural Hunter (+2 racial bonus to Perception, Stealth & Survival) | |||
| ParamName8 = Feat & Traits | |||
| Param8 = Sprinter (gain a 10-foot racial bonus to their speed when using the charge, run, or withdraw actions) | |||
| ParamName9 = Feat & Traits | |||
| Param9 = Low-Light Vision | |||
| ParamName10 = | |||
| Param10 = | |||
| ParamName11 = | |||
| Param11 = | |||
| Image2 = | |||
}} | |||
On utilisera ce code : | |||
<pre> | |||
{{Infobox | |||
| BoxName = Catflok | |||
| Image = Tabaxi_0.jpg | |||
| BoxType = Race | |||
| BoxColor = 2 | |||
| ParamName1 = Ability mod. | |||
| Param1 = +2 DEX, +2 CHA, –2 WIS | |||
| ParamName2 = Type | |||
| Param2 = Humanoïd / Catfolk | |||
| ParamName3 = Size | |||
| Param3 = Medium | |||
| ParamName4 = Base Speed | |||
| Param4 = 30 feet | |||
| ParamName5 = Languages | |||
| Param5 = Common, Catfolk | |||
| ParamName6 = Racial Traits | |||
| Param6 = Cat's Luck (Ex) | |||
| ParamName7 = Feat & Traits | |||
| Param7 = Natural Hunter (+2 racial bonus to Perception, Stealth & Survival) | |||
| ParamName8 = Feat & Traits | |||
| Param8 = Sprinter (gain a 10-foot racial bonus to their speed when using the charge, run, or withdraw actions) | |||
| ParamName9 = Feat & Traits | |||
| Param9 = Low-Light Vision | |||
| ParamName10 = | |||
| Param10 = | |||
| ParamName11 = | |||
| Param11 = | |||
| Image2 = | |||
}} | |||
</pre> | |||
</noinclude>{{#ifeq: {{{Masquer|}}} | Oui | | <!-- | |||
--><div class="infobox"><!-- | |||
-->{{#if: {{{BoxName|}}} | <div class="{{#switch: {{{BoxColor|}}} | 1 = infobox-title | 2 = infobox-title2 | infobox-title }}">{{{BoxName}}}</div>}}<!-- | |||
-->{{#if: {{{Image|}}} | [[Fichier:{{{Image}}}|class=infobox-img]]}}<!-- | |||
-->{{#if: {{{BoxName|}}} | <div class="{{#switch: {{{BoxColor|}}} | 1 = infobox-title | 2 = infobox-title2 | infobox-title }}">({{{BoxType}}})</div>}}<!-- | |||
-->{{#if: {{{Param1|}}} | <div class="infobox-30">{{{ParamName1}}}</div><div class="infobox-70">{{{Param1}}}</div> | |||
}}<!-- | |||
-->{{#if: {{{Param2|}}} | <div class="infobox-30">{{{ParamName2}}}</div><div class="infobox-70">{{{Param2}}}</div> | |||
}}<!-- | |||
-->{{#if: {{{Param3|}}} | <div class="infobox-30">{{{ParamName3}}}</div><div class="infobox-70">{{{Param3}}}</div> | |||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param4|}}} | <div class="infobox-30">{{{ParamName4}}}</div><div class="infobox-70">{{{Param4}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param5|}}} | <div class="infobox-30">{{{ParamName5}}}</div><div class="infobox-70">{{{Param5}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param6|}}} | <div class="infobox-30">{{{ParamName6}}}</div><div class="infobox-70">{{{Param6}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param7|}}} | <div class="infobox-30">{{{ParamName7}}}</div><div class="infobox-70">{{{Param7}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param8|}}} | <div class="infobox-30">{{{ParamName8}}}</div><div class="infobox-70">{{{Param8}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param9|}}} | <div class="infobox-30">{{{ParamName9}}}</div><div class="infobox-70">{{{Param9}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param10|}}} | <div class="infobox-30">{{{ParamName10}}}</div><div class="infobox-70">{{{Param10}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Param11|}}} | <div class="infobox-30">{{{ParamName11}}}</div><div class="infobox-70">{{{Param11}}}</div> | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{Image2|}}} | <div>{{{Image2}}}</div>}} | ||
}} | </div>}} | ||
Version actuelle datée du 16 novembre 2024 à 17:56
MERCI DE NE PAS MODIFIER OU SUPPRIMER CE MODELE. IL SERT DE BASE A TOUS LES AUTRES. EN CAS DE PROBLEME AVEC LES INFOBOX MERCI DE CONTACTER Anthony.
Ce template n'est pas normalement destiné à être utilisé directement car il sert de base aux autres infobox. Il est néanmoins possible de l'utiliser pour créer sa propre infobox de façon dynamique.
Dans ce cas il faut utiliser le code suivant sachant que tous les champs sont optionnels:
{{Infobox | BoxName = Donne le titre de la boîte. Apparaitra en rouge sur toute la longueur | Image = Affiche une image en-dessous du BoxName | BoxType = Affiche un sous-titre sous l'image | BoxColor = Permet de choisir entre 1 (Bordeaux) ou 2 (Bleu charron) | ParamName1 = Titre de ligne | Param1 = Texte lié au titre correspondant | ParamName2 = etc. | Param2 = etc. | ParamName3 = | Param3 = | ParamName4 = | Param4 = | ParamName5 = | Param5 = | ParamName6 = | Param6 = | ParamName7 = | Param7 = | ParamName8 = | Param8 = | ParamName9 = | Param9 = | ParamName10 = | Param10 = | ParamName11 = | Param11 = | Image2 = }}
Par exemple, pour l'infobox Catfolk qui se trouve à droite :
Catflok

(Race)
Ability mod.
+2 DEX, +2 CHA, –2 WIS
Type
Humanoïd / Catfolk
Size
Medium
Base Speed
30 feet
Languages
Common, Catfolk
Racial Traits
Cat's Luck (Ex)
Feat & Traits
Natural Hunter (+2 racial bonus to Perception, Stealth & Survival)
Feat & Traits
Sprinter (gain a 10-foot racial bonus to their speed when using the charge, run, or withdraw actions)
Feat & Traits
Low-Light Vision
On utilisera ce code :
{{Infobox | BoxName = Catflok | Image = Tabaxi_0.jpg | BoxType = Race | BoxColor = 2 | ParamName1 = Ability mod. | Param1 = +2 DEX, +2 CHA, –2 WIS | ParamName2 = Type | Param2 = Humanoïd / Catfolk | ParamName3 = Size | Param3 = Medium | ParamName4 = Base Speed | Param4 = 30 feet | ParamName5 = Languages | Param5 = Common, Catfolk | ParamName6 = Racial Traits | Param6 = Cat's Luck (Ex) | ParamName7 = Feat & Traits | Param7 = Natural Hunter (+2 racial bonus to Perception, Stealth & Survival) | ParamName8 = Feat & Traits | Param8 = Sprinter (gain a 10-foot racial bonus to their speed when using the charge, run, or withdraw actions) | ParamName9 = Feat & Traits | Param9 = Low-Light Vision | ParamName10 = | Param10 = | ParamName11 = | Param11 = | Image2 = }}