Template:DropTable/display: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{raretable|}}}{{{megatable|}}}|<!-- ## MANUAL MODE ##
<includeonly>{{#cargo_query:tables=NormalDropTables
## Normal Rows
|fields=DroppedItem=name, DropQuantity=quantity, DropRate=rate
-->{{#if:{{{ignorebase|}}}||{{#cargo_query:tables=DropTables
|where=DropSource="{{{source|{{PAGENAME}}}}}"
|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
|format=template
|template=DropTable/testrow
|template=DropTable/display/row
|outro=</table>
|named args=yes
|named args=yes
|default=|order by=_ID
|default=
}}}}<!--## Rare Rows
|order by=_ID
-->{{#if:{{{raretable|}}}|{{DropTable/separator|rarity=rare|{{{raretable|}}}}}{{#cargo_query:tables=DropTables
}}</includeonly><noinclude>
|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 ##
--><includeonly>{{#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 ({{#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
}}}}</includeonly><noinclude>
<pre>
<pre>
   {{DropTable/display
   {{DropTable/display
Line 42: Line 16:
             This is only for the base monster table and not any Rare or Super/Mega Rare tables.
             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
     |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.
                 adjusted chance rates, but not the base monster's drops. Also forms for Rare and Mega.
   }}
   }}
</pre></noinclude>
</pre></noinclude>

Latest revision as of 02:24, 24 March 2024

  {{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. Also forms for Rare and Mega.
  }}