Template:Creature Navbox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(added second argument that separates between common and unique)
Line 9: Line 9:


| group1style = background:rgba(6,28,23,0.2);
| group1style = background:rgba(6,28,23,0.2);
| group1= {{#ifeq:{{{2|}}}|uniquecommon| Unique }}
| list1      ={{Creature navbox query|{{{1|}}}|{{#ifeq:{{{2|}}}|uniquecommon|unique}}}}


| list1      =<span style="display:inline-block">{{Creature navbox query|{{{1|}}}}}
| group2 = {{#ifeq:{{{2|}}}|uniquecommon| Common}}
 
| list2= {{#ifeq:{{{2|}}}|uniquecommon| {{Creature navbox query|{{{1|}}}|common}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
[[Category:Creature Navigation]]
[[Category:Creature Navigation]]
Template that makes a navigation box for the specified faction. It takes only one argument, which is the Faction name.
Template that makes a navigation box for the specified faction. It takes only one argument, which is the Faction name.
 
<pre>{{Creature Navbox|Barathrumites|uniquecommon}}</pre>
(TODO: Figure out how to write a query that excludes all Unique Characters)
{{Creature Navbox|Barathrumites|uniquecommon}}
<pre>{{Creature Navbox|Barathrumites}}</pre>
{{Creature Navbox|Barathrumites}}
</noinclude>
</noinclude>

Revision as of 16:06, 10 September 2019

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

{{Creature Navbox|Barathrumites|uniquecommon}}
{{Creature Navbox|Barathrumites}}