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, level=Level, team=Team, vocation=Vocation,
  |fields=name=Name, minlevel=MinLevel, maxlevel=MaxLevel, team=Team, vocations=Vocations,
   location=Location, exp=EXP, loot=Loot, difficulty=Difficulty
   location=Location, exp=EXP, loot=Loot, difficulty=Difficulty, background=Background, premium=Premium, notes = Notes
  |where=1=1
  |where=1=1
   {{#if: {{{min_level|}}} | AND level >= {{{min_level}}} }}
   {{#if: {{{min_level|}}} | AND minlevel >= {{{min_level}}} }}
   {{#if: {{{max_level|}}} | AND level <= {{{max_level}}} }}
   {{#if: {{{max_level|}}} | AND maxlevel <= {{{max_level}}} }}
   {{#if: {{{team_size|}}} | AND team='{{{team_size}}}' }}
   {{#if: {{{team_size|}}} | AND team='{{{team_size}}}' }}
   {{#if: {{{vocation|}}} | AND vocation='{{{vocation}}}' }}
   {{#if: {{{vocation|}}} | AND vocation='{{{vocation}}}' }}

Revision as of 09:45, 23 September 2025

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