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

De Wiki The-West FR
Aller à la navigation
Aucun résumé des modifications
Aucun résumé des modifications
 
Ligne 1 : Ligne 1 :
<includeonly><div style="position:relative; width:60px;">[[Fichier:Produit_Fond.png|60px|link={{{Lien|}}}]]
<includeonly><div style="display:inline-block;position:relative; width:60px;">[[Fichier:Produit_Fond.png|60px|link={{{Lien|}}}]]
{{#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;">[[Fichier:Produit_Eqp.png|30px|link=]]</div></div></includeonly><noinclude>
<div style="position:absolute; left:1px; top:1px;">[[Fichier:Produit_Eqp.png|30px|link=]]</div></div></includeonly><noinclude>

Dernière version du 3 janvier 2019 à 18:26

Utilisation

{{Produit EQP |Libellé_produit |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"


Exemple:

  • {{Produit EQP|Menottes}}
Produit Fond.png
Produit Eqp.png


  • {{Produit EQP|Abot noir|Img=Abot.png}}
Produit Fond.png
Abot noir
Produit Eqp.png