Diferenças entre edições de "Predefinição:Infobox fish"
Saltar para a navegação
Saltar para a pesquisa
(better link for Comportamento) |
(sync with english template) |
||
Linha 1: | Linha 1: | ||
− | <includeonly><div id="infoboxborder"> | + | <includeonly><!-- |
+ | |||
+ | // TRANSLATIONS | ||
+ | -->{{#arraydefine:$lang_information | Informação }}<!-- | ||
+ | -->{{#arraydefine:$lang_foundin | Local(is) }}<!-- | ||
+ | -->{{#arraydefine:$lang_time | Hora }}<!-- | ||
+ | -->{{#arraydefine:$lang_season | Estação }}<!-- | ||
+ | -->{{#arraydefine:$lang_weather | Tempo }}<!-- | ||
+ | -->{{#arraydefine:$lang_difficulty | Dificuldade }}<!-- | ||
+ | -->{{#arraydefine:$lang_behavior | Comportamento }}<!-- | ||
+ | -->{{#arraydefine:$lang_behaviorlink | Peixes#Comportamento }}<!-- | ||
+ | -->{{#arraydefine:$lang_levelrequired | Nível de pesca requerido }}<!-- | ||
+ | -->{{#arraydefine:$lang_fishing | Pesca }}<!-- | ||
+ | -->{{#arraydefine:$lang_fishsize | Tamanho (cm)}}<!-- | ||
+ | -->{{#arraydefine:$lang_xp | Pontos de XP}}<!-- | ||
+ | -->{{#arraydefine:$lang_healingeffect | Efeito de Cura }}<!-- | ||
+ | -->{{#arraydefine:$lang_roe | Ovas }}<!-- | ||
+ | -->{{#arraydefine:$lang_agedroe | Ovas Maturadas }}<!-- | ||
+ | -->{{#arraydefine:$lang_caviar | Caviar }}<!-- | ||
+ | |||
+ | -->{{ParseInputValues|code=behav|| | ||
+ | ,Mixed, Misto, | ||
+ | ,Smooth, Suave, | ||
+ | ,Sinker, Pesado, | ||
+ | ,Floater, Flutuado, | ||
+ | ,Dart, Dardo, | ||
+ | }}{{ParseInputValues|code=legend|| | ||
+ | ,Crimsonfish, Peixe-carmim, | ||
+ | ,Angler, Tamboril, | ||
+ | ,Legend, Lenda, | ||
+ | ,Glacierfish, Peixe-gelo, | ||
+ | ,Mutant Carp, Carpa mutante, | ||
+ | }}<!-- | ||
+ | |||
+ | // set usemetric to true (or any nonempty value) if metric units should be used for fish size | ||
+ | -->{{#arraydefine:$lang_usemetric |true}}<!-- | ||
+ | |||
+ | // END of translations | ||
+ | // Initialize array variables | ||
+ | -->{{#arraydefine:$quality|{{ParseInputQuality|quality={{{quality|}}}|iridium={{{iridium|}}}|hide={{{hide|}}}}}}}<!-- | ||
+ | --><includeonly><div id="infoboxborder"> | ||
{| id="infoboxtable" | {| id="infoboxtable" | ||
− | |colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}} | + | | colspan="2" id="infoboxheader" | {{{name|{{PAGENAME}}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | + | | colspan="2" style="padding-bottom:5px; text-align: center;" | {{Autoimage|{{{image|}}}|eng={{{eng|}}}}} | |
|- | |- | ||
− | | | + | | colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;" | {{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} |
− | |||
− | | | ||
|- | |- | ||
− | |id=" | + | | colspan="2" id="infoboxsection" style="text-align:center;" | {{#arrayprint:$lang_information}}{{#if:{{{location|}}} |<nowiki /> |
− | |id="infoboxdetail" style=" | + | {{!}}- |
− | |id=" | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}: |
+ | {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}} | ||
+ | }}{{#if:{{{time|}}} |<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_time}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{{time|}}} | ||
+ | }}{{#if:{{{season|}}} |<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_season}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{Season|{{{season}}}}} | ||
+ | }}{{#if:{{{weather|}}} |<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_weather}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{Weather inline|{{{weather}}}}} | ||
+ | }}{{#if:{{{difficulty|}}} |<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_difficulty}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{{difficulty|}}} | ||
+ | }}{{#if:{{{behavior|}}} |<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} [[{{#arrayprint:$lang_behaviorlink}}|<span style="color: white;">{{#arrayprint:$lang_behavior}}</span>]]: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{ParseInputValues|code=behav|{{{behavior|}}}|default=true|translate=true}} | ||
+ | }}{{#if:{{{fl|}}}|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} [[{{#arrayprint:$lang_fishing}}|<span style="color: white;">{{#arrayprint:$lang_levelrequired}}</span>]]: | ||
+ | {{!}} id="infoboxdetail {{!}} {{{fl|}}} | ||
+ | }}{{#if:{{{size|}}}|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishsize}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} <!-- | ||
+ | -->{{#if:{{#arrayprint:$lang_usemetric}} | ||
+ | | {{#if:{{#pos:{{{size|}}}|-}} | ||
+ | | {{#expr:{{#explode:{{{size|}}}|-|0}}*2.54 round 0}} - {{#expr:{{#explode:{{{size|}}}|-|1}}*2.54 round 0}} | ||
+ | | {{#expr:{{{size|}}}*2.54 round 0}}}} | ||
+ | | {{{size|}}} | ||
+ | }}}}{{#if:{{{difficulty|}}}|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}}: | ||
+ | {{!}} id="infoboxdetail" {{!}}<!-- | ||
+ | --> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- | ||
+ | --> {{#arraydefine:$quality_values|{{ParseInputQuality|quality={{{quality|}}}|iridium={{{iridium|}}}}}}}<!-- | ||
+ | --> {{#arrayprint:$quality_values||@qual@<!-- | ||
+ | --> | {{#ifeq:@qual@|Normal|| [[File:@qual@ Quality.png|14px|link=|alt=@qual@]] }}<!-- | ||
+ | -->{{#expr: {{#if:{{#arrayprint:$legendary}}|5|1}} | ||
+ | * floor( 3 * (1 + {{#switch:@qual@|Normal=0|Silver=1|Gold=2|Iridium=4}}) | ||
+ | + {{{difficulty}}}/3) | ||
+ | }}}}}}{{#if:{{{edibility|}}}|<nowiki /> | ||
+ | {{!}}- | ||
+ | <!-- | ||
+ | |||
+ | // Display edibility. Use two-column format when many values: so not if poison/inedible/0 | ||
+ | -->{{#ifexpr:{{#iferror:{{#expr:{{{edibility|0}}}>0|0|1}}|0}} |<nowiki/> | ||
+ | {{!}} id="infoboxsection" colspan="2" style="text-align: center;" {{!}} {{#arrayprint:$lang_healingeffect}} | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{quality|{{{healq|true}}}}}} |iridium={{{iridium|}}} |statistics=Energy}} | ||
+ | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{quality|{{{healq|true}}}}}} |iridium={{{iridium|}}} |statistics=Health}} | ||
+ | |<nowiki/> | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_healingeffect}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{quality|{{{healq|true}}}}}} |iridium={{{iridium|}}}}} | ||
+ | }}}}<!-- | ||
+ | |||
+ | // custom_price if defined provides entire text of all price-related sections | ||
+ | -->{{#if:{{{custom_price|}}} | ||
+ | |{{{custom_price}}}<!-- | ||
+ | |||
+ | // Display all item prices: Base price plus all professions listed in {{{profession}}} | ||
+ | // Subtemplate automatically decides how to handle multiple columns, etc. | ||
+ | --> |{{Infosection price | ||
+ | |prof = Base, Fisher, Angler | ||
+ | |item = {{{eng|{{{name|{{#ifeq:{{CONTENTLANG}}|en|{{PAGENAME}}|{{{image|}}}}}}}}}}} | ||
+ | |link = {{{name|{{PAGENAME}}}}} | ||
+ | |price = {{{price|}}} | ||
+ | |iridium = {{{iridium|}}} | ||
+ | |quality = {{{quality|true}}} | ||
+ | |hide = {{{hideprice|}}} | ||
+ | |ncolumns = 3 | ||
+ | }}{{#if:{{{roe|}}}| | ||
+ | {{Infosection price | ||
+ | |prof = Base, Base, Artisan | ||
+ | |srcprice = {{{price|}}} | ||
+ | |auto = true | ||
+ | |artisan = true | ||
+ | |itemcell1 = Roe | ||
+ | |itemcell2 = {{#ifeq:{{{eng|{{{name|{{PAGENAME}}}}}}}}|Sturgeon|Caviar|Aged Roe}} | ||
+ | |itemcell3 = {{#ifeq:{{{eng|{{{name|{{PAGENAME}}}}}}}}|Sturgeon|Caviar|Aged Roe}} | ||
+ | |imageRoe = {{{roe}}} Roe | ||
+ | |linkRoe = {{#arrayprint:$lang_roe}} | ||
+ | |linkAged Roe={{#arrayprint:$lang_agedroe}} | ||
+ | |linkCaviar = {{#arrayprint:$lang_caviar}} | ||
+ | |ncolumns = 3 | ||
+ | }} | ||
+ | }}}} | ||
|} | |} | ||
− | + | </div>{{InfoboxSEO}}{{#seo: | |
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | |og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | ||
− | }}</includeonly><noinclude>{{Englishdoc}}{{ | + | }}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/> |
− | + | {{{{FULLPAGENAME}}/doc}} }}</noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− |
Revisão das 03h59min de 2 de outubro de 2020
Consulte a página de documentação em inglês para obter detalhes sobre este predefinição.
Uso
Este modelo pode ser usado inserindo o seguinte em uma página relevante.
{{Infobox fish}}
Resulta em...
Predefinição:ParseInputValuesPredefinição:ParseInputValues
Infobox fish | |
Predefinição:Autoimage | |
InformaçãoPredefinição:Infosection price |
Errr: {{#seo:}} deve conter pelo menos um atributo não vazio.