Jump to content

Template:Anima by Category Table: Difference between revisions

From Honkai: Nexus Anima Wiki
Shirra (talk | contribs)
mNo edit summary
Kuhlau (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#DPL:
{{#switch:{{{1}}}|Special Anima=
|namespace       =  
{{#DPL:
|uses           = Template:Anima Infobox
|namespace =
|category       = Anima
|uses     =Template:Anima Infobox
|category       = {{{1|}}}
|category =Anima
|category       = {{{category2|}}}
|category={{{1|}}}
|category        = {{{category3|}}}
|category={{{category2|}}}
|notcategory     = {{{not1|}}}
|notcategory={{{not1|}}}
|notcategory     = {{{not2|}}}
|notcategory={{{not2|}}}
|include         = {{#ifeq:{{{1|}}}|Special Anima<!--
|include   ={Anima Infobox}:id:%PAGE%:name:rarity
-->|{Anima Infobox}:id:%PAGE%:name:rarity<!--
|table     =<!--
-->|{Anima Infobox}:id:%PAGE%:name:rarity:aspect:trait}}
-->class="article-table sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!--
|table           = {{#ifeq:{{{1|}}}|Special Anima<!--
-->|class="wikitable sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!--
-->Id<!--
-->Id<!--
-->,Icon<!--
-->,Icon<!--
-->,Name<!--
-->,Name<!--
-->,Rarity
-->,Rarity<!--
|tablerow  = <!--
-->|class="wikitable sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!--
-->%%<!--
-->,[[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 =
|uses      =Template:Anima Infobox
|category  =Anima
|category={{{1|}}}
|category={{{category2|}}}
|notcategory={{{not1|}}}
|notcategory={{{not2|}}}
|include  ={Anima Infobox}:id:%PAGE%:name:rarity:aspect:trait
|table    =<!--
-->class="article-table sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!--
-->Id<!--
-->Id<!--
-->,Icon<!--
-->,Icon<!--
Line 42: Line 23:
-->,Rarity<!--
-->,Rarity<!--
-->,Aspect<!--
-->,Aspect<!--
-->,Trait
-->,Trait}}
|tablerow = <!--
|tablerow       = {{#ifeq:{{{1|}}}|Special Anima<!--
-->%%<!--
-->|%%<!--
-->,[[File:%PAGE% Anima Icon.png|link=%PAGE%|50px]]<!--
-->,[[File:%PAGE% Anima Icon.png|link=%PAGE%|50px]]<!--
-->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!--
-->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!--
-->,[[File:Icon %% Stars.png|link=|x16px]]<!--
-->,[[File:Icon %% Stars.png|link=|x16px]]<!--
-->|%%<!--
-->,[[File:%PAGE% Anima Icon.png|link=%PAGE%|50px]]<!--
-->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!--
-->,²{Icon/Stars¦%%}²<!--
-->,[[File:%% Aspect Icon.png|class=attributeicon|link=%%|30px]] [[%%]]<!--
-->,[[File:%% Aspect Icon.png|class=attributeicon|link=%%|30px]] [[%%]]<!--
-->,[[File:%% Trait Icon.png|class=attributeicon|link=%%|30px]] [[%%]]
-->,[[File:%% Trait Icon.png|class=attributeicon|link=%%|30px]] [[%%]]}}
|resultsheader={{{resultsheader|'''%PAGES%''' [[Anima]] match the category selection:\n}}}
|resultsheader   = {{{resultsheader|'''%PAGES%''' [[Anima]] match the category selection:\n}}}
|noresultsfooter={{{noresultsfooter|\nNo [[Anima]] match the category selection.}}}
|oneresultheader = {{{oneresultheader|'''%PAGES%''' [[Anima]] matches the category selection:\n}}}
|tablesortcol={{{sort|1}}}
|noresultsfooter = {{{noresultsfooter|\nNo [[Anima]] match the category selection.}}}
|skipthispage=no
|tablesortcol   = {{{sort|1}}}
}}
|skipthispage   = no
}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>
}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>

Latest revision as of 17:54, 13 July 2026

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

Syntax

[edit source]
  • 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

[edit source]

Example 1

[edit source]

{{Anima by Category Table|Satiation Anima}} yields:
8 Anima match the category selection:

Id Icon Name Rarity Aspect Trait
File:Slidoof Anima Icon.png Slidoof Satiation File:Trait Icon.png [[]]
001 Puddlipup 4 Stars Satiation Protector
014 Vulberry 4 Stars Satiation Mastermind
025 Nomnom 4 Stars Satiation Explorer
026 Pupanoo 3 Stars Satiation Blaster
044 Frigull 4 Stars Satiation Mascot
060 Hamburgoof 5 Stars Satiation Blaster
079 Hoggit 5 Stars Satiation Explorer

Example 2

[edit source]

{{Anima by Category Table|Satiation Anima|category2 = Striker Anima}} yields:
No Anima match the category selection.

Example 3

[edit source]

{{Anima by Category Table|Satiation Anima|not1 = Striker Anima}} yields:
8 Anima match the category selection:

Id Icon Name Rarity Aspect Trait
File:Slidoof Anima Icon.png Slidoof Satiation File:Trait Icon.png [[]]
001 Puddlipup 4 Stars Satiation Protector
014 Vulberry 4 Stars Satiation Mastermind
025 Nomnom 4 Stars Satiation Explorer
026 Pupanoo 3 Stars Satiation Blaster
044 Frigull 4 Stars Satiation Mascot
060 Hamburgoof 5 Stars Satiation Blaster
079 Hoggit 5 Stars Satiation Explorer

Example 4

[edit source]

{{Anima by Category Table|Special Anima}} yields:
1 Anima matches the category selection:

Id Icon Name Rarity
042 Petrilog

Template Data

[edit source]

Filter Anima by category, displayed as a table.

Template parameters

ParameterDescriptionTypeStatus
11

The category to filter Anima by

Example
Special Anima, Satiation Anima
Stringrequired
category2category2

Additional category to filter Anima by

Example
Striker Anima
Stringoptional
not1not1

Exclude category

Stringoptional
not2not2

Additional exclude category

Stringoptional
resultsheaderresultsheader

Custom results header (optional)

Default
'''%PAGES%''' [[Anima]] match the category selection:\n
Stringoptional
oneresultheaderoneresultheader

Custom one result header (optional)

Default
'''%PAGES%''' [[Anima]] matches the category selection:\n
Stringoptional
noresultsfooternoresultsfooter

Custom no results footer (optional)

Default
\nNo [[Anima]] match the category selection.
Stringoptional