DragonListFromElements: Difference between revisions
From Dragon Mania Legends (DML) Wiki
CrystalClear (talk | contribs) (Not sure if this will work since Cargo either wants named args or not (not both) -- this to test) Tag: Reverted |
CrystalClear (talk | contribs) (Undo revision 122198 by CrystalClear (talk) Nope, it's either named args or not, thought so) Tag: Undo |
||
Line 2: | Line 2: | ||
tables=DragonInfos | tables=DragonInfos | ||
|fields=_pageName=Page | |fields=_pageName=Page | ||
|where={{#if: | |where={{#if:{{{third|}}}<!-- | ||
-->|cargocats LIKE "%{{#if:{{{breedable|}}}|Normally-Breedable|Standard}} Dragons%" AND (base="{{{ | -->|cargocats LIKE "%{{#if:{{{breedable|}}}|Normally-Breedable|Standard}} Dragons%" AND (base="{{{base|}}}" AND second="{{{second|}}}" AND third="{{{third|}}}" OR | ||
base="{{{ | base="{{{base|}}}" AND second="{{{third|}}}" AND third="{{{second|}}}" OR | ||
base=" | base="{{{second|}}}" AND second="{{{third|}}}" AND third="{{{base|}}}" OR | ||
base=" | base="{{{second|}}}" AND second="{{{base|}}}" AND third="{{{third|}}}" OR | ||
base=" | base="{{{third|}}}" AND second="{{{base|}}}" AND third="{{{second|}}}" OR | ||
base=" | base="{{{third|}}}" AND second="{{{second|}}}" AND third="{{{base|}}}")<!-- | ||
-->|{{#if: | -->|{{#if:{{{second|}}}<!-- | ||
---->|cargocats LIKE "%{{#if:{{{breedable|}}} | Normally-Breedable | Standard}} Dragons%" AND | ---->|cargocats LIKE "%{{#if:{{{breedable|}}} | Normally-Breedable | Standard}} Dragons%" AND | ||
(third IS NULL AND (base="{{{ | (third IS NULL AND (base="{{{base|}}}" AND second="{{{second|}}}" OR | ||
second="{{{ | second="{{{base|}}}" AND base="{{{second|}}}")<!-- | ||
---->|cargocats LIKE "%{{#if:{{{breedable|}}} | Normally-Breedable | Standard}} Dragons%" AND | ---->|cargocats LIKE "%{{#if:{{{breedable|}}} | Normally-Breedable | Standard}} Dragons%" AND | ||
"{{{ | "{{{base|}}}" AND second IS NULL AND third IS NULL<!-- | ||
-->}}}} | -->}}}} | ||
|named args=yes | |named args=yes |
Revision as of 16:41, 7 September 2023
Template documentation |
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this template's documentation. (About template documentation) |
Example(s)
{{DragonListFromElements| Fire | Fire }}
gives:
{{DragonListFromElements| Fire }}
gives:
{{DragonListFromElements| Fire | Water }}
gives:
{{DragonListFromElements| Fire | Water | breedable = 1}}
gives:
{{DragonListFromElements| water | fire }}
gives:
{{DragonListFromElements| wind | earth }}
gives:
{{DragonListFromElements| wind | earth | breedable = true}}
gives:
{{DragonListFromElements| legendary | shadow | plant }}
gives:
{{DragonListFromElements| ancient | shadow | plant }}
gives:
{{DragonListFromElements| tyrant | light | wind }}
gives:
See Also
{{DragonListFromElements-DPL3}}
, the DPL3 template that was superseded by this one.{{BreedingCombinations}}
, the primary template that uses this one to produce different formats of breeding combinations.
Generates a Cargo-powered list of dragons based on the provided Element(s). Only Dragons that have ALL specified elements (and the same number of elements) are returned. Boss Dragons are excluded.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1st Specified Element | 1 | Name of the first Element to find, which is searched for in the "base", "second", and "third" columns of the "DragonInfos" Cargo table. As such, values are automatically converted to an uppercase first letter for matching purposes.
| String | required |
2nd Specified Element | 2 | Name of the second Element to find, which is searched for in the "base", "second", and "third" columns of the "DragonInfos" Cargo table. As such, values are automatically converted to an uppercase first letter for matching purposes.
| String | optional |
3rd Specified Element | 3 | Name of the third Element to find, which is searched for in the "base", "second", and "third" columns of the "DragonInfos" Cargo table. As such, values are automatically converted to an uppercase first letter for matching purposes. | String | optional |
breedable | breedable | If not empty, the list outputs only Dragons that are always breedable (Category:Normally-Breedable Dragons)
| Boolean | optional |