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

De Inkipédia
(traduction)
m (Fxfxfx0 a déplacé la page Modèle:Infobox personnage vers Modèle:Infobox/Character : Simplifie l'importation de pages en anglais)
 
(5 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
{| class="infobox" align="right"
<includeonly>{{Infobox|open|color={{{color|}}}|style={{{style|}}}|title={{{title|}}}|image={{{image|}}}|caption={{{caption|}}}}}
|-
{| style="border-spacing: 4px;"
! colspan="2" class="infobox1" |  {{{name|{{PAGENAME}}}}}
{{Infobox/Property|color={{{color|}}}|Espèce|{{{species|}}}}}
|- style="text-align:center;"
{{Infobox/Property|color={{{color|}}}|Habitat|{{{habitat|}}}}}
| colspan="2" style="padding:0.5em;" | {{#if: {{{image|}}}|[[{{{image}}}|250x250px]]<br/>''{{{caption| }}}''}}
{{Infobox/Property|color={{{color|}}}|Taille|{{{height|}}}}}
|-
{{Infobox/Property|color={{{color|}}}|Couleur des cheveux|{{{hair|}}}}}
| style="width:40%;" | '''Espèce'''
{{Infobox/Property|color={{{color|}}}|Couleur des yeux|{{{eye|}}}}}
| style="width:60%;" | {{{species}}}
{{Infobox/Property|color={{{color|}}}|Âge|{{{age|}}}}}
|- style=white-space:nowrap
{{Infobox/Property|color={{{color|}}}|Genre|{{{gender|}}}}}
{{#if: {{{Hair Color<includeonly>|</includeonly>}}} |
{{Infobox/Property|color={{{color|}}}|Pronoms|{{{pronouns|}}}}}
{{!}} '''Couleur de cheveux'''
{{Infobox/Property|color={{{color|}}}|Relations|{{{relations|}}}}}
{{!}} {{{Hair Color}}}
{{Infobox/Property|color={{{color|}}}|Emplacement|{{{location|}}}}}
}}
{{Infobox/Property|color={{{color|}}}|Boutique|{{{shop|}}}}}
|- style=white-space:nowrap
{{Infobox/Property|color={{{color|}}}|HP|{{{hp|}}}}}
{{#if: {{{Eye Color<includeonly>|</includeonly>}}} |
{{Infobox/Property|color={{{color|}}}|HP Max|{{{maximum_hp|}}}}}
{{!}} '''Couleur d'yeux'''
{{Infobox/Property|color={{{color|}}}|Membres|{{{members|}}}}}
{{!}} {{{Eye Color}}}
{{Infobox/Property|color={{{color|}}}|Autres|{{{other_forms|}}}}}
}}
|}
|-
</div>
{{#if: {{{age<includeonly>|</includeonly>}}} |
</includeonly><noinclude>__NOTOC__
{{!}} '''Age'''
Produces an infobox for a [[character]].
{{!}} {{{age}}}
 
}}
===Paramètres===
|-
{|
{{#if: {{{gender<includeonly>|</includeonly>}}} |
|- style="vertical-align: top;"
{{!}} '''Genre'''
|<code>color</code>||Optional.||An RGB triplet to use as the base color for formatting. The default color is {{t|SiteColor|Generic}}.
{{!}} {{{gender}}}
|- style="vertical-align: top;"
|<code>style</code>||Optional.||A CSS property list to apply to the top-level container.
|- style="vertical-align: top;"
|<code>title</code>||Optional.||The mode's title. If absent, the page name is used.
|- style="vertical-align: top;"
|<code>image</code>||Optional.||The filename to display. If not specified, an [[:File:Example.png|example image]] is used.
|- style="vertical-align: top;"
|<code>caption</code>||Optional.||Text displayed below the image.
|- style="vertical-align: top;"
|<code>species||Optional.||The [[species]] this character belongs to.
|- style="vertical-align: top;"
|<code>height||Optional.||This character's height (please format as 123cm (4'5") ).
|- style="vertical-align: top;"
|<code>hair</code>||Optional.||The hair color of the character.
|- style="vertical-align: top;"
|<code>eye</code>||Optional.||The eye color of the character.
|- style="vertical-align: top;"
|<code>age</code>||Optional.||The age of the character.
|- style="vertical-align: top;"
|<code>habitat</code>||Optional.||The habitat of the character.
|- style="vertical-align: top;"
|<code>gender</code>||Optional.||The gender of the character.
|- style="vertical-align: top;"
|<code>pronouns</code>||Optional.||The pronouns of the character. May be used in addition to, or instead of, the gender parameter.
|- style="vertical-align: top;"
|<code>relations</code>||Optional.||The character's relations.
|- style="vertical-align: top;"
|<code>location</code>||Optional.||The [[location]] of the character.
|- style="vertical-align: top;"
|<code>shop</code>||Optional.||The [[shop]] that the character runs.
|- style="vertical-align: top;"
|<code>hp</code>||Optional.||How much HP the character has. (Used only for [[Octarian]]s and [[Salmonid]]s.)
|- style="vertical-align: top;"
|<code>maximum_hp</code>||Optional.||How much HP the character can have. (Used only for [[King Salmonid]]s.)
|- style="vertical-align: top;"
|<code>members</code>||Deprecated.||The members that make up the group.
|- style="vertical-align: top;"
|<code>other_forms</code>||Optional.||For alternative physical forms that this character may have.
|}
 
===Example===
====Markup====
<nowiki>{{Infobox/Character
|color    = {{SiteColor|Splatoon}}
|title    = Crusty Sean
|image    = CrustySean1.png
|caption  = Crusty Sean
|gender  = Male
|species  = Japanese Tiger Prawn
|shop    = {{Shop|game=S|name=Shrimp Kicks}}
|location = [[Booyah Base]]
}}</nowiki>
 
====Output====
{{Infobox/Character
|color    = {{SiteColor|Splatoon}}
|title    = Crusty Sean
|image    = CrustySean1.png
|caption  = Crusty Sean
|gender   = Male
|species  = Japanese Tiger Prawn
|shop    = {{Shop|game=S|name=Shrimp Kicks}}
|location = [[Booyah Base]]
}}
}}
|-
{{clr}}
{{#if: {{{location<includeonly>|</includeonly>}}} |
</noinclude>
{{!}} '''Emplacement'''
{{!}} {{{location}}}
}}
|-
{{#if: {{{shop<includeonly>|</includeonly>}}} |
{{!}} '''Boutique'''
{{!}} {{{shop}}}
}}
|-
{{#if: {{{members<includeonly>|</includeonly>}}} |
{{!}} '''Membres'''
{{!}} {{{members}}}
}}
|}<noinclude>{{-}}
 
{{documentation}}</noinclude>

Dernière version du 4 mai 2024 à 15:04

Produces an infobox for a character.

Paramètres

color Optional. An RGB triplet to use as the base color for formatting. The default color is {{SiteColor|<Generic>}}.
style Optional. A CSS property list to apply to the top-level container.
title Optional. The mode's title. If absent, the page name is used.
image Optional. The filename to display. If not specified, an example image is used.
caption Optional. Text displayed below the image.
species Optional. The species this character belongs to.
height Optional. This character's height (please format as 123cm (4'5") ).
hair Optional. The hair color of the character.
eye Optional. The eye color of the character.
age Optional. The age of the character.
habitat Optional. The habitat of the character.
gender Optional. The gender of the character.
pronouns Optional. The pronouns of the character. May be used in addition to, or instead of, the gender parameter.
relations Optional. The character's relations.
location Optional. The location of the character.
shop Optional. The shop that the character runs.
hp Optional. How much HP the character has. (Used only for Octarians and Salmonids.)
maximum_hp Optional. How much HP the character can have. (Used only for King Salmonids.)
members Deprecated. The members that make up the group.
other_forms Optional. For alternative physical forms that this character may have.

Example

Markup

{{Infobox/Character
|color    = {{SiteColor|Splatoon}}
|title    = Crusty Sean
|image    = CrustySean1.png
|caption  = Crusty Sean
|gender   = Male
|species  = Japanese Tiger Prawn
|shop     = {{Shop|game=S|name=Shrimp Kicks}}
|location = [[Booyah Base]]
}}

Output

Crusty Sean
CrustySean1.png
Crusty Sean
Espèce Japanese Tiger Prawn
Habitat
Taille
Couleur des cheveux
Couleur des yeux
Âge
Genre Male
Pronoms
Relations
Emplacement Booyah Base
Boutique
[[File:S Icon_{{{1}}}.png|20px|link={{{1}}}|{{{1}}}|right]] [[{{{1}}}]]
HP
HP Max
Membres
Autres