Template:QuestState: Difference between revisions

From questden
Jump to navigationJump to search
(Applying color and and icon)
No edit summary
Line 4: Line 4:
;text:''(Optional)'' Link text to show instead of the sub-page name
;text:''(Optional)'' Link text to show instead of the sub-page name
;plural:''(Optional)'' Set to 1 if the sentence subject is plural
;plural:''(Optional)'' Set to 1 if the sentence subject is plural
;sub:''(Optional)'' Set to 1 if the target page is of the form <code>Namespace/Subpage</code> to autofill the <code>Namespace/</code>
For example, <code><nowiki>{{QuestState|page=Resources|plural=1}}</nowiki></code>, or <code><nowiki>{{QuestState|page=Inventory|text=Bob's inventory}}</nowiki></code>.
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
</noinclude>{{Notice
|image=Stats.png
|image=Stats.png
|color=#ff0
|color=#ff0
|majortext=[[{{FULLPAGENAME}}/{{{page|ERROR}}}|{{#if:{{{text|}}}|{{{text}}}|{{{page|Something you forgot to specify}}}}}]]
|majortext=[[{{#if:{{{sub|}}}|{{FULLPAGENAME}}/|}}{{{page|ERROR}}}|{{#if:{{{text|}}}|{{{text}}}|{{{page|Something you forgot to specify}}}}}]]
|minortext={{#if:{{{plural|}}}|are|is}} tracked on the wiki.
|minortext={{#if:{{{plural|}}}|are|is}} tracked on the wiki.
}}<noinclude>[[Category:Templates]] [[Category:Banners]]</noinclude>
}}<noinclude>[[Category:Templates]] [[Category:Banners]]</noinclude>

Revision as of 01:43, 17 October 2015

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/

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

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