From GamingWiki
Line 1: | Line 1: | ||
{{#if:{{{title|}}}|<!-- | {{#if:{{{title|}}}|<!-- | ||
-->{{#set: title = {{{title}}} }}<!-- | -->{{#set: title = {{{title}}} }}<!-- | ||
− | -->{{#if: {{{ | + | -->{{#vardefine: parent |<!-- |
− | + | -->{{#if: {{{parentordinal|}}} |<!-- | |
− | + | -->{{#ask: [[is a::book]] [[campaign::{{{campaign|Null}}}]] [[ordinal::{{{parentordinal}}}]] }}<!-- | |
− | + | -->|<!-- | |
+ | -->{{{parent|}}}<!-- | ||
+ | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
+ | -->{{#set: is a ={{#if: {{#var:parent}} | chapter | book }} }}<!-- | ||
+ | -->{{#if: {{#var:parent}} |{{#set: parent = {{#var:parent}} }} }}<!-- | ||
-->{{#if: {{{campaign|}}} |{{#set: campaign = {{{campaign}}} }} [[Category: {{{campaign}}}]] }}<!-- | -->{{#if: {{{campaign|}}} |{{#set: campaign = {{{campaign}}} }} [[Category: {{{campaign}}}]] }}<!-- | ||
-->{{#if: {{{ordinal|}}} |{{#set: ordinal = {{{ordinal}}} }} }}<!-- | -->{{#if: {{{ordinal|}}} |{{#set: ordinal = {{{ordinal}}} }} }}<!-- |