Difference between revisions of "Template:HuntSearch"
From Medivia Online Wiki
(Created page with "{{#cargo_query: |tables=HuntingSpots |fields=name=Name, level=Level, notes=Notes, location=Location, exp=EXP, loot=Loot, monsters=Monsters, background=Image |where=1=1 {{#if:{{{min_level|}}}| AND level >= {{{min_level}}} }} {{#if:{{{location|}}}| AND location='{{{location}}}' }} {{#if:{{{monster|}}}| AND monsters HOLDS '{{{monster}}}' }} |format=template |template=HuntCard |named args=yes }}") |
|||
| (27 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | |||
This is the 'HuntSearch' template. | |||
It should be called via the [[Form:HuntingSpotSearch]] form. | |||
</noinclude><includeonly> | |||
{{#cargo_query: | {{#cargo_query: | ||
|tables=HuntingSpots | |tables=HuntingSpots | ||
|fields=name=Name, | |fields=name=Name, minlevel=MinLevel, maxlevel=MaxLevel, team=Team, exp=EXP, loot=Loot, difficulty=Difficulty, background=Image, premium=Premium, notes=Notes, knight=Knight,mage=Mage,druid=Druid,archer=Archer,position=Position | ||
|where=1=1 | |where=1=1 AND name IS NOT NULL | ||
{{#if:{{{min_level|}}}| AND | {{#if: {{{min_level|}}} | AND minlevel >= {{{min_level}}} }} | ||
{{#if:{{{ | {{#if: {{{max_level|}}} | AND maxlevel <= {{{max_level}}} }} | ||
{{# | {{#switch: {{{team_size|}}} | ||
| Solo = AND team=1 | |||
| Duo = AND team=2 | |||
| Trio = AND team=3 | |||
| Team = AND team > 3 | |||
| All = AND team > 0 | |||
| #default = | |||
}} | |||
{{#switch: {{{vocation|}}} | |||
| Knight = AND knight=1 | |||
| Druid = AND druid=1 | |||
| Mage = AND mage=1 | |||
| Archer = AND archer=1 | |||
| Novus = AND novus=1 | |||
| All = | |||
| #default = | |||
}} | |||
|format=template | |format=template | ||
|template=HuntCard | |template=HuntCard | ||
|named args=yes | |named args=yes | ||
|order by=exp | |||
}} | }} | ||
</includeonly> | |||
Latest revision as of 08:35, 12 January 2026
This is the 'HuntSearch' template. It should be called via the Form:HuntingSpotSearch form.