Difference between revisions of "Template:QuestState"

From questden
m (OK, time for ParserFunctions)
(Switch to named arguments and allow for plural forms)
Line 1: Line 1:
{{Notice
+
<noinclude>
 +
Use this for when a quest keeps some kind of current state on the wiki, e.g. a character's inventory. Takes arguments:
 +
;page:The name for the sub-page
 +
;text:''(Optional)'' Link text to show instead of the sub-page name
 +
;plural:''(Optional)'' Set to 1 if the sentence subject is plural
 +
For example, <code><nowiki>{{QuestState|page=Resources|plural=1}}</nowiki></code>, or <code><nowiki>{{QuestState|page=Inventory|text=Bob's inventory}}</nowiki></code>.
 +
</noinclude>{{Notice
 
|image=Tgchan_logo.png
 
|image=Tgchan_logo.png
|majortext=[[{{FULLPAGENAME}}/{{{1|ERROR}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|Something you forgot to specify}}}}}]]
+
|majortext=[[{{FULLPAGENAME}}/{{{page|ERROR}}}|{{#if:{{{text|}}}|{{{text}}}|{{{page|Something you forgot to specify}}}}}]]
|minortext=is tracked on the wiki.
+
|minortext={{#if:{{{plural|}}}|are|is}} tracked on the wiki.
 
}}
 
}}

Revision as of 06:43, 18 August 2013

Use this for when a quest keeps some kind of current state on the wiki, e.g. a character's inventory. Takes arguments:

page
The name for the sub-page
text
(Optional) Link text to show instead of the sub-page name
plural
(Optional) Set to 1 if the sentence subject is plural

For example, {{QuestState|page=Resources|plural=1}}, or {{QuestState|page=Inventory|text=Bob's inventory}}.

Tgchan logo.png Something you forgot to specify is tracked on the wiki.