2010/4/11 Aryeh Gregor <Simetrical+wikilist@gmail.comSimetrical%2Bwikilist@gmail.com
It might be possible in principle to use some kind of template that normally renders as a link, but could be persuaded to render as an inclusion under some conditions. I'm not sure offhand what the best way to do this would be.
Maybe something like this?
"Template:Chapter": ---- {{#ifeq:{{SUBPAGENAME}}|Print |{{:{{BASEPAGENAME}}/{{{1}}}}} |[[/{{{1}}}/]] }} ----
Table of Contents of the manual, at "Manual": ---- {{Chapter|Title of chapter 1}} {{Chapter|Title of chapter 2}} ... ---- which at "Manual" expands to links: ---- [[/Title of chapter 1/]] [[/Title of chapter 2/]] ---- and at "Manual/Print", using ---- {{:Manual}} ---- expands to this transclusions: ---- {{:Manual/Title of chapter 1}} {{:Manual/Title of chapter 2}} ... ----
Helder