Template:Creature Navbox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
imported>Lemonlich
(Seventh and last, this one is unfishined but I would like to let you fellas know that It will be available soon)
 
mNo edit summary
 
(16 intermediate revisions by 4 users not shown)
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 {{#cargo_query:|tables=Factions|fields=CONCAT('[[',PlainName,'{{!}}',PlainName,']]')|where=PlainName='{{#replace:{{{1|}}}|'|\'}}'|limit=1|more results text=}} 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%"| [[:Category:Antelopes|Antelopes]]
| titlestyle = background:rgba(8,51,50,0.8); font-family:Source Code Pro;
! width="10%" style="background: #F0E68C; color: black;"| Common
| groupstyle = background:rgba(8,51,50,0.8); font-family:Source Code Pro;
| [[Fork-horned Gnu]]
| liststyle = padding:0.6em;
|-
| innerstyle = font-family:Source Code Pro;
! rowspan="1" width="15%"| [[:Category:Apes|Apes]]
 
! width="10%" style="background: #F0E68C; color: black;"| Common
| group1 = {{#if: {{{splitbycategory|}}} | {{{categorytitle|{{{splitbycategory}}}}}} | {{#ifeq:{{{2|}}}|uniquecommon| Unique }} }}
|
| list1  = {{#if: {{{splitbycategory|}}} | {{Creature navbox query|{{{1|}}}|category={{{splitbycategory}}}}} | {{Creature navbox query|{{{1|}}}|{{#ifeq:{{{2|}}}|uniquecommon|unique}}}} }}
|-
 
! rowspan="1" width="15%"| [[:Category:Arachnids|Arachnids]]
| group2 = {{#if: {{{splitbycategory|}}} | {{{noncategorytitle|General}}} | {{#ifeq:{{{2|}}}|uniquecommon| Common}} }}
! width="10%" style="background: #F0E68C; color: black;"| Common
| list2style = background:rgba(0,0,0,0.2);
|
| list2= {{#if: {{{splitbycategory|}}} | {{Creature navbox query|{{{1|}}}|notcategory={{{splitbycategory}}}}} | {{#ifeq:{{{2|}}}|uniquecommon| {{Creature navbox query|{{{1|}}}|common}} }} }}
|-
}}</includeonly><noinclude>
! rowspan="1" width="15%"| [[:Category:Baboons|Baboons]]
[[Category:Creature Navigation]]
! width="10%" style="background: #F0E68C; color: black;"| Common
Template that makes a navigation box for the specified faction. The first argument should be the Faction name.
|
 
|-
Optionally:
! rowspan="1" width="15%"| [[:Category:Baetyls|Baetyls]]
* A second argument of <code>uniquecommon</code> can be specified to separate the navbox into two rows; one for unique characters, one for non-unique characters.
! width="10%" style="background: #F0E68C; color: black;"| Common
* The following parameters can be specified to divide the navbox into two category-based rows:
|
** <code>splitbycategory</code>: The category by which to split the navbox
|-
** <code>categorytitle</code>: Creatures that have the specified category as their primary (cargo-stored) category will be put in the first row of the navbox, and that row will have the title specified in this parameter
! rowspan="2" width="15%"| [[:Category:Barathrumites|Barathrumites]]
** <code>noncategorytitle</code>: All other creatures (not in the specified category) will go into the second navbox row, and that navbox row will have the title specified here.
! width="10%" style="background: #F08080; color: white;" | Unique
=== Simple Case ===
|
<pre>{{Creature Navbox|Barathrumites}}</pre>
|-
{{Creature Navbox|Barathrumites}}
! width="10%" style="background: #F0E68C; color: black;"| Common
=== Unique / Common Case ===
|
<pre>{{Creature Navbox|Barathrumites|uniquecommon}}</pre>
|-
{{Creature Navbox|Barathrumites|uniquecommon}}
! rowspan="1" width="15%"| [[:Category:Bears|Bears]]
=== Category-Divided Case ===
! width="10%" style="background: #F0E68C; color: black;"| Common
<pre>{{Creature Navbox|Robots|splitbycategory=Turrets|categorytitle=Turrets|noncategorytitle=General}}</pre>
|
{{Creature Navbox|Robots|splitbycategory=Turrets|categorytitle=Turrets|noncategorytitle=General}}
|-
</noinclude>
! rowspan="1" width="15%"| [[:Category:Beasts|Beasts]]
! width="10%" style="background: #F08080; color: white;" | Unique
|  
|-
! rowspan="1" width="15%"| [[:Category:Birds|Birds]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Cannibals|Cannibals]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Cats|Cats]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Children of Mamon|Children of Mamon]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Consortium of Phyta|Consortium of Phyta]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Crabs|Crabs]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Cragmensch|Cragmensch]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Dogs|Dogs]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Dromad merchants|Dromad Merchants]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Equines|Equines]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Farmers' Guild|Farmers' Guild]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Fellowship of Wardens|Fellowship of Wardens]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Fish|Fish]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Flowers|Flowers]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Frogs|Frogs]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Fungi|Fungi]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Girsh|Girsh]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Glow-Wights|Glow-Wights]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Goatfolk|Goatfolk]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Grazing Hedonists|Grazing Hedonists]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Hermits|Hermits]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Highly Entropic Beings|Highly Entropic Beings]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Hindren of Bey Lah|Hindren of Bey Lah]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Insects|Insects]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Issachari Tribe|Issachari Tribe]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="2" width="15%"| [[:Category:Mechanimists|Mechanimists]]
! width="10%" style="background: #F08080; color: white;" | Unique
|  
|-
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Merchants' Guild|Merchants' Guild]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Mollusks|Mollusks]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Mysterious Strangers|Mysterious Strangers]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Naphtaali tribe|Naphtaali Tribe]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Oozes|Oozes]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Pariah|Pariah]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Putus Templar|Putus Templar]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Robots|Robots]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Roots|Roots]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Seekers of the Sightless Way|Seekers of the Sightless Way]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Snapjaws|Snapjaws]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Succulents|Succulents]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Swine|Swine]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Tortoises|Tortoises]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Trees|Trees]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Trolls|Trolls]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Unshelled reptiles|Unshelled Reptiles]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|  
|-
! rowspan="1" width="15%"| [[:Category:Urchins|Urchins]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Villagers of Joppa|Villagers of Joppa]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Villagers of Kyakukya|Villagers of Kyakukya]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Vines|Vines]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Water Barons|Water Barons]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Winged Mammals|Winged Mammals]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
! rowspan="1" width="15%"| [[:Category:Worms|Worms]]
! width="10%" style="background: #F0E68C; color: black;"| Common
|
|-
|}
<span class="qud-box-footer-left"></span></div></div>
[[Category:Creatures]]<noinclude>[[Category:Navigation]]</noinclude>

Latest revision as of 17:06, 21 February 2022

Template that makes a navigation box for the specified faction. The first argument should be the Faction name.

Optionally:

  • A second argument of uniquecommon can be specified to separate the navbox into two rows; one for unique characters, one for non-unique characters.
  • The following parameters can be specified to divide the navbox into two category-based rows:
    • splitbycategory: The category by which to split the navbox
    • categorytitle: Creatures that have the specified category as their primary (cargo-stored) category will be put in the first row of the navbox, and that row will have the title specified in this parameter
    • noncategorytitle: All other creatures (not in the specified category) will go into the second navbox row, and that navbox row will have the title specified here.

Simple Case

{{Creature Navbox|Barathrumites}}

Unique / Common Case

{{Creature Navbox|Barathrumites|uniquecommon}}

Category-Divided Case

{{Creature Navbox|Robots|splitbycategory=Turrets|categorytitle=Turrets|noncategorytitle=General}}