« Modèle:Produit INV » : différence entre les versions
Aller à la navigation
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<includeonly><div style=" | <includeonly><div style="position:relative; width:60px; text-align:center;">[[Fichier:Produit_Fond_Inv.png|60px|link={{{4|}}}]] | ||
{{#ifexist:Modèle:Item {{{1|}}}|<div style="position:absolute; left:2px; top:2px;"><small>{{Item {{{1|}}}|bg=0}}</small>|<div class="prod_error" data-err="{{{1|}}}" style="position:absolute; left:4px; top:5px;">[[Fichier:{{{Img|{{{1}}}.png}}}|55px|{{{1|}}}|link=]]}}</div> | {{#ifexist:Modèle:Item {{{1|}}}|<div style="position:absolute; left:2px; top:2px;"><small>{{Item {{{1|}}}|bg=0}}</small>|<div class="prod_error" data-err="{{{1|}}}" style="position:absolute; left:4px; top:5px;">[[Fichier:{{{Img|{{{1}}}.png}}}|55px|{{{1|}}}|link=]]}}</div> | ||
<div style="position:absolute; left:1px; top:1px; text-align:center;">[[Fichier:Produit_Inv.png|30px|link={{{Lien|}}}]]</div> | <div style="position:absolute; left:1px; top:1px; text-align:center;">[[Fichier:Produit_Inv.png|30px|link={{{Lien|}}}]]</div> |
Version du 3 janvier 2019 à 18:25
Utilisation
{{Produit INV |Libellé_produit |Quantité_produit (Optionnel) |Img=Image_produit (Optionnel) |Lien=Lien_produit (Optionnel)}}
- "Image_produit" peut ne pas être renseigné, auquel cas le nom du fichier image est généré comme suit: "Libellé_produit.png"
- Une quantité de 1 est prise par défaut si non renseignée
- Passez la souris sur l'image et vous obtenez un libellé, parfois différent de l'image en question :)
Exemple:
{{Produit INV|Menottes|8}}
8
{{Produit INV|Abot noir|Img=Abot.png}}
1