Template:Anima by Category Table: Difference between revisions
Jump to navigation
Jump to search
Added rarity, not sure how the second aspect should visually look on here so I'm leaving it out for now |
attempt to make a special table to special anima |
||
| Line 1: | Line 1: | ||
<includeonly>{{#DPL: | <includeonly> | ||
{{#switch:{{{1}}}|Special Anima= | |||
{{#DPL: | |||
|namespace = | |||
|uses =Template:Anima Infobox | |||
|category =Anima | |||
|category={{{1|}}} | |||
|category={{{category2|}}} | |||
|notcategory={{{not1|}}} | |||
|notcategory={{{not2|}}} | |||
|include ={Anima Infobox}:id:%PAGE%:name:rarity | |||
|table =<!-- | |||
-->class="article-table sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!-- | |||
-->Id<!-- | |||
-->,Icon<!-- | |||
-->,Name<!-- | |||
-->,Rarity<!-- | |||
|tablerow = <!-- | |||
-->%%<!-- | |||
-->,[[File:%PAGE% Anima Icon.png|link=%PAGE%|50px]]<!-- | |||
-->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!-- | |||
-->,[[File:Icon %% Stars.png|link=|x16px]] | |||
|resultsheader={{{resultsheader|'''%PAGES%''' [[Anima]] match the category selection:\n}}} | |||
|noresultsfooter={{{noresultsfooter|\nNo [[Anima]] match the category selection.}}} | |||
|tablesortcol={{{sort|1}}} | |||
|skipthispage=no | |||
}} | |||
|{{#DPL: | |||
|namespace = | |namespace = | ||
|uses =Template:Anima Infobox | |uses =Template:Anima Infobox | ||
| Line 27: | Line 54: | ||
|tablesortcol={{{sort|1}}} | |tablesortcol={{{sort|1}}} | ||
|skipthispage=no | |skipthispage=no | ||
}} | |||
}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | }}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | ||
Revision as of 18:51, 20 September 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Syntax
- 1: category
- category2: additional category
- category3: additional category
- not1: exclude category
- not2: additional exclude category
- resultsheader: custom results header
- oneresultheader: custom one result header
- noresultsfooter: custom no results header
- sort: custom sort
Examples
Example 1
{{Anima by Category Table|Satiation Anima}} yields:
6 Anima match the category selection:
| Id | Icon | Name | Rarity | Aspect | Trait |
|---|---|---|---|---|---|
| 001 | Puddlipup | ||||
| 014 | Vulberry | ||||
| 025 | Nomnom | ||||
| 026 | Pupanoo | ||||
| 044 | Frigull | ||||
| 079 | Hoggit |
Example 2
{{Anima by Category Table|Satiation Anima|category2 = Striker Anima}} yields:
No Anima match the category selection.
Example 3
{{Anima by Category Table|Satiation Anima|not1 = Striker Anima}} yields:
6 Anima match the category selection:
| Id | Icon | Name | Rarity | Aspect | Trait |
|---|---|---|---|---|---|
| 001 | Puddlipup | ||||
| 014 | Vulberry | ||||
| 025 | Nomnom | ||||
| 026 | Pupanoo | ||||
| 044 | Frigull | ||||
| 079 | Hoggit |
Example 4
{{Anima by Category Table|Special Anima}} yields:
1 Anima match the category selection:
| Id | Icon | Name | Rarity%% | File:%PAGE% Anima Icon.png | %% | File:Icon %% Stars.png |
|---|---|---|---|---|---|---|
| 042 | Petrilog | Petrilog | 3 |
Template Data
Filter Anima by category, displayed as a table.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The category to filter Anima by
| String | required |
| category2 | category2 | Additional category to filter Anima by
| String | optional |
| not1 | not1 | Exclude category | String | optional |
| not2 | not2 | Additional exclude category | String | optional |
| resultsheader | resultsheader | Custom results header (optional)
| String | optional |
| oneresultheader | oneresultheader | Custom one result header (optional)
| String | optional |
| noresultsfooter | noresultsfooter | Custom no results footer (optional)
| String | optional |