Difference between revisions of "Template:HuntSearch"
From Medivia Online Wiki
| Line 6: | Line 6: | ||
{{#cargo_query: | {{#cargo_query: | ||
|tables=HuntingSpots | |tables=HuntingSpots | ||
|fields=name=Name, minlevel=MinLevel, maxlevel=MaxLevel, team=Team, vocations=Vocations, exp=EXP, loot=Loot, difficulty=Difficulty, background=Background, premium=Premium, notes=Notes | |fields=name=Name, minlevel=MinLevel, maxlevel=MaxLevel, team=Team, vocations=Vocations, exp=EXP, loot=Loot, difficulty=Difficulty, background=Background, premium=Premium, notes=Notes, knight=Knight,mage=Mage,druid=Druid,archer=Archer | ||
|where=1=1 | |where=1=1 | ||
{{#if: {{{min_level|}}} | AND minlevel >= {{{min_level}}} }} | {{#if: {{{min_level|}}} | AND minlevel >= {{{min_level}}} }} | ||
{{#if: {{{max_level|}}} | AND maxlevel <= {{{max_level}}} }} | {{#if: {{{max_level|}}} | AND maxlevel <= {{{max_level}}} }} | ||
{{#if: {{{team_size|}}} | AND team='{{{team_size}}}' }} | {{#if: {{{team_size|}}} | AND team='{{{team_size}}}' }} | ||
{{# | {{#switch: {{{vocation|}}} | ||
| Knight = AND knight=1 | |||
| Druid = AND druid=1 | |||
| Mage = AND mage=1 | |||
| Archer = AND archer=1 | |||
| #default = | |||
}} | |||
|format=template | |format=template | ||
|template=HuntCard | |template=HuntCard | ||
Revision as of 10:12, 23 September 2025
This is the 'HuntSearch' template. It should be called via the Form:HuntingSpotSearch form.