Difference between revisions of "Template:D&D topics"

From blackwiki
Jump to navigation Jump to search
(doesn't seem to be working yet, but I'm saving my work for future use)
imported>Apo-kalypso
(Attempted to refine syntax added by 108.69.80.43.)
Line 2: Line 2:
 
| name  = D&D topics
 
| name  = D&D topics
 
| title  = ''[[Dungeons & Dragons]]''
 
| title  = ''[[Dungeons & Dragons]]''
|state =uncollapsed
+
| state = uncollapsed
|selected = {{#switch:{{ucfirst:{{{1|}}}}}
+
| selected =  
  | General | Gameplay | Creator | Creators | Basics | Company | Companies | License| Licenses | OGL | GSL | SRD = Basics
+
  {{#switch:{{ucfirst:{{{1|}}}}}
  | Setting | Settings | Campaign settings | Campaign Settings | Plane | Planes | Planes of Existence | World | Worlds | geocosmo | Geography and Cosmology = Geography and Cosmology
+
  | basic | company | companies | creator | creators | gameplay | general | license | licenses | GSL | OGL | SRD = basics
  | Race | Races | Class | Classes | Character | Characters | Notable Characters | playchar | Player Characters = Player Characters
+
  | plane | planes | setting | settings | world | worlds | campaign settings | geography and cosmology | planes of existence = geocosmo
  | Monster | Monsters | Creatures and Monsters | God | Gods | Deities and Powers | Creature | Creatures | beasts | Beasts and Other Beings = Beasts and Other Beings
+
  | character | characters | class | classes | race | races | player characters | notable characters = playchar
  | Rules | Books | Rulebooks | Rulebook | Core Rulebooks | Rules Expansion Sets | Supplement | Supplements | Module | Modules | Notable Modules | pubs  | Publication | Publications= Publications
+
  | creature | creatures | deity | deities | god | gods | monster | monsters | beasts and other beings | creatures and monsters | deities and powers = beasts
  | Early games (1975–1983) | Baldur's Gate series | Icewind Dale series | Neverwinter Nights series | Pool of Radiance series | Savage Frontier series | Other games by campaign setting | vidgame | Video Games = Video Games
+
  | book | books | module | modules | publication | publications | rulebook | rulebooks | rules | supplement | supplements | core rulebooks | notable modules | rules expansion sets = pubs
  | #default = {{ns:0}}
+
  | video game | video games | vidgames = vidgame
 +
  | #default = {{ns:0}}
 
   }}
 
   }}
 
  
 
| group1 = Basics
 
| group1 = Basics
Line 130: Line 130:
 
   }}
 
   }}
 
}}
 
}}
<noinclude>After <nowiki>{{D&D topics}}</nowiki>, you can put a pipe and then the name of a child navbox to make that child navbox be open on an article. For example <nowiki>{{D&D topics|publications}}</nowiki> makes the "publications" section automatically open for that article.
+
<noinclude>NOTE: After inserting the navigational template <nowiki>{{D&D topics}}</nowiki> into the body of an article, you may include a pipe followed by the group name (group<sub>n</sub>) of a particular child navbox – or any one of its corresponding abbreviations (abbr<sub>n</sub>) – in order to have that group open automatically in the article. For example, <nowiki>{{D&D topics|publications}}</nowiki> or <nowiki>{{D&D topics|pubs}}</nowiki> will open the "Publications" group but leave all others in a collapsed state.
 
[[Category:Dungeons & Dragons templates]]
 
[[Category:Dungeons & Dragons templates]]
 
</noinclude>
 
</noinclude>

Revision as of 20:36, 31 July 2011

NOTE: After inserting the navigational template {{D&D topics}} into the body of an article, you may include a pipe followed by the group name (groupn) of a particular child navbox – or any one of its corresponding abbreviations (abbrn) – in order to have that group open automatically in the article. For example, {{D&D topics|publications}} or {{D&D topics|pubs}} will open the "Publications" group but leave all others in a collapsed state.