Difference between revisions of "Template:Quest NPC"
m |
m |
||
Line 1: | Line 1: | ||
− | + | <noinclude> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{{tocright}} | {{tocright}} | ||
− | + | {{Template Overview | |
− | + | |usedon=[[List of Quest NPCs|Quest NPC]] | |
− | = | + | |purpose=standardize their look and feel and to make them easier to create |
− | + | |template=<nowiki>{{Quest NPC | |
− | + | ||
− | < | + | |
− | {{Quest NPC | + | |
|location= | |location= | ||
|title1= | |title1= | ||
Line 112: | Line 27: | ||
|image2= | |image2= | ||
|caption2= | |caption2= | ||
+ | }}</nowiki> | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=location | ||
+ | |usage=mandatory | ||
+ | |takes=a string or strings | ||
+ | |denotes=the location at which the quest NPC can be found | ||
+ | |generates=the end of the introductory sentence | ||
+ | |othernotes=The location is displayed as a link to the location's corresponding page. | ||
+ | |validvalues=Any string or strings that correspond to a location in the game. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=title1 | ||
+ | |usage=mandatory | ||
+ | |takes=a string or strings | ||
+ | |denotes=a quest that the quest NPC offers | ||
+ | |generates=the first cell in the first row of the quest table | ||
+ | |validvalues=Any string or strings that correspond to a valid quest. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=title2 | ||
+ | |takes=a string or strings | ||
+ | |denotes=a quest that the quest NPC offers | ||
+ | |generates=the first cell in the second row of the quest table | ||
+ | |othernotes=If no value is supplied for {{Monospace|details2}} or {{Monospace|reward2}}, {{Monospace|title2}} will not display. | ||
+ | |validvalues=Any string or strings that correspond to a valid quest. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=title3 | ||
+ | |takes=a string or strings | ||
+ | |denotes=a quest that the quest NPC offers | ||
+ | |generates=the first cell in the third row of the quest table | ||
+ | |othernotes=If no value is supplied for {{Monospace|details3}} or {{Monospace|reward3}}, {{Monospace|title3}} will not display. | ||
+ | |validvalues=Any string or strings that correspond to a valid quest. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=title4 | ||
+ | |takes=a string or strings | ||
+ | |denotes=a quest that the quest NPC offers | ||
+ | |generates=the first cell in the fourth row of the quest table | ||
+ | |othernotes=If no value is supplied for {{Monospace|details4}} or {{Monospace|reward4}}, {{Monospace|title4}} will not display. | ||
+ | |validvalues=Any string or strings that correspond to a valid quest. | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===detailsX=== | ===detailsX=== | ||
Line 191: | Line 125: | ||
The ''captionX'' parameters display optional captions that correspond to the images in the ''imageX'' parameters. When supplying a value for these parameters, any string may be used. All of the ''captionX'' parameters are dependant on their corresponding ''imageX'' parameters; I.e. if a value is supplied for ''caption1'', but no value is supplied for ''image1'', ''caption1'' will not appear. | The ''captionX'' parameters display optional captions that correspond to the images in the ''imageX'' parameters. When supplying a value for these parameters, any string may be used. All of the ''captionX'' parameters are dependant on their corresponding ''imageX'' parameters; I.e. if a value is supplied for ''caption1'', but no value is supplied for ''image1'', ''caption1'' will not appear. | ||
− | + | [[Category:Page Templates|{{PAGENAME}}]]</noinclude><includeonly>__NOTOC__ | |
− | + | [[{{PAGENAME}}]] is an [[NPC]] [[Quests|quest giver]] that is located [[{{{location}}}]]. | |
− | {| style=" | + | {| class="uoguidetable" style="margin:auto;" |
− | ! | + | ! Quest Title |
− | ! | + | ! Details |
− | ! | + | ! Reward |
|- | |- | ||
− | | | + | | [[{{{title1}}}]] |
− | | | + | | {{{details1}}} |
− | | | + | | {{{reward1}}} |
|- | |- | ||
− | + | {{#if: {{{title2|}}} | |
− | | | + | | {{#if: {{{details2|}}} |
− | | | + | | {{#if: {{{reward2|}}} |
+ | | {{!}} [[{{{title2}}}]] | ||
+ | {{!}} {{{details2}}} | ||
+ | {{!}} {{{reward2}}} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | + | {{#if: {{{title3|}}} | |
− | | | + | | {{#if: {{{details3|}}} |
− | | | + | | {{#if: {{{reward3|}}} |
+ | | {{!}} [[{{{title3}}}]] | ||
+ | {{!}} {{{details3}}} | ||
+ | {{!}} {{{reward3}}} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | | | + | {{#if: {{{title4|}}} |
− | | | + | | {{#if: {{{details4|}}} |
− | | | + | | {{#if: {{{reward4|}}} |
+ | | {{!}} [[{{{title4}}}]] | ||
+ | {{!}} {{{details4}}} | ||
+ | {{!}} {{{reward4}}} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | |- | ||
+ | {{#if: {{{title5|}}} | ||
+ | | {{#if: {{{details5|}}} | ||
+ | | {{#if: {{{reward5|}}} | ||
+ | | {{!}} [[{{{title5}}}]] | ||
+ | {{!}} {{{details5}}} | ||
+ | {{!}} {{{reward5}}} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
|} | |} | ||
− | + | {{#if: {{{note1|}}} | |
− | ==Notes== | + | | ==Notes== |
− | * | + | * {{{note1}}} |
− | * | + | {{#if: {{{note2|}}} |
− | * | + | | * {{{note2}}} |
− | * | + | {{#if: {{{note3|}}} |
− | + | | * {{{note3}}} | |
− | [[Image: | + | {{#if: {{{note4|}}} |
+ | | * {{{note4}}} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | {{#if: {{{image1|}}} | ||
+ | | {{#if: {{{caption1|}}} | ||
+ | | [[Image:{{{image1}}}|frame|center|{{{caption1}}}]] | ||
+ | | [[Image:{{{image1}}}|frame|center]] | ||
+ | {{#if: {{{image2|}}} | ||
+ | | {{#if: {{{caption2|}}} | ||
+ | | [[Image:{{{image2}}}|frame|center|{{{caption2}}}]] | ||
+ | | [[Image:{{{image2}}}|frame|center]] | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
==See Also== | ==See Also== | ||
* [[List of Quest NPCs]] | * [[List of Quest NPCs]] | ||
− | [[Category: | + | [[Category:Quest NPCs]]</includeonly> |
Revision as of 22:22, 26 November 2009
Template:Quest NPC is designed for use on Quest NPC pages to standardize their look and feel and to make them easier to create.
Template
{{Quest NPC |location= |title1= |details1= |reward1= |title2= |details2= |reward2= |title3= |details3= |reward3= |title4= |details4= |reward4= |note1= |note2= |note3= |note4= |image1= |caption1= |image2= |caption2= }}
Parameters
[[Category:{{{category}}} Templates|Quest NPC]]
location
- Usage: Mandatory
- Description: The location parameter takes a string or strings denoting the location at which the quest NPC can be found. This is used to generate the end of the introductory sentence. The location is displayed as a link to the location's corresponding page.
- Valid Value(s): Any string or strings that correspond to a location in the game.
title1
- Usage: Mandatory
- Description: The title1 parameter takes a string or strings denoting a quest that the quest NPC offers. This is used to generate the first cell in the first row of the quest table.
- Valid Value(s): Any string or strings that correspond to a valid quest.
title2
- Usage: Optional
- Description: The title2 parameter takes a string or strings denoting a quest that the quest NPC offers. This is used to generate the first cell in the second row of the quest table. If no value is supplied for details2 or reward2, title2 will not display.
- Valid Value(s): Any string or strings that correspond to a valid quest.
title3
- Usage: Optional
- Description: The title3 parameter takes a string or strings denoting a quest that the quest NPC offers. This is used to generate the first cell in the third row of the quest table. If no value is supplied for details3 or reward3, title3 will not display.
- Valid Value(s): Any string or strings that correspond to a valid quest.
title4
- Usage: Optional
- Description: The title4 parameter takes a string or strings denoting a quest that the quest NPC offers. This is used to generate the first cell in the fourth row of the quest table. If no value is supplied for details4 or reward4, title4 will not display.
- Valid Value(s): Any string or strings that correspond to a valid quest.
detailsX
|details1= ... |details2= ... |details3= ... |details4=
The detailsX parameters display the most basic details associated with the various quests that the quest NPC offers. They are displayed in the second column of the quest table. When supplying a value for these parameters, any string may be used. The details1 parameter is mandatory, but every one after that is optional. All detailsX parameters after detail1 only appear if the corresponding titleX and rewardX parameters are supplied with values.
rewardX
|reward1= ... |reward2= ... |reward3= ... |reward4=
The rewardX parameters display the rewards received from the various quests that the quest NPC offers. They are displayed in the third column of the quest table. When supplying a value for these parameters, any string may be used. The reward1 parameter is mandatory, but every one after that is optional. All rewardX parameters after reward1 only appear if the corresponding titleX and detailsX parameters are supplied with values.
noteX
|note1= |note2= |note3= |note4=
The noteX parameters display any additional notes on the quest NPC and their associated quests. They are displayed as bullet points under a "Notes" header below the quest table. When supplying a value for these parameters, any string may be used. The "Notes" header itself is included when use is made of the note1 parameter. All of the noteX parameters are sequentially conditional; I.e. if a value is supplied for notes2, but no value is supplied for notes1 before it, notes2 will not appear.
imageX
|image1= ... |image2=
The imageX parameters display any available images of the quest NPC and their associated quests. They are displayed in centered frames below the quest table, or below the noteX bullet points, if any exist. When entering a value for these parameters, any valid image name may be used. All of the imageX parameters are sequentially conditional; I.e. if a value is supplied for image2, but no value is supplied for image1 before it, image2 will not appear.
|caption1= ... |caption2=
The captionX parameters display optional captions that correspond to the images in the imageX parameters. When supplying a value for these parameters, any string may be used. All of the captionX parameters are dependant on their corresponding imageX parameters; I.e. if a value is supplied for caption1, but no value is supplied for image1, caption1 will not appear.