From GamingWiki
Jump to: navigation, search
(Created page with "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 p...")
 
 
(23 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
<onlyinclude><includeonly><!--
 
<onlyinclude><includeonly><!--
  
   If this page is a "character in campaign" page, and if there exists a navigation template, include it here.  
+
   If this page is an "is in campaign" page, and if there exists a navigation template, include it here.  
  
-->{{#ask:  
+
--><!-- {{#if: {{#vardefineecho:campaign|{{#show: {{PAGENAME}} | ?is in campaign | link=none }}}} | --><!--
  [[{{PAGENAME}}]] [[Category: Characters]]
+
-->{{SMW campaign box | {{#show: {{PAGENAME}} | ?is in campaign | link=none | limit=1 }} }}<!--
  | ?campaign=
+
--><!--}}--><!--
  | mainlabel=- | link=none | format=template | template=SMW campaign characters box | searchlabel=
 
}}<!--
 
  
 
   If this page is a "location in campaign" page, and if there exists a navigation template, include it here.  
 
   If this page is a "location in campaign" page, and if there exists a navigation template, include it here.  
  
-->{{#ask:  
+
--><!-- {{#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=
}}<!--
+
}} --><!--
  
 
--></includeonly></onlyinclude>
 
--></includeonly></onlyinclude>
 +
 +
 +
Todo:
 +
* campaign nav box
 +
* location nav box
 +
* others
 +
* smarter conditional logic

Latest revision as of 18:33, 25 January 2016

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