Difference between revisions of "Template:Quest icon"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: <!-- hiding linebreaks --> | <includeonly>{{#if: <!-- hiding linebreaks --> | ||
{{#vardefine:smw_type|{{#show:{{{1|}}}|?Has quest type|link=none}}}} | |||
[[File:{{#switch: {{lc:{{#var:smw_type}}}} | |||
| main scenario = Main Scenario Quest icon.png | |||
| quest | side | sidequest = Quest icon.png | |||
| daily = Daily Quest icon.png | |||
| feature | class | job = Feature Quest icon.png | |||
| levequest = Levequest icon.png | |||
| #default = Quest icon.png}}|30px|{{#ifeq:{{#var:smw_type}}|Sidequest|Sidequest|{{#var:smw_type}} quest}}|link=Quest]]++ {{#show:{{{1|}}}|?Has canonical name|default={{{1|Quest}}}}}}}</includeonly><noinclude> | |||
== Description == | == Description == | ||
Line 19: | Line 20: | ||
== Examples == | == Examples == | ||
* {{quest icon|Windy Wedding}} is produced from <code><nowiki>{{quest icon|Windy Wedding}}</nowiki></code> | * {{quest icon|Windy Wedding}} is produced from <code><nowiki>{{quest icon|Windy Wedding}}</nowiki></code> | ||
{{lc:{{#vardefineecho:smw_type|{{#show:Windy Wedding|?Has quest type|link=none}}}}}} | |||
<pre>This is an example a paragraph with the {{quest icon|Windy Wedding}} quest in it.</pre> | <pre>This is an example a paragraph with the {{quest icon|Windy Wedding}} quest in it.</pre> | ||
This is an example a paragraph with the {{quest icon|Windy Wedding}} quest in it. | This is an example a paragraph with the {{quest icon|Windy Wedding}} quest in it. | ||
[[Category:Icon templates|Quest icon]]</noinclude> | [[Category:Icon templates|Quest icon]]</noinclude> |
Revision as of 19:31, 11 December 2017
Description
{{quest icon|<quest name>}}
Displays a link to the quest name (canonical name) and the quest icon.
Parameters
- unnamed parameter 1
- Quest name. Defaults to "Quest".
Examples
- is produced from
{{quest icon|Windy Wedding}}
sidequest
This is an example a paragraph with the {{quest icon|Windy Wedding}} quest in it.
This is an example a paragraph with the quest in it.