From GamingWiki
Jump to: navigation, search
Line 5: Line 5:
 
   If this page is a "character in campaign" page, and if there exists a navigation template, include it here.  
 
   If this page is a "character in campaign" page, and if there exists a navigation template, include it here.  
  
-->1{{#ask:
+
-->{{#ask:  
  [[{{PAGENAME}}]] [[is a :: PC]]
 
  | ?campaign=
 
  | mainlabel=- | link=none | format=template | template=SMW campaign characters box | searchlabel=
 
}}<!--
 
 
 
-->2{{#ask:  
 
 
   [[{{PAGENAME}}]] [[character in campaign::+]]
 
   [[{{PAGENAME}}]] [[character in campaign::+]]
  | ?campaign=
 
  | mainlabel=- | link=none | format=template | template=SMW campaign characters box | searchlabel=
 
}}<!--
 
 
-->3{{#ask:
 
  [[{{PAGENAME}}]] [[Category: Characters]]
 
  | ?campaign=
 
  | mainlabel=- | link=none | format=template | template=SMW campaign characters box | searchlabel=
 
}}<!--
 
 
-->4{{#ask:
 
  [[{{PAGENAME}}]] [[Category: player characters]]
 
 
   | ?campaign=
 
   | ?campaign=
 
   | mainlabel=- | link=none | format=template | template=SMW campaign characters box | searchlabel=
 
   | mainlabel=- | link=none | format=template | template=SMW campaign characters box | searchlabel=
Line 32: Line 14:
  
 
-->5{{#ask:  
 
-->5{{#ask:  
   [[{{PAGENAME}}]] [[Category: Locations]]
+
   [[{{PAGENAME}}]] [[location in campaign::+]]
 
   | ?campaign=
 
   | ?campaign=
 
   | mainlabel=- | link=none | format=template | template=SMW campaign locations box | searchlabel=
 
   | mainlabel=- | link=none | format=template | template=SMW campaign locations box | searchlabel=

Revision as of 18:23, 6 May 2014

This template detects whether the current page has an associated navigation template and, if so, renders it. This is done automagically in MediaWiki:Hf-nsfooter-, so the page itself doesn't need to include it.



Todo:

  • campaign nav box
  • location nav box
  • others
  • smarter conditional logic