Template:DropTable/display: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
Line 27: Line 27:
|<!--
|<!--
## AUTOMATIC SYSTEM BELOW ##
## AUTOMATIC SYSTEM BELOW ##
## Normal Rows
--><includeonly>{{#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
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Base"
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND ({{#if:{{{ignorebase|}}}||TableType="Base"}} OR {{#if:{{{ignorerare|}}}||TableType="Rare"}} OR {{#if:{{{ignoremega|}}}||TableType="Mega"}})
|format=template
|template=DropTable/testrow
|named args=yes
|default=|order by=_ID
}}}}<!--## Rare Rows
-->{{#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"
|format=template
|template=DropTable/testrow
|named args=yes
|default=|order by=_ID
}}<!--## Mega-Rare Rows
-->{{#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"
|format=template
|format=template
|template=DropTable/testrow
|template=DropTable/testrow

Revision as of 19:44, 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.
  }}