Difference between revisions of "Template:Quest NPC"

m
m
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[{{PAGENAME}}]] is an [[NPC]] [[Quests|quest giver]] that is located {{{location}}}.
+
<noinclude>{{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
 +
|location=
 +
|hail=
 +
|title1=
 +
|details1=
 +
|reward1=
 +
|title2=
 +
|details2=
 +
|reward2=
 +
|title3=
 +
|details3=
 +
|reward3=
 +
|title4=
 +
|details4=
 +
|reward4=
 +
|title5=
 +
|details5=
 +
|reward5=
 +
|title6=
 +
|details6=
 +
|reward6=
 +
|note1=
 +
|note2=
 +
|note3=
 +
|note4=
 +
|image1=
 +
|caption1=
 +
|image2=
 +
|caption2=
 +
}}</nowiki>
 +
|category=Article
 +
}}
 +
{{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=hail
 +
|takes=a string or strings
 +
|denotes=the text that the Quest NPC hails you with upon approach
 +
|generates=the "Hail" section
 +
|validvalues=Any string or strings.
 +
}}
 +
{{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
 +
|othernotes=If no value is supplied for {{Monospace|title1}}, no rows beyond the first will be displayed in the quest table.
 +
|validvalues=Any string or strings that correspond to a valid quest.
 +
}}
 +
{{Template Parameter
 +
|name=details1
 +
|usage=mandatory
 +
|takes=a string or strings
 +
|denotes=the most basic details associated with the first quest listed in the quest table
 +
|generates=the second cell in the first row of the quest table
 +
|validvalues=Any string or strings.
 +
}}
 +
{{Template Parameter
 +
|name=reward1
 +
|usage=mandatory
 +
|takes=a string or strings
 +
|denotes=the rewards received from the first quest listed in the quest table
 +
|generates=the third cell in the first row of the quest table
 +
|validvalues=Any string or strings.
 +
}}
 +
{{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===
 +
<pre>
 +
|details1=
 +
...
 +
|details2=
 +
...
 +
|details3=
 +
...
 +
|details4=
 +
</pre>
  
{| style="border:1px solid #000000; border-collapse:collapse; margin:auto; text-align:center; width:auto;"
+
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.
! style="background-color:#9F3215; border:1px solid #000000; color:#FFFFFF; padding:5px;" | Quest Title
+
 
! style="background-color:#9F3215; border:1px solid #000000; color:#FFFFFF; padding:5px;" | Details
+
===rewardX===
! style="background-color:#9F3215; border:1px solid #000000; color:#FFFFFF; padding:5px;" | Reward
+
<pre>
|-
+
|reward1=
| style="border:1px solid #000000; padding:5px;" | [[{{{title1}}}]]
+
...
| style="border:1px solid #000000; padding:5px;" | {{{details1}}}
+
|reward2=
| style="border:1px solid #000000; padding:5px;" | {{{reward1}}}
+
...
|-
+
|reward3=
{{#if: {{{title2|}}}
+
...
| {{#if: {{{details2|}}}
+
|reward4=
  | {{#if: {{{reward2|}}}
+
</pre>
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title2}}}]]
+
 
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details2}}}
+
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.
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{reward2}}}
+
 
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title2}}}]]
+
===noteX===
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details2}}}
+
<pre>
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
|note1=
    }}
+
|note2=
  | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title2}}}]]
+
|note3=
    {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
|note4=
    {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
</pre>
  }}
+
 
 +
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===
 +
<pre>
 +
|image1=
 +
...
 +
|image2=
 +
</pre>
 +
 
 +
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.
 +
 
 +
===captionX===
 +
<pre>
 +
|caption1=
 +
...
 +
|caption2=
 +
</pre>
 +
 
 +
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.
 +
</noinclude><includeonly>__NOTOC__
 +
[[{{PAGENAME}}]] is an [[NPC]] [[Quests|quest giver]] that is located {{{location}}}.
 +
{{#if: {{{hail|}}}
 +
| ==Hail==
 +
{{{hail}}}
 
}}
 
}}
 +
==Quests==
 +
{| class="uoguidetable"
 +
! Quest Title
 +
! Details
 +
! Reward
 
|-
 
|-
{{#if: {{{title3|}}}
+
{{#if: {{{title1|}}}
| {{#if: {{{details3|}}}
+
| {{!}} [[{{{title1}}}]]
  | {{#if: {{{reward3|}}}
+
{{!}} {{{details1}}}
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title3}}}]]
+
{{!}} {{{reward1}}}
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details3}}}
+
  {{#if: {{{title2|}}} | {{#if: {{{details2|}}} | {{#if: {{{reward2|}}}
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{reward3}}}
+
  | {{!}}-
     | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title3}}}]]
