Modèle:Monstres/Résumé : Différence entre versions

[version vérifiée][version vérifiée]
 
(111 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<div style="border: 1px black solid; display: flex; flex-direction: column; padding: 5px;">
+
<div class="monster-card" {{#if:{{{Spawn|}}}|data-spawn="{{filepath:Zonedapparition{{{Spawn}}}.png|nowiki}}"}}>
<div class="fondfenetre" style="display: flex; justify-content: center; margin-bottom: 5px; line-height: 25px; padding: 0 5px; color: white; flex-wrap: nowrap;">
+
<div class="fondfenetre">
<div id="soulignement" style="margin-right: 8px;">[[{{{Nom}}}|{{#ifexist:{{{Nom}}}|<span style="color: white;">}}{{#if: {{{NomRéel|}}}|{{{NomRéel}}}|{{{Nom}}}}}</span>]] {{#if: {{{Niveaux|}}} | ({{{Niveaux}}})}}{{#if: {{{Coord|}}} | ({{{Coord}}}) }}</div>
+
<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>
{{#if: {{{Élément|}}}|<div style="flex-shrink: 0;">{{#switch:{{{Élément}}}
+
<div style="white-space: nowrap; padding-left: 5px;" data-level>{{#if:{{{Niveaux|}}}|({{{Niveaux}}})}}{{#if:{{{Coord|}}}|({{{Coord}}})}}</div>
|Glace={{Glace}}
 
|Foudre={{Foudre}}
 
|Obscurité={{Obscurité}}
 
|Feu={{Feu}}
 
|Terre={{Terre}}
 
|Vent={{Vent}}
 
|Aucun=
 
}}</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;">Type : '''{{#switch:{{{Type}}}
+
<div style="border: 1px black dashed; padding: 0 5px;" data-type>'''{{#switch:{{{Type}}}
|Mal=[[Caractéristiques des monstres#Mal|Mal]]
+
|M=[[Caractéristiques des monstres#Mal|Mal]]
|Désert=[[Caractéristiques des monstres#Désert|Désert]]
+
|D=[[Caractéristiques des monstres#Désert|Désert]]
|Aucun=[[Caractéristiques des monstres#Aucun|Aucun]]
+
|Dh=[[Caractéristiques des monstres#Demi-humain|Demi-humain]]
|[[Image:Nonspecifie.png]]
+
|A=[[Caractéristiques des monstres#Animal|Animal]]
 +
|Mv=[[Caractéristiques des monstres#Mort-vivant|Mort-vivant]]
 +
|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;">Dégât : '''{{#switch:{{{Dégât}}}
+
<div style="border: 1px black dashed; padding: 0 5px;" data-damage>'''{{#switch:{{{Dégât}}}
|Melee=[[Caractéristiques des monstres#Mêlée|Mêlée]]
+
|Melee=[[Dégâts#Attaques de mêlée|Mêlée]]
|Archer=[[Caractéristiques des monstres#Archer|Archer]]
+
|Magique=[[Dégâts#Attaques magiques|Magique]]
|[[Image:Nonspecifie.png]]
+
|Fleche=[[Dégâts#Attaques de type flèche|Flèche]]
}}'''{{#if:{{{DC|}}}|&nbsp;+ '''[[Caractéristiques des monstres#Compétence|DC]]'''}}</div>
+
|[[Image:Nonspecifie.png]] [[Catégorie:Informations manquantes]]
 +
}}'''{{#if:{{{DC|}}}|{{Espace}}+ '''[[Dégâts#Attaques de compétences|DC]]'''}}</div>
 
</div>}}
 
</div>}}
<div style="background: rgba(0,0,0,.1); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;">
+
<div style="background: rgba(0,0,0,.1); display: grid; justify-content: center; align-items: start;">
<div style="border-radius: 50px; overflow: hidden;">{{#ifexist:Image:{{{Image|}}}.png|[[Image:{{{Image}}}.png|{{#if:{{{Petit|}}}||270px}}|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 35 : Ligne 51 :
 
*Exemple :
 
*Exemple :
 
{{Monstres/Résumé
 
{{Monstres/Résumé
|Nom=Renard gelé (glace)
+
|Nom=Renard gelé
|NomRéel=Renard gelé
 
 
|Niveaux=123, 2
 
|Niveaux=123, 2
|Élément=Glace
+
|Élément=G
 
|Type=Aucun
 
|Type=Aucun
 
|Dégât=Melee
 
|Dégât=Melee
|Image=Renardgeleglace
+
|Image=Renardgele
 
}}
 
}}
 
  <span style="color: #80c;">'''<nowiki>{{Monstres/Résumé</nowiki></span>
 
  <span style="color: #80c;">'''<nowiki>{{Monstres/Résumé</nowiki></span>
Ligne 49 : 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: inline-block;"><span style="color: #80c;">'''|Type='''Aucun</span> <span style="color: red;">//Type du monstre ou boss.</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="margin-top: 10px; display: inline-block;"><span style="color: #80c;">'''|Dégât='''Mêlée</span> <span style="color: red;">//Dégâts du monstre ou boss.</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: 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="margin-top: 10px; display: inline-block;"><span style="color: #80c;">'''|Petit='''True</span> <span style="color: red;">//Argument falcutatif. Utiliser seulement si la largueur de l'image est inférieure à 270px.</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

[[{{{Nom}}}|{{{Nom}}}]]
Pas d'image disponible


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. }}