Template:BTD6 mk list: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{generic cargo list |table=btd6_mk, btd6_mk__prerequisites=prereq |extra col 1=CONCAT(CASE WHEN cost = 0 THEN "Free" ELSE CONCAT("x20px|link=Monkey Money (BTD6)|Monkey Money ", FORMAT(cost, 0)) END) = Cost |extra col 2=IF(btd6_mk.points_required = 0 AND (btd6_mk.prerequisites__full IS NULL OR btd6_mk.prerequisites__full = ""), "—", CONCAT( IF(btd6_mk.points_required > 0, CONCAT("*File:BTD6_KnowledgeIcon.png|20px|link=Mo..." |
mNo edit summary |
||
| Line 9: | Line 9: | ||
|limit={{{limit|}}} | |limit={{{limit|}}} | ||
|where=NOT unused {{#if:{{{category|}}}|AND btd6_mk.category = "{{{category|}}}"}} {{#if:{{{include|}}}| {{#if:{{{exclude | |where=NOT unused {{#if:{{{category|}}}|AND btd6_mk.category = "{{{category|}}}"}} {{#if:{{{include|}}}| {{#if:{{{exclude others|}}}|AND|OR}} {{#invoke:cargo name list|main|btd6_mk.name|{{{include|x}}}}}}} | ||
|order by={{{order by|btd6_mk.points_required, btd6_mk.cost, btd6_mk.name, btd6_mk.introduced}}} | |order by={{{order by|btd6_mk.points_required, btd6_mk.cost, btd6_mk.name, btd6_mk.introduced}}} | ||
|group by=btd6_mk._pageName, btd6_mk.name, btd6_mk.image, btd6_mk.description, btd6_mk.cost, btd6_mk.points_required, btd6_mk.introduced, btd6_mk.prerequisites__full | |group by=btd6_mk._pageName, btd6_mk.name, btd6_mk.image, btd6_mk.description, btd6_mk.cost, btd6_mk.points_required, btd6_mk.introduced, btd6_mk.prerequisites__full | ||
|join on =btd6_mk._ID = prereq._RowID | |join on =btd6_mk._ID = prereq._RowID | ||
}}</includeonly><noinclude>{{/doc}}</noinclude> | }}</includeonly><noinclude>{{/doc}}</noinclude> | ||
Revision as of 11:55, 3 December 2025
Uses Cargo to display a list of Monkey Knowledge upgrades. Use the parameters to restrict which kinds of MK to list.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Category | category | Use this to only list MK that belongs to this category.
| String | optional |
| Order by | order by | A list of cargo table column names, separated by commas, to order this list by.
| String | optional |
| Limit | limit | The maximum number of MK to list. | Number | optional |
| Include | include | A list of MK names, separated by semicolons with no spaces, to also include in the list, ignoring the other conditions.
| String | optional |
| Exclude others | exclude others | Excludes all MK except those specifically included. | Boolean | optional |
Example usage
{{BTD6 mk list|category=Military}}
| Item | Cost | Prerequisites | Introduced |
|---|---|---|---|
| Free |
|
Launch | |
| Free | — | Launch | |
| Free |
|
Launch | |
| Free |
|
Launch | |
| Free | — | Launch | |
| Free | — | Version 22.0 | |
| Free | — | Launch | |
| Free | Launch | ||
| Free | Launch | ||
| Free | Version 6.0 | ||
| Free | Launch | ||
| Free | Version 22.0 | ||
| Free | Launch | ||
| Free | Launch | ||
| Version 22.0 | |||
| Launch | |||
| Version 6.0 | |||
| Launch | |||
| Launch | |||
| Launch | |||
| Version 6.0 | |||
| Launch | |||
| Version 22.0 | |||
| Launch | |||
| Version 15.0 | |||
| Launch | |||
| Launch | |||
| Version 17.0 | |||
| Launch | |||
| Launch |
{{BTD6 mk list|include=One More Spike;First Last Line of Defense;Hi-Value Mines;Very Shreddy|exclude others=y}}
| Item | Cost | Prerequisites | Introduced |
|---|---|---|---|
| Free |
|
Version 22.0 | |
| Free | — | Launch | |
| Launch | |||
| Launch |