Difference between revisions of "Template:Quest"

From GodWiki
Jump to: navigation, search
m
(Adding categorisation for special quests, fixed switch cases for categorisation to match all allowed cases)
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
  |epic|epic quest|epic-quest|epicquest = <b>{{Decorate item|πŸ“š|[[:Category:Epic Quests|Epic Quest]]|where=before}}</b>
 
  |epic|epic quest|epic-quest|epicquest = <b>{{Decorate item|πŸ“š|[[:Category:Epic Quests|Epic Quest]]|where=before}}</b>
 
  |normal|quest|#default = <b>{{Decorate item|πŸ“˜|[[:Category:Quests|Quest]]|where=before}}</b>
 
  |normal|quest|#default = <b>{{Decorate item|πŸ“˜|[[:Category:Quests|Quest]]|where=before}}</b>
 +
|special = <b>{{Decorate item|πŸ”§|[[:Category:Special Quests|Special Quest]]|where=before}}</b>
 
}}
 
}}
 
</div><div style="text-align:right;float:right;display:inline;margin-right:0.3rem;">#{{{number|1}}}</div><div style="clear:both;"></div><div style="width:15em; visibility: hidden;"></div><div style="line-height:145%;text-align:right;font-style:italic;margin:0.1rem 0.3rem;">'''{{{title|{{PAGENAME}} }}}'''</div><div style="height:5px"></div>
 
</div><div style="text-align:right;float:right;display:inline;margin-right:0.3rem;">#{{{number|1}}}</div><div style="clear:both;"></div><div style="width:15em; visibility: hidden;"></div><div style="line-height:145%;text-align:right;font-style:italic;margin:0.1rem 0.3rem;">'''{{{title|{{PAGENAME}} }}}'''</div><div style="height:5px"></div>
Line 25: Line 26:
 
| imagestyle = padding:0; background: none; border-bottom: 4px solid #FFE79F33;
 
| imagestyle = padding:0; background: none; border-bottom: 4px solid #FFE79F33;
 
| spacer = no
 
| spacer = no
βˆ’
| bodystyle= background: #FFE79F33; width:19.5rem; border:none;margin: 0 auto;padding:10px 2px 0 2px;font-size:100%;
+
| bodystyle= background: #FFE79F33; width:19.5rem; border: none; margin: 0 auto; padding: 10px 2px 0 2px; font-size: 100%;
βˆ’
| abovestyle = font-size: 100%; font-weight:normal; width:100%;
+
| abovestyle = font-size: 100%; font-weight: normal; width:100%;
 
| belowstyle = background: #FFE79F33; border-bottom: 4px solid #FFE79F33;
 
| belowstyle = background: #FFE79F33; border-bottom: 4px solid #FFE79F33;
 
| navstyle =
 
| navstyle =
Line 54: Line 55:
 
</div></div>
 
</div></div>
 
<includeonly>{{main other|[[Category:Quests]]{{#switch: {{lc:{{{type|{{{Type}}}}}} }}
 
<includeonly>{{main other|[[Category:Quests]]{{#switch: {{lc:{{{type|{{{Type}}}}}} }}
βˆ’
| mini = [[Category:Mini-quests]]
+
|mini|mini-quest|mini quest|miniquest = [[Category:Mini-quests]]
βˆ’
| normal = [[Category:Quests]]
+
|epic|epic quest|epic-quest|epicquest = [[Category:Epic Quests]]
βˆ’
| epic = [[Category:Epic Quests]]
+
| special = [[Category:Special Quests]]
 
}}|}}
 
}}|}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>

Latest revision as of 07:22, 26 November 2020

Quests of Godville

πŸ“˜Quest

#1
Quest
QuestPlaceholder.jpg
[view] [edit] [history] [refresh]
πŸ“š Documentation

As well as automatically categorizing an article into Category:Quests, this template supplies some standard information about the subject of the article. For details on how to create a quest article, refers to the Creators Manual and the Guideline: Quest Articles.

Parameters

|image=filename 
Optional but preferred β€” The full image file name.
If an image is not supplied, a placeholder will be used, and by default the template will place the {{picture}} hatnote before the infobox. Disable this if necessary with |ignore-no-image=yes (see below).
|caption=Image description 
Optional β€” Use only if |image= is also set. Text of a descriptive caption to display beneath the image.
|type=Mini, Normal, Epic, Special 
Required β€” What kind of quest it is (default: Normal). The Special category is reserved for quests which have a special effect in-game, such as joining a guild, or releasing a pet.
(Note: Setting |type= will auto-categorize the article into the appropriate quest sub-category.)
|description= 
Optional β€” Brief description of the quest.
(Note: Unlike other infoboxes, description is displayed above the picture, below the progress bar.)
|status= 
Optional β€” Fill the bar according to the number.
(Exemple:|status=25 will display a bar filled at 25%)
|number= 
Optional β€” Give a non-meta number to the quest.
|ignore-no-image=yes 
Optional β€” Set to yes (or any similar positive-state value) to disable the automatic placement of {{Picture}} above the infobox.
|top=no 
Optional β€” Set to no to disable the automatic placement of the {{Top}} template on the article.

Example of Use

{{quest
| image = <!-- An image filename (e.g. Example_picture_name.jpg). If the filename doesn't exist, this gives you a link to upload it. -->
| caption = <!-- An appropriate caption for the picture -->
| type = <!-- What kind of quest it is. Can be: Mini, Normal, Epic. -->
| number = <!-- A non-meta number given to the quest -->
| status = <!-- Percentage of progression displayed on the progress bar -->
| description = <!-- A short description -->
}}

Mini-quest Example : The shortest tale with the longest title so far

Quests of Godville

πŸ“ƒMini-Quest

#35
The shortest tale with the longest title so far
A one-page tale
Example.jpg
A catchy caption


{{quest
| image = Example.jpg
| caption = A catchy caption
| type = mini
| number = 35
| status = 80
| description = A one-page tale
}}

Normal Quest Example : Do the first quest of another RPG

Quests of Godville

πŸ“˜Quest

#12
Do the first quest of another RPG
"Kill five boars, three snakes and bring me my coffee please."
Example.jpg
A fitting caption of average length


{{quest
| image = Example.jpg
| caption = A fitting caption of average length
| type = Normal
| number = 12
| status = 50
| description = "Kill five boars, three snakes and bring me my coffee please."
}}

Epic Quest Example : Become King of the Unknown World

Quests of Godville

πŸ“šEpic Quest

#42
Become King of the Unknown World
So epic everyone will talk about it
Example.jpg
A fairly way too long yet captivating and perfectly appropriate caption


{{quest
| image = Example.jpg
| caption = A fairly way too long yet captivating and perfectly appropriate caption
| type = Epic
| number = 42
| status = 25
| description = So epic everyone will talk about it
}}
NB: Those are examples, not actually existing quests at the time of this documentation.