Template:Creature Navbox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
imported>Lemonlich
(included mechas)
(replaced with a navbox template for use for a single faction, original was too expensive.)
Line 1: Line 1:
<div class="qud-box-wrapper"><div class="qud-box"><span class="qud-box-header"><b>Creatures</b></span><div class="qud-box-content" style="font-weight:bold; line-height:1.5em; padding:0em;">
<includeonly>{{Navbox
{| class="mw-collapsible mw-collapsed" style="border: 1px ; width: 100%;"
| name      = Creature Navbox
|-
| title      = Creatures in the {{{1|}}} Faction
|style="padding:.5em 1em;" colspan="3"|This navbox lists all the [[:Category:Creatures|Creatures]] in Caves of Qud. 
| listclass  = hlist
|-
| state      = {{{state|collapsed}}}
! rowspan="1" width="16%"| [[Antelopes]]
| titlestyle = background:rgba(6,28,23,0.9); font-family:Source Code Pro;
! width="10%" style="background: #F0E68C; color: black;"| Common
| groupstyle = background:rgba(6,28,23,0.8); font-family:Source Code Pro;
| {{Creature navbox query|Antelopes}}
| navbar    = plain
|-
| innerstyle = font-family:Source Code Pro;
! rowspan="1" width="15%"| [[Apes]]
 
! width="10%" style="background: #F0E68C; color: black;"| Common
| group1style = background:rgba(6,28,23,0.2);
| {{Creature navbox query|Apes}}
| group1    =Common
|-
| list1      =<span style="display:inline-block">{{Creature navbox query|{{{1|}}}}}
! rowspan="1" width="15%"| [[Arachnids]]
}}</includeonly><noinclude>
! width="10%" style="background: #F0E68C; color: black;"| Common
[[Category:Creature Navigation]]
| {{Creature navbox query|Arachnids}}
Template that makes a navigation box for the specified faction. It takes only one argument, which is the Faction name.
|-
 
! rowspan="1" width="15%"| [[Baboons]]
(TODO: Figure out how to write a query that excludes all Unique Characters)
! width="10%" style="background: #F0E68C; color: black;"| Common
</noinclude>
| {{Creature navbox query|Baboons}}
|-
! rowspan="1" width="15%"| [[Baetyls]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Baetyls}}
|-
! rowspan="2" width="15%"| [[Barathrumites]]
! width="10%" style="background: #F08080; color: white;" | Unique
| {{#cargo_query:table=CreatureFactions,GeneralData,_pageData|join on=CreatureFactions._pageName=GeneralData._pageName,_pageData._pageName=CreatureFactions._pageName|fields=CONCAT('[[File:',GeneralData.Image,'|16px]] [[',CreatureFactions._pageName,']]')|format=list|delimiter=<nowiki> - </nowiki>|where=Faction="Barathrumites" AND CreatureFactions._pageNamespace ='0' AND _categories HOLDS 'Unique_Characters'|order by=CreatureFactions._pageName|group by=CreatureFactions._pageName}}
|-
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[Bears]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Bears}}
|-
! rowspan="1" width="15%"| [[Beasts]]
! width="10%" style="background: #F08080; color: white;" | Unique
| {{Creature navbox query|Beasts}}
|-
! rowspan="1" width="15%"| [[Birds]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Birds}}
|-
! rowspan="1" width="15%"| [[Cannibals]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Cannibals}}
|-
! rowspan="1" width="15%"| [[Cats]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Cats}}
|-
! rowspan="1" width="15%"| [[Children of Mamon]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Children of Mamon}}
|-
! rowspan="1" width="15%"| [[Consortium of Phyta]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Consortium of Phyta}}
|-
! rowspan="1" width="15%"| [[Crabs]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Crabs}}
|-
! rowspan="1" width="15%"| [[Cragmensch]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Cragmensch}}
|-
! rowspan="1" width="15%"| [[Dogs]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Dogs}}
|-
! rowspan="1" width="15%"| [[Dromad merchants]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Dromad merchants}}
|-
! rowspan="1" width="15%"| [[Equines]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Equines}}
|-
! rowspan="1" width="15%"| [[Farmers' Guild]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Farmers' Guild}}
|-
! rowspan="1" width="15%"| [[Fellowship of Wardens]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Fellowship of Wardens}}
|-
! rowspan="1" width="15%"| [[Fish]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Fish}}
|-
! rowspan="1" width="15%"| [[Flowers]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Flowers}}
|-
! rowspan="1" width="15%"| [[Frogs]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Frogs}}
|-
! rowspan="1" width="15%"| [[Fungi]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Fungi}}
|-
! rowspan="1" width="15%"| [[Girsh]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Girsh}}
|-
! rowspan="1" width="15%"| [[Glow-Wights]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Glow-Wights}}
|-
! rowspan="1" width="15%"| [[Goatfolk]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Goatfolk}}
|-
! rowspan="1" width="15%"| [[Grazing hedonists]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Grazing hedonists}}
|-
! rowspan="1" width="15%"| [[Hermits]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Hermits}}
|-
! rowspan="1" width="15%"| [[Highly entropic beings]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Highly entropic beings}}
|-
! rowspan="1" width="15%"| [[Hindren of Bey Lah]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Hindren of Bey Lah}}
|-
! rowspan="1" width="15%"| [[Insects]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Insects}}
|-
! rowspan="1" width="15%"| [[Issachari tribe]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Issachari tribe}}
|-
! rowspan="2" width="15%"| [[Mechanimists]]
! width="10%" style="background: #F08080; color: white;" | Unique
|  {{#cargo_query:table=CreatureFactions,GeneralData,_pageData|join on=CreatureFactions._pageName=GeneralData._pageName,_pageData._pageName=CreatureFactions._pageName|fields=CONCAT('[[File:',GeneralData.Image,'|16px]] [[',CreatureFactions._pageName,']]')|format=list|delimiter=<nowiki> - </nowiki>|where=Faction="Mechanimists" AND CreatureFactions._pageNamespace ='0' AND _categories HOLDS 'Unique_Characters'|order by=CreatureFactions._pageName|group by=CreatureFactions._pageName}}
|-
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[Merchants' Guild]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Merchants' Guild}}
|-
! rowspan="1" width="15%"| [[Mollusks]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Mollusks}}
|-
! rowspan="1" width="15%"| [[Mysterious strangers]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Mysterious strangers}}
|-
! rowspan="1" width="15%"| [[Naphtaali tribe]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Naphtaali tribe}}
|-
! rowspan="1" width="15%"| [[Oozes]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Oozes}}
|-
! rowspan="1" width="15%"| [[Pariahs]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Pariahs}}
|-
! rowspan="1" width="15%"| [[Putus Templar]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Putus Templar}}
|-
! rowspan="1" width="15%"| [[Robots]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Robots}}
|-
! rowspan="1" width="15%"| [[Roots]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Roots}}
|-
! rowspan="1" width="15%"| [[Seekers of the Sightless Way]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Seekers of the Sightless Way}}
|-
! rowspan="1" width="15%"| [[Snapjaws]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Snapjaws}}
|-
! rowspan="1" width="15%"| [[Succulents]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Succulents}}
|-
! rowspan="1" width="15%"| [[Swine]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Swine}}
|-
! rowspan="1" width="15%"| [[Tortoises]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Tortoises}}
|-
! rowspan="1" width="15%"| [[Trees]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Trees}}
|-
! rowspan="1" width="15%"| [[Trolls]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Trolls}}
|-
! rowspan="1" width="15%"| [[Unshelled reptiles]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Unshelled reptiles}}
|-
! rowspan="1" width="15%"| [[Urchins]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Urchins}}
|-
! rowspan="1" width="15%"| [[Villagers of Joppa]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|villagers of Joppa}}
|-
! rowspan="1" width="15%"| [[Villagers of Kyakukya]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Villagers of Kyakukya}}
|-
! rowspan="1" width="15%"| [[Vines]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|Vines}}
|-
! rowspan="1" width="15%"| [[Water barons]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|water barons}}
|-
! rowspan="1" width="15%"| [[Winged mammals]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|winged mammals}}
|-
! rowspan="1" width="15%"| [[Worms]]
! width="10%" style="background: #F0E68C; color: black;"| Common
| {{Creature navbox query|worms}}
|-
|}
<span class="qud-box-footer-left"></span></div></div>
[[Category:Creatures]]<noinclude>[[Category:Navigation]]</noinclude>

Revision as of 00:41, 31 August 2019

Template that makes a navigation box for the specified faction. It takes only one argument, which is the Faction name.

(TODO: Figure out how to write a query that excludes all Unique Characters)