« 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 : | ||
{| | <includeonly>{{Infobox|open|color={{{color|}}}|style={{{style|}}}|title={{{title|}}}|image={{{image|}}}|caption={{{caption|}}}}} | ||
| | {| style="border-spacing: 4px;" | ||
{{Infobox/Property|color={{{color|}}}|Espèce|{{{species|}}}}} | |||
| | {{Infobox/Property|color={{{color|}}}|Habitat|{{{habitat|}}}}} | ||
| | {{Infobox/Property|color={{{color|}}}|Taille|{{{height|}}}}} | ||
| | {{Infobox/Property|color={{{color|}}}|Couleur des cheveux|{{{hair|}}}}} | ||
| | {{Infobox/Property|color={{{color|}}}|Couleur des yeux|{{{eye|}}}}} | ||
| | {{Infobox/Property|color={{{color|}}}|Âge|{{{age|}}}}} | ||
| | {{Infobox/Property|color={{{color|}}}|Genre|{{{gender|}}}}} | ||
{{ | {{Infobox/Property|color={{{color|}}}|Pronoms|{{{pronouns|}}}}} | ||
{{ | {{Infobox/Property|color={{{color|}}}|Relations|{{{relations|}}}}} | ||
{{ | {{Infobox/Property|color={{{color|}}}|Emplacement|{{{location|}}}}} | ||
}} | {{Infobox/Property|color={{{color|}}}|Boutique|{{{shop|}}}}} | ||
| | {{Infobox/Property|color={{{color|}}}|HP|{{{hp|}}}}} | ||
{{ | {{Infobox/Property|color={{{color|}}}|HP Max|{{{maximum_hp|}}}}} | ||
{{ | {{Infobox/Property|color={{{color|}}}|Membres|{{{members|}}}}} | ||
{{ | {{Infobox/Property|color={{{color|}}}|Autres|{{{other_forms|}}}}} | ||
}} | |} | ||
| | </div> | ||
{{ | </includeonly><noinclude>__NOTOC__ | ||
{{ | Produces an infobox for a [[character]]. | ||
{{ | |||
}} | ===Paramètres=== | ||
| | {| | ||
{{ | |- style="vertical-align: top;" | ||
{{ | |<code>color</code>||Optional.||An RGB triplet to use as the base color for formatting. The default color is {{t|SiteColor|Generic}}. | ||
{{ | |- 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}} | |||
</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
Espèce | Japanese Tiger Prawn |
Genre | Male |
Emplacement | Booyah Base |
Boutique | [[File:S Icon_{{{1}}}.png|20px|link={{{1}}}|{{{1}}}|right]] [[{{{1}}}]]
|