Template:Tiered Body Part Equipment Navbox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (remove default cargo "No results" text)
m (formatting)
Line 2: Line 2:
| name      = {{{navboxname|Body Armor}}} Navbox
| name      = {{{navboxname|Body Armor}}} Navbox
| title      = List of [[:Category:{{{category|Armor}}}|{{{navboxname|Body Armor}}}]]
| title      = List of [[:Category:{{{category|Armor}}}|{{{navboxname|Body Armor}}}]]
| below      = <hr><div style="text-align:right;font-size:100%; font-weight:bold; font-family:Source Code Pro;"><span style="color:#155352;">see also:</span> [[Template:Armor_Navbox|full list of armor and shields]] <span style="color:#155352;">-</span> [[List_of_Body_Parts|equipment by body part]]</span><hr>
| below      = <div style="text-align:right;font-size:100%; font-weight:bold; font-family:Source Code Pro;"><span style="color:#155352;">see also:</span> [[Template:Armor_Navbox|full list of armor and shields]] <span style="color:#155352;">-</span> [[List_of_Body_Parts|equipment by body part]]</span></div>
| listclass  = hlist
| listclass  = hlist
| state      = {{{state|collapsed}}}
| state      = {{{state|collapsed}}}
Line 20: Line 20:
   | default  =
   | default  =
   }}
   }}
| group1style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list1style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


| list2 = <hr>
| group2 = Tier 2
 
| list2 = {{#cargo_query:
| group3 = Tier 2
| list3 = {{#cargo_query:
   | tables    = ItemsTable=IT, GeneralData=GD
   | tables    = ItemsTable=IT, GeneralData=GD
   | join on  = IT.ObjectID=GD.ObjectID  
   | join on  = IT.ObjectID=GD.ObjectID  
Line 34: Line 34:
   | default  =
   | default  =
   }}
   }}
| group2style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list2style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


| list4 = <hr>
| group3 = Tier 3
 
| list3 = {{#cargo_query:
| group5 = Tier 3
| list5 = {{#cargo_query:
   | tables    = ItemsTable=IT, GeneralData=GD
   | tables    = ItemsTable=IT, GeneralData=GD
   | join on  = IT.ObjectID=GD.ObjectID  
   | join on  = IT.ObjectID=GD.ObjectID  
Line 48: Line 48:
   | default  =
   | default  =
   }}
   }}
| group3style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list3style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


| list6 = <hr>
| group4 = Tier 4
 
| list4 = {{#cargo_query:
| group7 = Tier 4
| list7 = {{#cargo_query:
   | tables    = ItemsTable=IT, GeneralData=GD
   | tables    = ItemsTable=IT, GeneralData=GD
   | join on  = IT.ObjectID=GD.ObjectID  
   | join on  = IT.ObjectID=GD.ObjectID  
Line 62: Line 62:
   | default  =
   | default  =
   }}
   }}
| group4style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list4style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


| list8 = <hr>
| group5 = Tier 5
 
| list5 = {{#cargo_query:
| group9 = Tier 5
| list9 = {{#cargo_query:
   | tables    = ItemsTable=IT, GeneralData=GD
   | tables    = ItemsTable=IT, GeneralData=GD
   | join on  = IT.ObjectID=GD.ObjectID  
   | join on  = IT.ObjectID=GD.ObjectID  
Line 76: Line 76:
   | default  =
   | default  =
   }}
   }}
| group5style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list5style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


| list10 = <hr>
| group6 = Tier 6
 
| list6 = {{#cargo_query:
| group11 = Tier 6
| list11 = {{#cargo_query:
   | tables    = ItemsTable=IT, GeneralData=GD
   | tables    = ItemsTable=IT, GeneralData=GD
   | join on  = IT.ObjectID=GD.ObjectID  
   | join on  = IT.ObjectID=GD.ObjectID  
Line 90: Line 90:
   | default  =
   | default  =
   }}
   }}
| group6style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list6style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


| list12 = <hr>
| group7 = Tier 7
 
| list7 = {{#cargo_query:
| group13 = Tier 7
| list13 = {{#cargo_query:
   | tables    = ItemsTable=IT, GeneralData=GD
   | tables    = ItemsTable=IT, GeneralData=GD
   | join on  = IT.ObjectID=GD.ObjectID  
   | join on  = IT.ObjectID=GD.ObjectID  
Line 104: Line 104:
   | default  =
   | default  =
   }}
   }}
| group7style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list7style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


| list14 = <hr>
| group8 = Tier 8
 
| list8 = {{#cargo_query:
| group15 = Tier 8
| list15 = {{#cargo_query:
   | tables    = ItemsTable=IT, GeneralData=GD
   | tables    = ItemsTable=IT, GeneralData=GD
   | join on  = IT.ObjectID=GD.ObjectID  
   | join on  = IT.ObjectID=GD.ObjectID  
Line 118: Line 118:
   | default  =
   | default  =
   }}
   }}
| group8style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;
| list8style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px;


}}</includeonly><noinclude>Generic template wrapper for a tiered body part equipment navbox for the specified body part.
}}</includeonly><noinclude>Generic template wrapper for a tiered body part equipment navbox for the specified body part.

Revision as of 21:30, 20 December 2021

Generic template wrapper for a tiered body part equipment navbox for the specified body part.

parameter description
navboxname Name of the navbox for end-user display. Should match the page name minus "Navbox", for example set this to "Body Armor" if the page name is "Template:Body Armor Navbox"
bodypart The body part that will be used for cargo queries, such as "Head" or "Body".
category The associated category to link to. For example, the Body Armor Navbox sets this to "Armor", which results in a link to Category:Armor.

Example:

{{Tiered Body Part Equipment Navbox|category=Head Equipment|bodypart=Head|navboxname=Head Equipment}}

Result: