From GamingWiki
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. | ||
− | -->{{#ask: | + | -->1{{#ask: |
[[{{PAGENAME}}]] [[is a :: PC]] | [[{{PAGENAME}}]] [[is a :: PC]] | ||
| ?campaign= | | ?campaign= | ||
Line 11: | Line 11: | ||
}}<!-- | }}<!-- | ||
− | -->{{#ask: | + | -->2{{#ask: |
[[{{PAGENAME}}]] [[character in::+]] | [[{{PAGENAME}}]] [[character in::+]] | ||
| ?campaign= | | ?campaign= | ||
Line 17: | Line 17: | ||
}}<!-- | }}<!-- | ||
− | -->{{#ask: | + | -->3{{#ask: |
[[{{PAGENAME}}]] [[Category: Characters]] | [[{{PAGENAME}}]] [[Category: Characters]] | ||
| ?campaign= | | ?campaign= | ||
Line 23: | Line 23: | ||
}}<!-- | }}<!-- | ||
− | -->{{#ask: | + | -->4{{#ask: |
[[{{PAGENAME}}]] [[Category: player characters]] | [[{{PAGENAME}}]] [[Category: player characters]] | ||
| ?campaign= | | ?campaign= | ||
Line 31: | Line 31: | ||
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: | + | -->5{{#ask: |
[[{{PAGENAME}}]] [[Category: Locations]] | [[{{PAGENAME}}]] [[Category: Locations]] | ||
| ?campaign= | | ?campaign= |
Revision as of 18:21, 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