Template:Skill page: Difference between revisions

From Tears of Themis Wiki
imported>Elaeagnifolia
imported>Elaeagnifolia
No edit summary
Line 6: Line 6:


==Cards with {{PAGENAME}}==
==Cards with {{PAGENAME}}==
{{#cargo_query:tables=Card
{{#invoke:CargoQuery|main
|fields=CONCAT('<div style="display:inline-block; text-align: center; padding: 8px;">[[File:', _pageName, ' icon.png|80px|link=]]<br/>', skill1, '<br/>[[', _pageName, ']]</div>')
|q?tables=Card
|where=skill1 REGEXP "{{PAGENAME}} [^A-HJ-Za-hj-z]+" OR skill1="{{PAGENAME}}"
|q?fields=name=name,CONCAT(featuredCharacterShortName, '<br/>"', cardName, '"')=text
|delimiter=
|q?where=skill1 REGEXP "{{PAGENAME}} [^A-HJ-Za-hj-z]+" OR skill1="{{PAGENAME}}"
|order by=rarity DESC, _pageName ASC
|q?orderBy=rarity DESC, _pageName ASC
|default=
|template=Card icon
}}
}}
{{#cargo_query:tables=Card
{{#invoke:CargoQuery|main
|fields=CONCAT('<div style="display:inline-block; text-align: center; padding: 8px;">[[File:', _pageName, ' icon.png|80px|link=]]<br/>', skill2, '<br/>[[', _pageName, ']]</div>')
|q?tables=Card
|where=skill2 REGEXP "{{PAGENAME}} [^A-HJ-Za-hj-z]+" OR skill2="{{PAGENAME}}"
|q?fields=name=name,CONCAT(featuredCharacterShortName, '<br/>"', cardName, '"')=text
|delimiter=
|q?where=skill2 REGEXP "{{PAGENAME}} [^A-HJ-Za-hj-z]+" OR skill2="{{PAGENAME}}"
|order by=rarity DESC, _pageName ASC
|q?orderBy=rarity DESC, _pageName ASC
|default=
|template=Card icon
}}
}}
{{#cargo_query:tables=Card
{{#invoke:CargoQuery|main
|fields=CONCAT('<div style="display:inline-block; text-align: center; padding: 8px;">[[File:', _pageName, ' icon.png|80px|link=]]<br/>', skill3, '<br/>[[', _pageName, ']]</div>')
|q?tables=Card
|where=skill3 REGEXP "{{PAGENAME}} [^A-HJ-Za-hj-z]+" OR skill3="{{PAGENAME}}"
|q?fields=name=name,CONCAT(featuredCharacterShortName, '<br/>"', cardName, '"')=text
|delimiter=
|q?where=skill3 REGEXP "{{PAGENAME}} [^A-HJ-Za-hj-z]+" OR skill3="{{PAGENAME}}"
|order by=rarity DESC, _pageName ASC
|q?orderBy=rarity DESC, _pageName ASC
|default=
|template=Card icon
}}
}}


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

Revision as of 04:08, 7 August 2021

Template-info.png Documentation

Description

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