Différences entre versions de « Modèle:Infobox »

De Stardew Valley Wiki
Sauter à la navigation Sauter à la recherche
Ligne 74 : Ligne 74 :
 
         |{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }} }} }}
 
         |{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }} }} }}
 
}}
 
}}
{{#ifeq:{{lc:{{{profession|}}}}} | bear's knowledge
+
{{#switch:{{lc:{{{profession|}}}}}  
|<!-- Bear's Knowledge -->
+
| bear's knowledge =
 
     {{!}}-
 
     {{!}}-
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
Ligne 86 : Ligne 86 :
 
     <!-- Bear's Knowledge Prices -->
 
     <!-- Bear's Knowledge Prices -->
 
     {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{eng|}}}|{{#expr:trunc({{{sellprice|}}}*3)}}|iridium}}
 
     {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{eng|}}}|{{#expr:trunc({{{sellprice|}}}*3)}}|iridium}}
|{{#ifeq:{{lc:{{{profession|}}}}} | spring onion mastery
+
| spring onion mastery =
|<!-- Spring Onion Mastery -->
 
 
     {{!}}-
 
     {{!}}-
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
Ligne 98 : Ligne 97 :
 
     <!-- Spring Onion Mastery Prices -->
 
     <!-- Spring Onion Mastery Prices -->
 
     {{!}}id="infoboxdetail"{{!}}{{Qualityprice|Spring Onion|{{#expr:trunc({{{sellprice|}}}*5)}}|iridium}}
 
     {{!}}id="infoboxdetail"{{!}}{{Qualityprice|Spring Onion|{{#expr:trunc({{{sellprice|}}}*5)}}|iridium}}
|{{#ifeq:{{lc:{{{profession|}}}}} | tiller
+
| tiller
|<!-- Tiller Profession only -->
+
| cultivateur =
 
     {{!}}-
 
     {{!}}-
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
     {{!}}-
 
     {{!}}-
 
     {{!}}id="infoboxsection"{{!}}Base Price&nbsp;:
 
     {{!}}id="infoboxsection"{{!}}Base Price&nbsp;:
     {{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Tiller.png|24px|link=]] Tiller Profession:<br />''(+10 % Sell Price)''
+
     {{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Tiller.png|24px|link=]] Tiller Profession&nbsp;:<br />''(+10 % Sell Price)''
 
     {{!}}-
 
     {{!}}-
 
     <!-- Base Prices -->
 
     <!-- Base Prices -->
Ligne 121 : Ligne 120 :
 
     }}
 
     }}
 
   }}
 
   }}
<!-- Other than just Tiller profession -->
+
| artisan =
|{{#ifeq:{{lc:{{{profession|}}}}} | artisan
 
|<!-- Artisan Profession only -->
 
 
     {{!}}-
 
     {{!}}-
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
Ligne 145 : Ligne 142 :
 
     }}
 
     }}
 
   }}
 
   }}
<!-- Other than just Artisan profession -->
+
| rancher  
|{{#ifeq:{{lc:{{{profession|}}}}} | rancher
+
| éleveur de bétail =
|<!-- Rancher Profession only -->
 
 
     {{!}}-
 
     {{!}}-
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
     {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
Ligne 169 : Ligne 165 :
 
     }}
 
     }}
 
   }}
 
   }}
<!-- Other than just Rancher profession -->
+
|#default = {{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/>
|{{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/>
 
 
     {{!}}-
 
     {{!}}-
 
     {{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}Sell Prices
 
     {{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}Sell Prices
Ligne 201 : Ligne 196 :
 
     {{!}}-
 
     {{!}}-
 
     {{!}}id="infoboxsection"{{!}}{{#switch:{{lc:@@@}}
 
     {{!}}id="infoboxsection"{{!}}{{#switch:{{lc:@@@}}
     |rancher=[[File:Rancher.png|24px|link=]] Profession de éleveur de bétail
+
     |rancher|éleveur de bétai=[[File:Rancher.png|24px|link=]] Profession de éleveur de bétail
     |tiller=[[File:Tiller.png|24px|link=]] Profession de cultivateur
+
     |tiller|cultivateur=[[File:Tiller.png|24px|link=]] Profession de cultivateur
 
     |artisan=[[File:Artisan.png|24px|link=]] Profession de artisan
 
     |artisan=[[File:Artisan.png|24px|link=]] Profession de artisan
     |forester=[[File:Forester.png|24px|link=]] Profession de forestier
+
     |forester|forestier=[[File:Forester.png|24px|link=]] Profession de forestier
     |tapper=[[File:Tapper Icon.png|24px|link=]] Profession de saigneur
+
     |tapper|saigneur=[[File:Tapper Icon.png|24px|link=]] Profession de saigneur
     |blacksmith=[[File:Blacksmith Icon.png|24px|link=]] Profession de forgeron}}:<br /><span class="no-wrap" style="padding-right: 5px;">''(+{{#expr:{{#arrayprint:prof_mod}} *100}} % Sell Price)''</span>
+
     |blacksmith|forgeron=[[File:Blacksmith Icon.png|24px|link=]] Profession de forgeron}}:<br /><span class="no-wrap" style="padding-right: 5px;">''(+{{#expr:{{#arrayprint:prof_mod}} *100}} % Sell Price)''</span>
 
     {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 
     {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 
     | {{price| {{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}} }}
 
     | {{price| {{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}} }}
Ligne 213 : Ligne 208 :
 
   }}
 
   }}
 
}}
 
}}
}}<!-- end if bear's knowledge only -->
+
}}<!-- end profession switch case -->
}}<!-- end if spring onion only -->
 
}}<!-- end if tiller only -->
 
}}<!-- end if artisan only -->
 
}}<!-- end if rancher only -->
 
 
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}}
 
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}}
 
|sunflower=
 
|sunflower=
Ligne 389 : Ligne 380 :
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}}id="infoboxsection"{{!}}Ingredients&nbsp;:
+
{{!}}id="infoboxsection"{{!}}Ingrédients&nbsp;:
 
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}
 
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}
 
}}<!--Trapper Profession ingredients for Crab Pot-->{{#if:{{{tingredients|}}}|<nowiki/>
 
}}<!--Trapper Profession ingredients for Crab Pot-->{{#if:{{{tingredients|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}}id="infoboxsection"{{!}}[[File:Trapper.png|24px|link=]] Trapper Profession Ingredients&nbsp;:
+
{{!}}id="infoboxsection"{{!}}[[File:Trapper.png|24px|link=]] Ingrédients de la profession de trappeur&nbsp;:
 
{{!}}id="infoboxdetail"{{!}}{{{tingredients|}}}
 
{{!}}id="infoboxdetail"{{!}}{{{tingredients|}}}
 
}}{{#if:{{{produces|}}}|<nowiki/>
 
}}{{#if:{{{produces|}}}|<nowiki/>

Version du 6 mars 2019 à 22:55

Robin building.png
« « J'ai encore beaucoup de travail à faire »
— Robine

Traduction incomplète

Cet article ou cette section n'a pas été complètement traduit en français. Vous êtes invités à aider à sa traduction en la révisant.
Dernière modification par Margotbean le 2019-03-06 22:55:20.


Voir la page de documentation en anglais pour plus d'informations sur ce modèle.

Utiliser

Ce modèle peut être utilisé en entrant ce qui suit dans une page pertinente.

{{Infobox}}

Produit ...

Infobox
Fichier:.png
Information
Sell Price : N/A
Erreur : {{#seo:}} doit contenir au moins un attribut non-vide.