Template:DropTable/display: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(48 intermediate revisions by one other user not shown)
Line 1: Line 1:
<!--
<includeonly>{{#cargo_query:tables=NormalDropTables
 
|fields=DroppedItem=name, DropQuantity=quantity, DropRate=rate
## Normal Rows
|where=DropSource="{{{source|{{PAGENAME}}}}}"
-->{{#if:{{{ignorebase|}}}||{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Base"
|format=template
|format=template
|template=DropTable/row
|template=DropTable/display/row
|outro=</table>
|named args=yes
|named args=yes
|default=
|default=
|order by=_ID
|order by=_ID
}}}}<!--
}}</includeonly><noinclude>
 
<pre>
## Rare Rows
  {{DropTable/display
-->{{#if:{{{ignorerare|}}}||{{#cargo_query:tables=DropTables
    |raretable= Rare Table name
|fields=TableName=tablename, TableType=tabletype, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype
    |megatable= Super Rare Table name
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Rare" AND (TableName HOLDS LIKE "%{{{raretable|}}}")
    |source= Only needed if it is different from the page name (Ex: Chaotic Amarok on the Amarok page)
|format=template
            This is only for the base monster table and not any Rare or Super/Mega Rare tables.
|template=DropTable/row
    |ignorebase= In the event you wish to display the Rare or Mega/Super rare tables with the
|named args=yes
                adjusted chance rates, but not the base monster's drops. Also forms for Rare and Mega.
|default=
  }}
|order by=_ID
</pre></noinclude>
}}}}<!--
 
## Mega-Rare Rows
-->{{#if:{{{ignoremega|}}}||{{#cargo_query:tables=DropTables
|fields=TableName=tablename, TableType=tabletype, DropItem=item, DropQuantity=quantity, DropRate=droprate, ItemType=itemtype
|where=DropSourceEntity="{{{source|{{PAGENAME}}}}}" AND TableType="Mega" AND (TableName HOLDS LIKE "%{{{raretable|}}}" AND TableName HOLDS LIKE "%{{{megatable|}}}")
|format=template
|template=DropTable/row
|named args=yes
|default=
|order by=_ID
|intro={{DropTable/separator|rarity=mega|{{{megatable|}}}}}
}}}}

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.
  }}