Vorlage:Infobox fish: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Besser link für Bewegung) |
(Revamp: new translation support, add roe, new templates, etc.) |
||
Zeile 1: | Zeile 1: | ||
− | <includeonly><div id="infoboxborder"> | + | <includeonly><!-- |
+ | |||
+ | // TRANSLATIONS | ||
+ | -->{{#arraydefine:$lang_information | Information }}<!-- | ||
+ | -->{{#arraydefine:$lang_foundin | Fundort }}<!-- | ||
+ | -->{{#arraydefine:$lang_time | Tageszeit }}<!-- | ||
+ | -->{{#arraydefine:$lang_season | Jahreszeit }}<!-- | ||
+ | -->{{#arraydefine:$lang_weather | Wetter }}<!-- | ||
+ | -->{{#arraydefine:$lang_difficulty | Schwierigkeit }}<!-- | ||
+ | -->{{#arraydefine:$lang_behavior | Bewegung }}<!-- | ||
+ | -->{{#arraydefine:$lang_behaviorlink | Fisch#Bewegung }}<!-- | ||
+ | -->{{#arraydefine:$lang_levelrequired | Stufe erforderlich }}<!-- | ||
+ | -->{{#arraydefine:$lang_fishing | Fischen }}<!-- | ||
+ | -->{{#arraydefine:$lang_fishsize | Größe (cm) }}<!-- | ||
+ | -->{{#arraydefine:$lang_xp | Erfahrungs­punkte }}<!-- | ||
+ | -->{{#arraydefine:$lang_healingeffect | Heilungs­effekt }}<!-- | ||
+ | -->{{#arraydefine:$lang_roe | Fischlaich }}<!-- | ||
+ | -->{{#arraydefine:$lang_agedroe | Gealterter Fischlaich }}<!-- | ||
+ | -->{{#arraydefine:$lang_caviar | Kaviar }}<!-- | ||
+ | |||
+ | -->{{ParseInputValues|code=behav|| | ||
+ | ,Mixed, Gemischt, | ||
+ | ,Smooth, Ruhig, | ||
+ | ,Sinker, Absenker, | ||
+ | ,Floater, Schwimmer, | ||
+ | ,Dart, Pfeilschnell, | ||
+ | }}{{ParseInputValues|code=legend|| | ||
+ | ,Crimsonfish, Purpurfisch, | ||
+ | ,Angler, Anglerfisch, | ||
+ | ,Legend, Legende, | ||
+ | ,Glacierfish, Gletscherfisch, | ||
+ | ,Mutant Carp, Mutantenkarpfen | ||
+ | }}<!-- | ||
+ | |||
+ | // 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;"|{{ | + | | 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}}}}}} | + | | colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;" | {{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} |
|- | |- | ||
− | |colspan="2" id="infoboxsection" style="text-align:center;"| | + | | colspan="2" id="infoboxsection" style="text-align:center;" | {{#arrayprint:$lang_information}}{{#if:{{{location|}}} |<nowiki /> |
− | + | {{!}}- | |
− | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}: | |
− | + | {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}} | |
− | + | }}{{#if:{{{time|}}} |<nowiki /> | |
− | {{!}}- | + | {{!}}-{ |
− | {{!}}id="infoboxsection"{{!}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_time}}: |
− | {{!}}id="infoboxdetail"{{!}}{{{ | + | {{!}} id="infoboxdetail" {{!}} {{{time|}}} |
− | + | }}{{#if:{{{season|}}} |<nowiki /> | |
− | {{!}}- | + | {{!}}- |
− | {{!}}id="infoboxsection"{{!}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_season}}: |
− | {{!}}id="infoboxdetail"{{!}}{{ | + | {{!}} 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|}}} |
− | {{!}}id=" | + | }}{{#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_fishing}}</span>]] {{#arrayprint:$lang_levelrequired}}: |
− | {{ | + | {{!}} id="infoboxdetail {{!}} {{{fl|}}} |
− | + | }}{{#if:{{{size|}}}|<nowiki /> | |
− | + | {{!}}- | |
− | {{!}}- | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishsize}}: |
− | {{!}}id="infoboxsection"{{!}}[[ | + | {{!}} id="infoboxdetail" {{!}} <!-- |
− | {{!}}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 /> | |
− | + | {{!}}- | |
− | -->{{#if:{{{ | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}}: |
− | + | {{!}} id="infoboxdetail" {{!}}<!-- | |
− | {{ | + | --> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- |
− | + | --> {{#arraydefine:$quality_values|Normal, Silver, Gold, Iridium}}<!-- | |
− | + | --> {{#arrayprint:$quality_values||@qual@<!-- | |
− | {{ | + | --> | {{#ifeq:@qual@|Normal|| [[File:@qual@ Quality.png|14px|link=|alt=@qual@]] }}<!-- |
− | {{ | + | -->{{#expr: {{#if:{{#arrayprint:$legendary}}|5|1}} |
− | {{!}}id=" | + | * floor( 3 * (1 + {{#switch:@qual@|Normal=0|Silver=1|Gold=2|Iridium=4}}) |
− | + | + {{{difficulty}}}/3) | |
− | + | }}}}}}{{#if:{{{edibility|}}}|<nowiki /> | |
− | -->{{#if:{{ | + | {{!}}- |
− | {{ | + | <!-- |
− | {{ | + | |
− | + | // 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={{{healq|true}}} |iridium={{{iridium|}}} |statistics=Energy}} | |
− | + | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{healq|true}}} |iridium={{{iridium|}}} |statistics=Health}} | |
− | + | |<nowiki/> | |
− | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_healingeffect}}: | |
− | + | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |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|}}}}}}}}}}} |
− | {{ | + | |price = {{{price|}}} |
− | {{ | + | |iridium = {{{iridium|}}} |
− | + | }}{{#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>{{ | + | }}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/> |
+ | {{{{FULLPAGENAME}}/doc}} }}</noinclude> |
Version vom 10. September 2020, 16:34 Uhr
Details zur Vorlage finden Sie auf der englischsprachigen Dokumentationsseite.
Verwendung
Diese Vorlage kann verwendet werden, indem Sie auf eine relevante Seite folgendes eingeben.
{{Infobox fish}}
Ergibt...
Vorlage:ParseInputValuesVorlage:ParseInputValues
Infobox fish | |
Vorlage:Autoimage | |
Information{{#if: | | |
Tageszeit: |
Fehler: Die Parser-Funktion {{#seo:}} muss zu mindestens einem Meta-Element einen Wert enthalten.