« Modèle:Produit INV » : différence entre les versions

De Wiki The-West FR
Aller à la navigation
Aucun résumé des modifications
Aucun résumé des modifications
 
(12 versions intermédiaires par 4 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<includeonly><div style="position:relative; width:60px; text-align:center;">[[Fichier:Produit_Fond_Inv.png|60px|link={{{4|}}}]]
<includeonly><div style="display:inline-block;position:relative; width:60px; text-align:center;">[[Fichier:Produit_Fond_Inv.png|60px|link={{{4|}}}]]
<div style="position:absolute; left:4px; top:5px; text-align:center;">[[Fichier:{{{3|{{{1}}}.png}}}|55px|{{{1|}}}]]</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={{{4|}}}]]</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:21px; top:50px; color:black; font-size:13px; font-weight:bold; line-height:20px; text-align:center;">{{{2|1}}}</div></div><div style="clear:both"></div></includeonly><noinclude>
<div style="position:absolute; left:21px; top:50px; color:black; font-size:13px; font-weight:bold; line-height:20px; text-align:center;">{{{2|1}}}</div></div></includeonly>
<noinclude>
== Utilisation ==
== Utilisation ==
<code><nowiki>
<code><nowiki>{{</nowiki>Produit INV |'''''Libellé_produit''''' |'''''Quantité_produit (Optionnel)''''' |'''''Img=Image_produit (Optionnel)''''' |'''''Lien=Lien_produit (Optionnel)'''''}}</code>
{{</nowiki>Produit INV|'''''Libellé_Produit'''''|'''''Qté_Produit]'''''|'''''Image_Produit (Optionnel)'''''|'''''Lien_Produit (Optionnel)'''''}}</code>
*"Image_produit" peut ne pas être renseigné, auquel cas le nom du fichier image est généré comme suit: "Libellé_produit.png"<br>
*"Image_Produit" peut ne pas être renseigné, auquel cas le nom du fichier image est généré comme suit: "Libellé_Produit.png"<br>
*Une quantité de 1 est prise par défaut si non renseignée
<code><br>'''Exemple''':<br>
*Passez la souris sur l'image et vous obtenez un libellé, parfois différent de l'image en question :)<br>
*<nowiki>{{</nowiki>Produit INV|Menottes|8}}</code><br>
<br>'''Exemple''':<br>
<code>{{Produit INV|Menottes|8}}
*<code><nowiki>{{</nowiki>Produit INV|Menottes|8}}</code><br>
<br>
{{Produit INV|Menottes|8}}
*<nowiki>{{</nowiki>Produit INV|Abot noir|1|Abot.png}}</code><br>
*<code><nowiki>{{</nowiki>Produit INV|Abot noir|Img=Abot.png}}</code><br>
<code>{{Produit INV|Abot noir|1|Abot.png}}</code>
{{Produit INV|Abot noir|Img=Abot.png}}


[[Catégorie:Modèles]]</noinclude>
[[Catégorie:Modèles]]</noinclude>

Dernière version du 12 août 2023 à 21:23


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}}
Produit Fond Inv.png
Produit Inv.png
8
  • {{Produit INV|Abot noir|Img=Abot.png}}
Produit Fond Inv.png
Abot noir
Produit Inv.png
1