Template:QuestState/Doc: Difference between revisions

From questden
Jump to navigationJump to search
(Created page with "<noinclude>{{Doc}}</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 su...")
 
(Improved Examples)
 
Line 6: Line 6:
;sub:''(Optional)'' Set to 1 if the target page is of the form <code>Namespace/Subpage</code> to autofill the <code>Namespace/</code>
;sub:''(Optional)'' Set to 1 if the target page is of the form <code>Namespace/Subpage</code> to autofill the <code>Namespace/</code>
;pageext:''(Optional)'' Works like authorext, lets you add extra links in the rare cases you need to.
;pageext:''(Optional)'' Works like authorext, lets you add extra links in the rare cases you need to.
For example, <code><nowiki>{{QuestState|page=Resources|plural=1}}</nowiki></code>, or <code><nowiki>{{QuestState|page=Inventory|text=Bob's inventory}}</nowiki></code>.
 
==Examples==
{| style="margin: auto; background-color:#F2F2F2; width:95%; border-collapse:collapse; border:1px solid #BBB; text-align:center" cellpadding="2"
! style="border:1px solid #BBB" | Code
! style="border:1px solid #BBB" | Output
! style="border:1px solid #BBB" | Links to
|- style="background-color:#FFFFFF"
| style="border:1px solid #BBB" | <code><nowiki>{{QuestState|page=Something}}</nowiki></code>
| style="border:1px solid #BBB; width: 40%" | {{QuestState|page=Something}}
| style="border:1px solid #BBB; width: 30%" | <nowiki>http://tgchan.org/wiki/Something</nowiki>
|- style="background-color:#FFFFFF"
| style="border:1px solid #BBB" | <code><nowiki>{{QuestState|page=Something|sub=1}}</nowiki></code>
| style="border:1px solid #BBB" | {{QuestState|page=Example Quest/Something|text=Something}}
| style="border:1px solid #BBB" | {{hover|Assuming you used the template on the page 'Example Quest'|<nowiki>http://tgchan.org/wiki/Example Quest/Something</nowiki>}}
|- style="background-color:#FFFFFF"
| style="border:1px solid #BBB" | <code><nowiki>{{QuestState|page=Something|pageext=and [[something else]]|plural=1}}</nowiki></code>
| style="border:1px solid #BBB" | {{QuestState|page=Something|pageext=and [[something else]]|plural=1}}
| style="border:1px solid #BBB" | <nowiki>http://tgchan.org/wiki/Something</nowiki><br><nowiki>http://tgchan.org/wiki/something else</nowiki>
 
|- style="background-color:#FFFFFF"
| style="border:1px solid #BBB" | <code><nowiki>{{QuestState|page=Inventory|text=Bob's inventory}}</nowiki></code>
| style="border:1px solid #BBB; width: 40%" | {{QuestState|page=Inventory|text=Bob's inventory}}
| style="border:1px solid #BBB; width: 30%" | <nowiki>http://tgchan.org/wiki/Inventory</nowiki>
|}

Latest revision as of 20:20, 1 May 2016

This is a template documentation page. It is transcluded into place.

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