+
{{!}} [[{{{title2}}}]]
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details3}}}
+
{{!}} {{{details2}}}
       {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
{{!}} {{{reward2}}}
    }}
+
    {{#if: {{{title3|}}} | {{#if: {{{details3|}}} | {{#if: {{{reward3|}}}
  | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title3}}}]]
+
     | {{!}}-
    {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
{{!}} [[{{{title3}}}]]
    {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
{{!}} {{{details3}}}
  }}
+
{{!}} {{{reward3}}}
}}
+
       {{#if: {{{title4|}}} | {{#if: {{{details4|}}} | {{#if: {{{reward4|}}}
|-
+
      | {{!}}-
{{#if: {{{title4|}}}
+
{{!}} [[{{{title4}}}]]
| {{#if: {{{details4|}}}
+
{{!}} {{{details4}}}
  | {{#if: {{{reward4|}}}
+
{{!}} {{{reward4}}}
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title4}}}]]
+
        {{#if: {{{title5|}}} | {{#if: {{{details5|}}} | {{#if: {{{reward5|}}}
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details4}}}
+
        | {{!}}-
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{reward4}}}
+
{{!}} [[{{{title5}}}]]
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title4}}}]]
+
{{!}} {{{details5}}}
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details4}}}
+
{{!}} {{{reward5}}}
       {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
          {{#if: {{{title6|}}} | {{#if: {{{details6|}}} | {{#if: {{{reward6|}}}
     }}
+
          | {{!}}-
   | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title4}}}]]
+
{{!}} [[{{{title6}}}]]
    {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
{{!}} {{{details6}}}
    {{!}} style="border:1px solid #000000; padding:5px;" {{!}}
+
{{!}} {{{reward6}}}
  }}
+
          }} }} }}
 +
        }} }} }}
 +
       }} }} }}
 +
     }} }} }}
 +
   }} }} }}
 +
| {{!}} [[{{{title1}}}]]
 +
{{!}} {{{details1}}}
 +
{{!}} {{{reward1}}}
 
}}
 
}}
 
|}
 
|}
Line 75: Line 220:
 
| {{#if: {{{caption1|}}}
 
| {{#if: {{{caption1|}}}
 
   | [[Image:{{{image1}}}|frame|center|{{{caption1}}}]]
 
   | [[Image:{{{image1}}}|frame|center|{{{caption1}}}]]
 +
    {{#if: {{{image2|}}}
 +
    | {{#if: {{{caption2|}}}
 +
      | [[Image:{{{image2}}}|frame|center|{{{caption2}}}]]
 +
      | [[Image:{{{image2}}}|frame|center]]
 +
      }}
 +
    }}
 
   | [[Image:{{{image1}}}|frame|center]]
 
   | [[Image:{{{image1}}}|frame|center]]
 
     {{#if: {{{image2|}}}
 
     {{#if: {{{image2|}}}
Line 84: Line 235:
 
   }}
 
   }}
 
}}
 
}}
 
 
==See Also==
 
==See Also==
 
* [[List of Quest NPCs]]
 
* [[List of Quest NPCs]]
  
[[Category:Quest NPCs]]</includeonly><noinclude>This template is currently undergoing testing.</noinclude>
+
{{Categorize|Quest NPCs}}</includeonly>

Latest revision as of 11:16, 7 April 2012

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=
|hail=
|title1=
|details1=
|reward1=
|title2=
|details2=
|reward2=
|title3=
|details3=
|reward3=
|title4=
|details4=
|reward4=
|title5=
|details5=
|reward5=
|title6=
|details6=
|reward6=
|note1=
|note2=
|note3=
|note4=
|image1=
|caption1=
|image2=
|caption2=
}}

Parameters

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.

hail

  • Usage: Optional
  • Description: The hail parameter takes a string or strings denoting the text that the Quest NPC hails you with upon approach. This is used to generate the "Hail" section.
  • Valid Value(s): Any string or strings.

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. If no value is supplied for title1, no rows beyond the first will be displayed in the quest table.
  • Valid Value(s): Any string or strings that correspond to a valid quest.

details1

  • Usage: Mandatory
  • Description: The details1 parameter takes a string or strings denoting the most basic details associated with the first quest listed in the quest table. This is used to generate the second cell in the first row of the quest table.
  • Valid Value(s): Any string or strings.

reward1

  • Usage: Mandatory
  • Description: The reward1 parameter takes a string or strings denoting the rewards received from the first quest listed in the quest table. This is used to generate the third cell in the first row of the quest table.
  • Valid Value(s): Any string or strings.

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.

captionX

|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.