DragonListFromElements: Difference between revisions
From Dragon Mania Legends (DML) Wiki
CrystalClear (talk | contribs) mNo edit summary |
CrystalClear (talk | contribs) m (minor fix) |
||
Line 13: | Line 13: | ||
--->|cargocats LIKE "%{{#if:{{{breedable|}}}|Normally-Breedable|Standard}} Dragons%" AND third IS NULL AND (base="{{ucfirst:{{{base|}}}}}" AND second="{{ucfirst:{{{second|}}}}}" OR | --->|cargocats LIKE "%{{#if:{{{breedable|}}}|Normally-Breedable|Standard}} Dragons%" AND third IS NULL AND (base="{{ucfirst:{{{base|}}}}}" AND second="{{ucfirst:{{{second|}}}}}" OR | ||
second="{{ucfirst:{{{base|}}}}}" AND base="{{ucfirst:{{{second|}}}}}")}}<!-- | second="{{ucfirst:{{{base|}}}}}" AND base="{{ucfirst:{{{second|}}}}}")}}<!-- | ||
-->|cargocats LIKE "%{{#if:{{{breedable|}}}|Normally-Breedable|Standard}} Dragons%" AND | -->|cargocats LIKE "%{{#if:{{{breedable|}}}|Normally-Breedable|Standard}} Dragons%" AND base ="{{ucfirst:{{{base|}}}}}" AND second IS NULL AND third IS NULL}} | ||
"{{ucfirst:{{{base|}}}}}" AND second IS NULL AND third IS NULL}} | |||
|named args=yes | |named args=yes | ||
|group by=_pageName | |group by=_pageName |
Revision as of 17:28, 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 |