Template:Encounterbox

{{#tag:tabber| {{#while: | {{{Area{{#var: area}}Temtem1Name|}}} | {{#if: {{{Area{{#var: area}}AreaName|}}} | {{{Area{{#var: area}}AreaName|}}} |Area {{#var: area}} }} = {{{!}} class="encounterbox-table" {{!}} class="areaName" colspan="5" {{!}}  {{#if: {{{Area{{#var: area}}AreaName|}}} | {{{Area{{#var: area}}AreaName|}}} |Area {{#var: area}} }} {{!}}- {{!}} {{!}}- {{!}} class="map" {{!}} {{!}} class="encounters" {{!}} {{#if: {{{Area{{#var: area}}Temtem1Name|}}} | {{{!}} class="encounterbox-temtem" {{!}} class="temtemName" style="width: 100%;" colspan="5" {{!}} }}} |}}| {{ucfirst:{{{Area{{#var: area}}Temtem1Name|}}} |}} {{!}}- {{!}} colspan="5" style="width: 100%;" {{!}} {{#if: {{{Area{{#var: area}}Temtem1Name|}}}|{{Temtem portrait|{{ucfirst:{{{Area{{#var: area}}Temtem1Name|}}}}}|140px|background=1}}}} {{!}}- {{!}} {{#if: {{{Area{{#var: area}}Temtem1Type1|}}} | {{!}} class="type" {{!}}{{type|{{{Area{{#var: area}}Temtem1Type1|}}}|40|0}}|}} {{#if: {{{Area{{#var: area}}Temtem1Type2|}}} | {{!}} class="type" {{!}}{{type|{{{Area{{#var: area}}Temtem1Type2|}}}|40|0}}|}} {{!}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem1Rate|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem1Rate|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem1Levels|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem1Levels|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem1Name|}}} | {{!}} colspan="5" style="width: 100%;" {{!}} {{#invoke:CargoQuery|main|q?tables=Temtem|q?fields=tvHP,tvSTA,tvSPD,tvATK,tvDEF,tvSPATK,tvSPDEF|q?where=name="{{{Area{{#var: area}}Temtem1Name|}}}"|q?limit=1|template=Encounterbox/TV row}} }} {{!}}} |}}{{#if: {{{Area{{#var: area}}Temtem2Name|}}} | {{#if: {{{Area{{#var: area}}Temtem1Name|}}} | {{{!}} class="encounterbox-temtem" {{!}} class="temtemName" colspan="5" style="width: 100%;" {{!}} }}} |}}| {{ucfirst:{{{Area{{#var: area}}Temtem2Name|}}} |}} {{!}}- {{!}} colspan="5" style="width: 100%;" {{!}} {{#if: {{{Area{{#var: area}}Temtem2Name|}}}|{{Temtem portrait|{{ucfirst:{{{Area{{#var: area}}Temtem2Name|}}}}}|140px|background=1}}}} {{!}}- {{!}} {{#if: {{{Area{{#var: area}}Temtem2Type1|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem2Type1|}}}|40|0}} |}} {{#if: {{{Area{{#var: area}}Temtem2Type2|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem2Type2|}}}|40|0}} |}} {{!}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem2Rate|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem2Rate|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem2Levels|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem2Levels|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem2Name|}}} | {{!}} colspan="5" style="width: 100%;" {{!}} {{#invoke:CargoQuery|main|q?tables=Temtem|q?fields=tvHP,tvSTA,tvSPD,tvATK,tvDEF,tvSPATK,tvSPDEF|q?where=name="{{{Area{{#var: area}}Temtem2Name|}}}"|q?limit=1|template=Encounterbox/TV row}} }} {{!}}}|}}|}}{{#if: {{{Area{{#var: area}}Temtem3Name|}}} | {{#if: {{{Area{{#var: area}}Temtem2Name|}}} | {{#if: {{{Area{{#var: area}}Temtem1Name|}}} | {{{!}} class="encounterbox-temtem" {{!}} class="temtemName" colspan="5" style="width: 100%;" {{!}} }}} |}}| {{ucfirst:{{{Area{{#var: area}}Temtem3Name|}}} |}} {{!}}- {{!}} colspan="5" style="width: 100%;" {{!}} {{#if: {{{Area{{#var: area}}Temtem3Name|}}}|{{Temtem portrait|{{ucfirst:{{{Area{{#var: area}}Temtem3Name|}}}}}|140px|background=1}}}} {{!}}- {{!}} {{#if: {{{Area{{#var: area}}Temtem3Type1|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem3Type1|}}}|40|0}} |}} {{#if: {{{Area{{#var: area}}Temtem3Type2|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem3Type2|}}}|40|0}} |}} {{!}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem3Rate|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem3Rate|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem3Levels|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem3Levels|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem3Name|}}} | {{!}} colspan="5" style="width: 100%;" {{!}} {{#invoke:CargoQuery|main|q?tables=Temtem|q?fields=tvHP,tvSTA,tvSPD,tvATK,tvDEF,tvSPATK,tvSPDEF|q?where=name="{{{Area{{#var: area}}Temtem3Name|}}}"|q?limit=1|template=Encounterbox/TV row}} }} {{!}}}|}}|}}|}}{{#if: {{{Area{{#var: area}}Temtem4Name|}}} | {{#if: {{{Area{{#var: area}}Temtem3Name|}}} |{{#if: {{{Area{{#var: area}}Temtem2Name|}}} | {{#if: {{{Area{{#var: area}}Temtem1Name|}}} | {{{!}} class="encounterbox-temtem" {{!}} class="temtemName" colspan="5" style="width: 100%;"{{!}} }}} |}}| {{ucfirst:{{{Area{{#var: area}}Temtem4Name|}}} |}} {{!}}- {{!}} colspan="5" style="width: 100%;" {{!}} {{#if: {{{Area{{#var: area}}Temtem4Name|}}}|{{Temtem portrait|{{ucfirst:{{{Area{{#var: area}}Temtem4Name|}}}}}|140px|background=1}}}} {{!}}- {{!}} {{#if: {{{Area{{#var: area}}Temtem4Type1|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem4Type1|}}}|40|0}} |}} {{#if: {{{Area{{#var: area}}Temtem4Type2|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem4Type2|}}}|40|0}} |}} {{!}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem4Rate|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem4Rate|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem4Levels|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem4Levels|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem4Name|}}} | {{!}} colspan="5" style="width: 100%;" {{!}} {{#invoke:CargoQuery|main|q?tables=Temtem|q?fields=tvHP,tvSTA,tvSPD,tvATK,tvDEF,tvSPATK,tvSPDEF|q?where=name="{{{Area{{#var: area}}Temtem4Name|}}}"|q?limit=1|template=Encounterbox/TV row}} }} {{!}}}|}}|}}|}}|}}{{#if: {{{Area{{#var: area}}Temtem5Name|}}} | {{#if: {{{Area{{#var: area}}Temtem4Name|}}} | {{#if: {{{Area{{#var: area}}Temtem3Name|}}} |{{#if: {{{Area{{#var: area}}Temtem2Name|}}} | {{#if: {{{Area{{#var: area}}Temtem1Name|}}} | {{{!}} class="encounterbox-temtem" {{!}} class="temtemName" colspan="5" style="width: 100%;" {{!}} }}} |}}| {{ucfirst:{{{Area{{#var: area}}Temtem5Name|}}} |}} {{!}}- {{!}} colspan="5" style="width: 100%;" {{!}} {{#if: {{{Area{{#var: area}}Temtem5Name|}}}|{{Temtem portrait|{{ucfirst:{{{Area{{#var: area}}Temtem5Name|}}}}}|140px|background=1}}}} {{!}}- {{!}} {{#if: {{{Area{{#var: area}}Temtem5Type1|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem5Type1|}}}|40|0}} |}} {{#if: {{{Area{{#var: area}}Temtem5Type2|}}} | {{!}} class="type" {{!}} {{type|{{{Area{{#var: area}}Temtem5Type2|}}}|40|0}} |}} {{!}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem5Rate|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem5Rate|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem5Levels|}}} | {{!}} colspan="5" class="row" style="width: 100%;" {{!}} {{{Area{{#var: area}}Temtem5Levels|}}} |}} {{!}}- {{#if: {{{Area{{#var: area}}Temtem5Name|}}} | {{!}} colspan="5" style="width: 100%;" {{!}} {{#invoke:CargoQuery|main|q?tables=Temtem|q?fields=tvHP,tvSTA,tvSPD,tvATK,tvDEF,tvSPATK,tvSPDEF|q?where=name="{{{Area{{#var: area}}Temtem5Name|}}}"|q?limit=1|template=Encounterbox/TV row}} }} {{!}}}|}}|}}|}}|}}|}} {{#vardefine: area | {{#expr: {{#var: area }} + 1 }} }} {{!}}-{{!}} }} }}