Modèle:Liste Objet : Différence entre versions
m (ajout du paramètre statut (public/privé)) |
m |
||
Ligne 1 : | Ligne 1 : | ||
+ | {{Liste Objet | ||
+ | |Statut=Public | ||
+ | |Support= carotte dorée | ||
+ | }} | ||
+ | |||
<includeonly> | <includeonly> | ||
{{#if:{{{Support|}}} | {{#if:{{{Support|}}} | ||
Ligne 5 : | Ligne 10 : | ||
|category = Item Custom | |category = Item Custom | ||
|uses=Template:Fiche Objet | |uses=Template:Fiche Objet | ||
− | {{#if:{{{Statut|}}}|{{#ifeq:{{{Statut}}}|Public|notcategory= Privé|category=Privé}}|}} | + | |{{#if:{{{Statut|}}}|{{#ifeq:{{{Statut}}}|Public|notcategory= Privé|category= Privé}}|}} |
|includepage={Fiche Objet} div | |includepage={Fiche Objet} div | ||
|includematch=/\{{!}}\s*Support*\s*=\s*{{{Support}}}\s*[\n\x7c\x7d]?/s | |includematch=/\{{!}}\s*Support*\s*=\s*{{{Support}}}\s*[\n\x7c\x7d]?/s |
Version du 26 avril 2020 à 13:38
Modèle en boucle détecté : Modèle:Liste Objet
Template à utiliser pour obtenir une liste d'objet
{{Liste Objet |Métier= <nom du métier> |Support= (carotte dorée, larme de ghast, arme) |Statut = (Public/Privé) }}
trois critères facultatifs peuvent être renseignés :
Un métier, tous les items liés à ce métier seront listé.
Un support, pour les item customs.
Un statut, pour les item customs.
Ce modèle est lié à Modèle:Fiche Objet div.