Difference between revisions of "Template:HuntSearch"

From Medivia Online Wiki
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
Line 5: Line 10:
  |where=1=1
  |where=1=1
   {{#if: {{{min_level|}}} | AND level >= {{{min_level}}} }}
   {{#if: {{{min_level|}}} | AND level >= {{{min_level}}} }}
   {{#if: {{{team|}}} | AND team='{{{team}}}' }}
   {{#if: {{{location|}}} | AND location LIKE '%{{{location}}}%' }}
   {{#if: {{{vocation|}}} | AND vocation='{{{vocation}}}' }}
  {{#if: {{{monster|}}} | AND monsters HOLDS '{{{monster}}}' }}
  {{#if: {{{team_size|}}} | AND team='{{{team_size}}}' }}
   {{#if: {{{vocation|}}} | AND vocation='{{{vocation}}}' }}
  |format=template
  |format=template
  |template=HuntCard
  |template=HuntCard
  |named args=yes
  |named args=yes
}}
}}
</includeonly>

Revision as of 20:17, 22 September 2025

This is the 'HuntSearch' template. It should be called via the Form:HuntingSpotSearch form.