Modèle:Avatar : Différence entre versions
De EncyclopAtys
(Page créée avec « <onlyinclude>{{#vardefine:sex|{{lc:{{{genre|none}}}}}}} {{#vardefine:zorro|{{lc:{{{race|none}}}}}}} <!-- TEMPLATE CODE -->{{ #switch:{{#var:sex}}<!-- -->| f<!--... ») |
|||
(7 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | <onlyinclude>{{#vardefine:sex|{{lc:{{{genre| | + | <onlyinclude>{{#vardefine:sex|{{lc:{{{genre| }}}}}}} {{#vardefine:zorro|{{lc:{{{race| }}}}}}} <!-- TEMPLATE CODE |
-->{{ #switch:{{#var:sex}}<!-- | -->{{ #switch:{{#var:sex}}<!-- | ||
-->| f<!-- | -->| f<!-- | ||
Ligne 19 : | Ligne 19 : | ||
-->| männlich<!-- | -->| männlich<!-- | ||
-->| masculin<!-- | -->| masculin<!-- | ||
− | -->| | + | -->| masculino<!-- |
− | |||
-->| мужской<!-- | -->| мужской<!-- | ||
-->| мужскои={{ #switch: {{#var:zorro}}<!-- | -->| мужскои={{ #switch: {{#var:zorro}}<!-- | ||
Ligne 37 : | Ligne 36 : | ||
}} | }} | ||
== Purpose == | == Purpose == | ||
− | This template returns a | + | This template returns a file name of an avatar picture to be used by default, for example in [[Template:Homin|Homin template]].<br /><br /> |
− | The template has two parameters: the genre of the character and | + | The template has two parameters: the genre of the character and its race (required). |
==Usage== | ==Usage== | ||
Ligne 48 : | Ligne 47 : | ||
M, Male, Männlich, Masculin, Masculino, Мужской | M, Male, Männlich, Masculin, Masculino, Мужской | ||
<race> is one of the following: | <race> is one of the following: | ||
− | fyros | + | fyros, matis, tryker, zorai, zoraï</syntaxhighlight> |
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- '''BEWARE''': Case matters !!! (except in languages codes). --> | <!-- '''BEWARE''': Case matters !!! (except in languages codes). --> | ||
− | ==Examples== | + | == Examples == |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | | 🇬🇧 || <code><nowiki>{{Avatar | genre=F | race=Fyros }}</nowiki></code> || [[File:Fyros | + | | 🇬🇧 || <code><nowiki>{{Avatar | genre=F | race=Fyros }}</nowiki></code> || [[File:{{Avatar | genre=F | race=Fyros }}|100px|frameless|none]] |
|- | |- | ||
− | | 🇩🇪 || <code><nowiki>{{Avatar | genre=weiblich | race=matis }}</nowiki></code> || [[File: | + | | 🇩🇪 || <code><nowiki>{{Avatar | genre=weiblich | race=matis }}</nowiki></code> || [[File:{{Avatar | genre=weiblich | race=matis }}|100px|frameless|none]] |
|- | |- | ||
− | | 🇪🇸 || <code><nowiki>{{Avatar | genre=Masculino | race=tryker }}</nowiki></code> || [[File: | + | | 🇪🇸 || <code><nowiki>{{Avatar | genre=Masculino | race=tryker }}</nowiki></code> || [[File:{{Avatar | genre=Masculino | race=tryker }}|100px|frameless|none]] |
|- | |- | ||
− | | 🇫🇷 || <code><nowiki>{{Avatar | genre=Féminin | race=zoraï }}</nowiki></code> || [[File: | + | | 🇫🇷 || <code><nowiki>{{Avatar | genre=Féminin | race=zoraï }}</nowiki></code> || [[File:{{Avatar | genre=Féminin | race=zoraï }}|100px|frameless|none]] |
|- | |- | ||
− | | 🇷🇺 || <code><nowiki>{{Avatar | genre=Мужской | race=zorai }}</nowiki></code> || [[File: | + | | 🇷🇺 || <code><nowiki>{{Avatar | genre=Мужской | race=zorai }}</nowiki></code> || [[File:{{Avatar | genre=Мужской | race=zorai }}|100px|frameless|none]] |
|} | |} | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Modèles]] [[Category:Utility templates]]</noinclude> |
Version actuelle datée du 6 mai 2021 à 16:38
Purpose
This template returns a file name of an avatar picture to be used by default, for example in Homin template.
The template has two parameters: the genre of the character and its race (required).
Usage
{{Avatar | genre=<genre> | race=<race> }}
where :
<genre> is among:
F, Female, Weiblich, Féminin, Femenino, Женский
M, Male, Männlich, Masculin, Masculino, Мужской
<race> is one of the following:
fyros, matis, tryker, zorai, zoraï
Examples
🇬🇧 | {{Avatar | genre=F | race=Fyros }} |
|
🇩🇪 | {{Avatar | genre=weiblich | race=matis }} |
|
🇪🇸 | {{Avatar | genre=Masculino | race=tryker }} |
|
🇫🇷 | {{Avatar | genre=Féminin | race=zoraï }} |
|
🇷🇺 | {{Avatar | genre=Мужской | race=zorai }} |