Template:MakeNewQuest: Difference between revisions

From questden
Jump to navigationJump to search
(Experimenting with a subst-based new-quest template)
 
m (Revising to abolish direct use of ParserFunctions)
Line 1: Line 1:
<noinclude>
<noinclude>{{Notice|color=red|majortext=Do not use this template directly!|minortext=It is designed to be substituted; see [[Help:Contents#...create a page for a new quest?|how to create a page for a new quest]].}}<!--
{{Notice|color=red|majortext=Do not use this template directly!|minortext=It is designed to be substituted; see [[Help:Contents#...create a page for a new quest?|how to create a page for a new quest]].}}
 
</noinclude><includeonly>{{Infobox
It'd be nice to let this automatically select use of [[Category:Image Quests]] based on a parameter, e.g.
  {{#if:{{{imagequest|}}}|[[Category:Image Quests]]|}}
but ParserFunctions don't run early enough to generate substitution text, so instead that literally gets shoved into the new page, which isn't the right thing at all.
 
--></noinclude><includeonly>{{Infobox
|author={{{author|}}}
|author={{{author|}}}
|thread1={{{thread|}}}
|thread1={{{thread|}}}
Line 8: Line 12:


{{Stub}}
{{Stub}}
{{#if:{{{author|}}}|{{{{{author}}}}}|}}
{{MaybeTemplate|{{{author|}}}}}
{{#if:{{{imagequest|}}}|[[Category:Image Quests]]|}}
[[Category:Running Quests]]
[[Category:Running Quests]]
</includeonly>
</includeonly>

Revision as of 16:42, 6 September 2011

Do not use this template directly! It is designed to be substituted; see how to create a page for a new quest.