Modèle:Monstres/Résumé : Différence entre versions
[version vérifiée] | [version vérifiée] |
(103 révisions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | <div | + | <div class="monster-card" {{#if:{{{Spawn|}}}|data-spawn="{{filepath:Zonedapparition{{{Spawn}}}.png|nowiki}}"}}> |
− | <div class="fondfenetre" style=" | + | <div class="fondfenetre"> |
− | + | <div style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" data-name>[[{{{Nom}}}|<span style="color: white;">{{#if: {{{NomRéel|}}}|{{{NomRéel}}}|{{{Nom}}}}}</span>]]</div> | |
− | + | <div style="white-space: nowrap; padding-left: 5px;" data-level>{{#if:{{{Niveaux|}}}|({{{Niveaux}}})}}{{#if:{{{Coord|}}}|({{{Coord}}})}}</div> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div>{{#if: {{{Type|}}}| | </div>{{#if: {{{Type|}}}| | ||
<div style="display: flex; justify-content: space-between; margin-bottom: 5px;"> | <div style="display: flex; justify-content: space-between; margin-bottom: 5px;"> | ||
− | <div style="border: 1px black dashed; padding: 0 5px;"> | + | <div style="border: 1px black dashed; padding: 0 5px;" data-type>'''{{#switch:{{{Type}}} |
− | | | + | |M=[[Caractéristiques des monstres#Mal|Mal]] |
− | | | + | |D=[[Caractéristiques des monstres#Désert|Désert]] |
|Dh=[[Caractéristiques des monstres#Demi-humain|Demi-humain]] | |Dh=[[Caractéristiques des monstres#Demi-humain|Demi-humain]] | ||
− | | | + | |A=[[Caractéristiques des monstres#Animal|Animal]] |
− | |Aucun=[[Caractéristiques des monstres#Aucun|Aucun]] | + | |Mv=[[Caractéristiques des monstres#Mort-vivant|Mort-vivant]] |
− | |[[Image:Nonspecifie.png]] | + | |O=[[Caractéristiques des monstres#Orc|Orc]] |
+ | |My=[[Caractéristiques des monstres#Mystique|Mystique]] | ||
+ | |I=[[Caractéristiques des monstres#Insecte|Insecte]] | ||
+ | |Aucun=[[Caractéristiques des monstres#Aucun|Aucun type]] | ||
+ | |[[Image:Nonspecifie.png]] [[Catégorie:Informations manquantes]] | ||
}}'''</div> | }}'''</div> | ||
− | <div style="border: 1px black dashed; padding: 0 5px;"> | + | <div style="border: 1px black dashed; padding: 0 5px;" data-damage>'''{{#switch:{{{Dégât}}} |
− | |Melee=[[ | + | |Melee=[[Dégâts#Attaques de mêlée|Mêlée]] |
− | | | + | |Magique=[[Dégâts#Attaques magiques|Magique]] |
− | | | + | |Fleche=[[Dégâts#Attaques de type flèche|Flèche]] |
− | | | + | |[[Image:Nonspecifie.png]] [[Catégorie:Informations manquantes]] |
− | + | }}'''{{#if:{{{DC|}}}|{{Espace}}+ '''[[Dégâts#Attaques de compétences|DC]]'''}}</div> | |
− | }}'''{{#if:{{{DC|}}}| | ||
</div>}} | </div>}} | ||
− | <div style="background: rgba(0,0,0,.1) | + | <div style="background: rgba(0,0,0,.1); display: grid; justify-content: center; align-items: start;"> |
− | <div style="border-radius: 50px; overflow: hidden;">{{#if:{{{Image|}}}|[[Image:{{{Image}}}.png|link={{{Nom}}}]]|Pas d'image disponible}}</div> | + | <div style="border-radius: 50px; overflow: hidden; grid-area: 1 / -1;">{{#if:{{{Image|}}}|[[Image:{{{Image}}}.png|link={{{Nom}}}|200x200px]]|Pas d'image disponible}}</div> |
+ | {{#if: {{{Élément|}}}|<div style="grid-area: 1 / -1; padding: 5px 0; width: max-content; margin-left: auto;" data-elem>{{#switch:{{{Élément}}} | ||
+ | |G={{Glace}} | ||
+ | |F={{Foudre}} | ||
+ | |O={{Obscurité}} | ||
+ | |Feu={{Feu}} | ||
+ | |T={{Terre}} | ||
+ | |V={{Vent}} | ||
+ | |Aucun= | ||
+ | |[[Image:Nonspecifie.png]] [[Catégorie:Informations manquantes]] | ||
+ | }} {{#if:{{{Élément2|}}}|{{#switch:{{{Élément2}}} | ||
+ | |G={{Glace}} | ||
+ | |F={{Foudre}} | ||
+ | |O={{Obscurité}} | ||
+ | |Feu={{Feu}} | ||
+ | |T={{Terre}} | ||
+ | |V={{Vent}} | ||
+ | }}}}</div>}} | ||
</div> | </div> | ||
</div> | </div> | ||
Ligne 39 : | Ligne 51 : | ||
*Exemple : | *Exemple : | ||
{{Monstres/Résumé | {{Monstres/Résumé | ||
− | |Nom | + | |Nom=Renard gelé |
− | |||
|Niveaux=123, 2 | |Niveaux=123, 2 | ||
− | |Élément= | + | |Élément=G |
|Type=Aucun | |Type=Aucun | ||
|Dégât=Melee | |Dégât=Melee | ||
− | |Image= | + | |Image=Renardgele |
}} | }} | ||
<span style="color: #80c;">'''<nowiki>{{Monstres/Résumé</nowiki></span> | <span style="color: #80c;">'''<nowiki>{{Monstres/Résumé</nowiki></span> | ||
Ligne 53 : | Ligne 64 : | ||
<span style="margin-top: 10px; display: inline-block;"><span style="color: #80c;">'''|Coord='''851, 721</span> <span style="color: red;">//Coordonnées du PNJ.</span></span> | <span style="margin-top: 10px; display: inline-block;"><span style="color: #80c;">'''|Coord='''851, 721</span> <span style="color: red;">//Coordonnées du PNJ.</span></span> | ||
<span style="display: grid; grid-template-columns: min-content min-content auto; margin-top: 10px;"><span style="color: #80c; font-weight: bold; white-space: nowrap;">|Élément=</span><span style="color: #80c;">Glace</span><span style="color: red; padding-left: 8px;">//Élément du monstre, boss ou Metin.<br>//Glace<br>//Foudre<br>//Feu<br>//Obscurité<br>//Vent<br>//Terre<br>//Aucun</span></span> | <span style="display: grid; grid-template-columns: min-content min-content auto; margin-top: 10px;"><span style="color: #80c; font-weight: bold; white-space: nowrap;">|Élément=</span><span style="color: #80c;">Glace</span><span style="color: red; padding-left: 8px;">//Élément du monstre, boss ou Metin.<br>//Glace<br>//Foudre<br>//Feu<br>//Obscurité<br>//Vent<br>//Terre<br>//Aucun</span></span> | ||
+ | <span style="display: grid; grid-template-columns: min-content min-content auto; margin-top: 10px;"><span style="color: #80c; font-weight: bold; white-space: nowrap;">|Élément2=</span><span style="color: #80c;">Foudre</span><span style="color: red; padding-left: 8px;">//Item qu'au dessus si l'entité possède 2 éléments.</span></span> | ||
<span style="display: grid; grid-template-columns: min-content min-content auto;"><span style="color: #80c; font-weight: bold; white-space: nowrap;">|Type=</span><span style="color: #80c;">Mal</span><span style="color: red; padding-left: 8px;">//Type du monstre ou boss.<br>//Mal<br>//Désert<br>//Demi-humain<br>//Aucun</span></span> | <span style="display: grid; grid-template-columns: min-content min-content auto;"><span style="color: #80c; font-weight: bold; white-space: nowrap;">|Type=</span><span style="color: #80c;">Mal</span><span style="color: red; padding-left: 8px;">//Type du monstre ou boss.<br>//Mal<br>//Désert<br>//Demi-humain<br>//Aucun</span></span> | ||
<span style="display: grid; grid-template-columns: min-content min-content auto;"><span style="color: #80c; font-weight: bold; white-space: nowrap;">|Dégât=</span><span style="color: #80c;">Melee</span><span style="color: red; padding-left: 8px;">//Dégât du monstre ou boss.<br>//Melee<br>//Flèche<br>//Magique</span></span> | <span style="display: grid; grid-template-columns: min-content min-content auto;"><span style="color: #80c; font-weight: bold; white-space: nowrap;">|Dégât=</span><span style="color: #80c;">Melee</span><span style="color: red; padding-left: 8px;">//Dégât du monstre ou boss.<br>//Melee<br>//Flèche<br>//Magique</span></span> | ||
<span style="display: inline-block;"><span style="color: #80c;">'''|DC='''True</span> <span style="color: red;">//True si le monstre ou le boss peut effecter une ou plusieurs attaques de compétence, vide sinon.</span></span> | <span style="display: inline-block;"><span style="color: #80c;">'''|DC='''True</span> <span style="color: red;">//True si le monstre ou le boss peut effecter une ou plusieurs attaques de compétence, vide sinon.</span></span> | ||
<span style="margin-top: 10px; display: inline-block;"><span style="color: #80c;">'''|Image='''Renarddeglace</span> <span style="color: red;">//Nom de l'image du PNJ. L'image doit être en PNG.</span></span> | <span style="margin-top: 10px; display: inline-block;"><span style="color: #80c;">'''|Image='''Renarddeglace</span> <span style="color: red;">//Nom de l'image du PNJ. L'image doit être en PNG.</span></span> | ||
− | |||
− | |||
<span style="color: #80c; display: inline-block; margin-top: 10px;">'''}}'''</span> | <span style="color: #80c; display: inline-block; margin-top: 10px;">'''}}'''</span> | ||
</noinclude> | </noinclude> |
Version actuelle datée du 16 mai 2024 à 09:16
Utilisation du modèle
Le modèle Monstres/Résumé peut être utilisé dans le modèle Modèle:Carte (exemple : Ravin d'Aquilon). Il permet de lister les différentes entités présentes sur une carte (monstre, boss, Metin, PNJ, veine). Le modèle permet de définir une seule entité, il faut donc réécrire le modèle autant de fois qu'il y a d'entité. Le fonctionnement des arguments et les différentes entrées possibles sont décrites ci-dessous. Un exemple d'entrée est donné pour chaque argument.
- Exemple :
{{Monstres/Résumé |Nom=Renard gelé (glace) //Nom de la page de l'entité (un lien est créé vers cette page donc le nom doit être exact). |NomRéel=Renard gelé //Argument falcutatif. Nom réel de l'entité dans le jeu, à utiliser si le nom de la page est différent du nom réel. |Niveaux=123, 2 //Niveau, rang du monstres ou boss. |Coord=851, 721 //Coordonnées du PNJ. |Élément=Glace//Élément du monstre, boss ou Metin.
//Glace
//Foudre
//Feu
//Obscurité
//Vent
//Terre
//Aucun |Élément2=Foudre//Item qu'au dessus si l'entité possède 2 éléments. |Type=Mal//Type du monstre ou boss.
//Mal
//Désert
//Demi-humain
//Aucun |Dégât=Melee//Dégât du monstre ou boss.
//Melee
//Flèche
//Magique |DC=True //True si le monstre ou le boss peut effecter une ou plusieurs attaques de compétence, vide sinon. |Image=Renarddeglace //Nom de l'image du PNJ. L'image doit être en PNG. }}