Difference between revisions of "Template:Diaryquest/Documentation"

From GodWiki
Jump to: navigation, search
(Reformat docs)
m (Document "title" parameter)
Line 10: Line 10:
  
 
* '''completed''' - if this parameter is specified as anything at all then the percentage of quest completion will automatically be set to 100% regardless of the other parameters and '(completed)' will appear.
 
* '''completed''' - if this parameter is specified as anything at all then the percentage of quest completion will automatically be set to 100% regardless of the other parameters and '(completed)' will appear.
 +
 +
* '''title''' - this parameter will replace the default text in the title bar (defaults are "Hero" for retro and superhero styles; "Hero's Stats ↓" for hero style)
  
 
* '''style''' - If this parameter is omitted or set to '''default''', the template will use a modern style which closely resembles the current Godville web interface. (That same style can be explicitly selected by setting the parameter to '''superhero'''.) The previous default style is available by specifying '''<tt>style=hero</tt>'''. The other available style is '''<tt>style=retro</tt>'''. A few old, deprecated styles in different color schemes are no longer available.
 
* '''style''' - If this parameter is omitted or set to '''default''', the template will use a modern style which closely resembles the current Godville web interface. (That same style can be explicitly selected by setting the parameter to '''superhero'''.) The previous default style is available by specifying '''<tt>style=hero</tt>'''. The other available style is '''<tt>style=retro</tt>'''. A few old, deprecated styles in different color schemes are no longer available.

Revision as of 11:06, 30 December 2018

Inserts a Quest graphic which is extremely similar to the real one.

Parameters:

  • text - the Quest title. Default is 'look for a new quest'.
  • number - the quest number. Default is 1.
  • status - the percentage of quest completion without the percent sign. Default is 25.
  • completed - if this parameter is specified as anything at all then the percentage of quest completion will automatically be set to 100% regardless of the other parameters and '(completed)' will appear.
  • title - this parameter will replace the default text in the title bar (defaults are "Hero" for retro and superhero styles; "Hero's Stats ↓" for hero style)
  • style - If this parameter is omitted or set to default, the template will use a modern style which closely resembles the current Godville web interface. (That same style can be explicitly selected by setting the parameter to superhero.) The previous default style is available by specifying style=hero. The other available style is style=retro. A few old, deprecated styles in different color schemes are no longer available.

Examples

This code
{{Diaryquest | number = 42 | status = 24 | text = create an amazing template}}
Results in
Hero
Quest
#42
create an amazing template
This code
{{Diaryquest | style=superhero | completed = 1 | number = 50 | text = create an amazing superhero template}}
Results in
Hero
Quest
#50
create an amazing superhero template (completed)
This code
{{Diaryquest | style=hero | completed = yes | number = 42 | text = create an amazing hero template}}
Results in
Hero's Stats ↓
Quest
#97
create an amazing hero template (completed)
This code
{{Diaryquest | style=retro | status = 34 | number = 42 | text = create an amazing retro template}}
Results in
Hero
Quest
#42
create an amazing retro template