Template:DropTable/display: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
Line 1: Line 1:
<!--## Normal Rows
<includeonly>{{#if:{{{raretable|}}}{{{megatable|}}}|<!-- ## MANUAL MODE ##
## Normal Rows
-->{{#if:{{{ignorebase|}}}||{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Base"
|format=template
|template=DropTable/testrow
|named args=yes
|default=|order by=_ID
}}}}<!--## Rare Rows
-->{{#if:{{{raretable|}}}|{{DropTable/separator|rarity=rare|{{{raretable|}}}}}{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Rare" AND (TableName HOLDS LIKE "%{{{raretable|}}}")
|format=template
|template=DropTable/testrow
|named args=yes
|default=|order by=_ID
}}|}}<!--## Mega-Rare Rows
-->{{#if:{{{megatable|}}}|{{DropTable/separator|rarity=mega|{{{megatable|}}}}}{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Mega" AND (TableName HOLDS LIKE "%{{{raretable|}}}" AND TableName HOLDS LIKE "%{{{megatable|}}}")
|format=template
|template=DropTable/testrow
|named args=yes
|default=|order by=_ID
}}|}}
|<!--
## AUTOMATIC SYSTEM BELOW ##
## Normal Rows
--><includeonly>{{#if:{{{ignorebase|}}}||{{#cargo_query:tables=DropTables
--><includeonly>{{#if:{{{ignorebase|}}}||{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
Line 8: Line 36:
|default=|order by=_ID
|default=|order by=_ID
}}}}<!--## Rare Rows
}}}}<!--## Rare Rows
-->{{#if:{{{raretable|y}}}|{{DropTable/separator|rarity=rare|{{{raretable|}}}}}{{#cargo_query:tables=DropTables
-->{{DropTable/separator|rarity=rare}}{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Rare" <!--AND (TableName HOLDS LIKE "%{{{raretable|}}}")-->
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Rare"
|format=template
|format=template
|template=DropTable/testrow
|template=DropTable/testrow
|named args=yes
|named args=yes
|default=|order by=_ID
|default=|order by=_ID
}}|}}<!--## Mega-Rare Rows
}}<!--## Mega-Rare Rows
-->{{#if:{{{megatable|y}}}|{{DropTable/separator|rarity=mega|{{{megatable|}}}}}{{#cargo_query:tables=DropTables
-->{{DropTable/separator|rarity=mega}}{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|fields=TableName=tablename, TableType=tabletype, DropImage=image, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype, SpecialSource=special
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Mega" <!--AND (TableName HOLDS LIKE "%{{{raretable|}}}" AND TableName HOLDS LIKE "%{{{megatable|}}}")-->
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Mega"
|format=template
|format=template
|template=DropTable/testrow
|template=DropTable/testrow
|named args=yes
|named args=yes
|default=|order by=_ID
|default=|order by=_ID
}}|}}</includeonly><noinclude>
}}}}</includeonly><noinclude>
<pre>
<pre>
   {{DropTable/display
   {{DropTable/display

Revision as of 05:29, 4 October 2021

  {{DropTable/display
    |raretable= Rare Table name
    |megatable= Super Rare Table name
    |source= Only needed if it is different from the page name (Ex: Chaotic Amarok on the Amarok page)
             This is only for the base monster table and not any Rare or Super/Mega Rare tables.
    |ignorebase= In the event you wish to display the Rare or Mega/Super rare tables with the
                 adjusted chance rates, but not the base monster's drops.
  }}