Template:Skill page: Difference between revisions

From Tears of Themis Wiki
imported>Elaeagnifolia
(Created page with "<noinclude>{{doc}}Category:Templates</noinclude><includeonly><nowiki/> __TOC__ ==Variations== {{{variations|}}} ==Cards with {{PAGENAME}}== {{#cargo_query:tables=Card |f...")
 
imported>Elaeagnifolia
Line 7: Line 7:
==Cards with {{PAGENAME}}==
==Cards with {{PAGENAME}}==
{{#cargo_query:tables=Card
{{#cargo_query:tables=Card
|fields=CONCAT('<div style="display:inline-block; padding: 4px; text-align: center;">[[File:', _pageName, ' icon.png|100px|link=]]<br/>[[', _pageName, ']]</div>')
|fields=CONCAT('<div>[[File:', _pageName, ' icon.png|60px|link=]]<br/>[[', _pageName, ']] (', skill1,')</div>')
|where=skill1 LIKE "{{PAGENAME}}%" OR skill2 LIKE "{{PAGENAME}}%" OR skill3 LIKE "{{PAGENAME}}%"
|where=skill1 LIKE "{{PAGENAME}}%"
|delimiter=
|delimiter=
|order by=rarity DESC, _pageName ASC
|order by=rarity DESC, _pageName ASC
|default=
}}
{{#cargo_query:tables=Card
|fields=CONCAT('<div>[[File:', _pageName, ' icon.png|60px|link=]]<br/>[[', _pageName, ']] (', skill2,')</div>')
|where=skill2 LIKE "{{PAGENAME}}%"
|delimiter=
|order by=rarity DESC, _pageName ASC
|default=
}}
{{#cargo_query:tables=Card
|fields=CONCAT('<div>[[File:', _pageName, ' icon.png|60px|link=]]<br/>[[', _pageName, ']] (', skill3,')</div>')
|where=skill3 LIKE "{{PAGENAME}}%"
|delimiter=
|order by=rarity DESC, _pageName ASC
|default=
}}
}}


[[Category:Skills]]</includeonly>
[[Category:Skills]]</includeonly>

Revision as of 03:28, 12 May 2021

Template-info.png Documentation

Description

Template used for skill pages. Can be easily loaded using the Boilerplate.