Difference between revisions of "Template:QuestState"

From questden
m (OK, time for ParserFunctions)
m (fixing whitespace)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Notice
+
<noinclude>{{QuestState/Doc}}</noinclude><!--
|image=Tgchan_logo.png
+
--><includeonly>{{Notice
|majortext=[[{{FULLPAGENAME}}/{{{1|ERROR}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|Something you forgot to specify}}}}}]]
+
|image=Stats.png
|minortext=is tracked on the wiki.
+
|color=#ff0
}}
+
|majortext=[[{{#if:{{{sub|}}}|{{FULLPAGENAME}}/|}}{{{page|ERROR}}}|{{#if:{{{text|}}}|{{{text}}}|{{{page|Something you forgot to specify}}}}}]]{{#if:{{{pageext|}}}|&nbsp;{{{pageext}}}|}}
 +
|minortext={{#if:{{{plural|}}}|are|is}} tracked on the wiki.
 +
}}</includeonly><noinclude>[[Category:Templates]] [[Category:Banners]]</noinclude>

Latest revision as of 21:31, 1 May 2016

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
sub
(Optional) Set to 1 if the target page is of the form Namespace/Subpage to autofill the Namespace/
pageext
(Optional) Works like authorext, lets you add extra links in the rare cases you need to.

Examples

Code Output Links to
{{QuestState|page=Something}}
Stats.png Something is tracked on the wiki.
http://tgchan.org/wiki/Something
{{QuestState|page=Something|sub=1}}
Stats.png Something is tracked on the wiki.
http://tgchan.org/wiki/Example Quest/Something
{{QuestState|page=Something|pageext=and [[something else]]|plural=1}}
Stats.png Something and something else are tracked on the wiki.
http://tgchan.org/wiki/Something
http://tgchan.org/wiki/something else
{{QuestState|page=Inventory|text=Bob's inventory}}
Stats.png Bob's inventory is tracked on the wiki.
http://tgchan.org/wiki/Inventory