Will130Bot (discussion | contributions) m (→Examples) |
Will130Bot (discussion | contributions) m (→Examples) |
||
Ligne 113 : | Ligne 113 : | ||
</templatedata> |
</templatedata> |
||
--> |
--> |
||
− | <noinclude>{{MissingTranslations|pl|it|de|es|pt-br|ru|ja}}</noinclude> |
+ | <noinclude>{{MissingTranslations|pl|it|de|es|pt-br|ru|ja}}</noinclude><noinclude> |
+ | [[Catégorie:Documentation de modèles]] |
||
+ | </noinclude> |
Version du 25 septembre 2020 à 18:30
Link to an item page with an item image in front: Pierre
Also supports an optional quantity in front: 5 × Pierre
Usage
{{ItemLink|Pierre}}
Name | Type | Required | Default |
---|---|---|---|
0
|
string
|
true
|
|
text
|
string
|
false
|
The value of the first positional parameter, or the second if given |
link
|
string
|
false
|
The value of the first positional parameter |
image
|
string
|
false
|
The value of the first positional parameter suffixed with .png
|
size
|
string
|
false
|
20px |
quantity
|
string
|
false
|
Examples
Both lines produce the same output:
{{ItemLink|Pierre}}
= Pierre
{{ItemLink|Pierre|text=Pierre|link=Pierre|image=Pierre.png|size=20px|quantity=}}
= Pierre
Lowercase link:
{{ItemLink|Pierre|text=pierre}}
= pierre
{{ItemLink|Pierre|pierre}}
= pierre
Plural link:
{{ItemLink|Pierre|text=Pierres}}
= Pierres
Alternative: {{ItemLink|Pierre}}s
= Pierres
Quantity:
{{ItemLink|Pierre|quantity=5}}
= 5 × Pierre
{{ItemLink|Pierre|quantity=5-10}}
= 5-10 × Pierre
DLC-suffices are converted automatically to the according icon, if no explicit link-text is given
{{ItemLink|Sable (Scorched Earth)}}
= Sable
{{ItemLink|Sable (Scorched Earth)|Sable}}
= Sable
Ceci est une page documentaire, elle devrait être transcluse dans le modèle principal. Voir Modèle:Doc pour de plus amples renseignements.