Difference between revisions of "Template:Quest NPC"

m
m
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__
+
<noinclude>{{Template Overview
[[{{PAGENAME}}]] is an [[NPC]] [[Quests|quest giver]] that is located {{{location}}}.
+
|usedon=[[List of Quest NPCs|Quest NPC]]
 
+
|purpose=standardize their look and feel and to make them easier to create
 
+
|template=<nowiki>{{Quest NPC
{| style="border:1px solid #000000; border-collapse:collapse; margin:auto; text-align:center; width:auto;"
+
! 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
+
! style="background-color:#9F3215; border:1px solid #000000; color:#FFFFFF; padding:5px;" | Reward
+
|-
+
| style="border:1px solid #000000; padding:5px;" | [[{{{title1}}}]]
+
| style="border:1px solid #000000; padding:5px;" | {{{details1}}}
+
| style="border:1px solid #000000; padding:5px;" | {{{reward1}}}
+
|-
+
{{#if: {{{title2|}}}
+
| {{#if: {{{details2|}}}
+
  | {{#if: {{{reward2|}}}
+
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title2}}}]]
+
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{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;" {{!}} {{{details3}}}
+
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{reward3}}}
+
    }}
+
  }}
+
}}
+
|-
+
{{#if: {{{title4|}}}
+
| {{#if: {{{details4|}}}
+
  | {{#if: {{{reward4|}}}
+
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title4}}}]]
+
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details4}}}
+
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{reward4}}}
+
    }}
+
  }}
+
}}
+
|-
+
{{#if: {{{title5|}}}
+
| {{#if: {{{details5|}}}
+
  | {{#if: {{{reward5|}}}
+
    | {{!}} style="border:1px solid #000000; padding:5px;" {{!}} [[{{{title5}}}]]
+
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{details5}}}
+
      {{!}} style="border:1px solid #000000; padding:5px;" {{!}} {{{reward5}}}
+
    }}
+
  }}
+
}}
+
|}
+
{{#if: {{{note1|}}}
+
| ==Notes==
+
* {{{note1}}}
+
  {{#if: {{{note2|}}}
+
  | * {{{note2}}}
+
    {{#if: {{{note3|}}}
+
    | * {{{note3}}}
+
      {{#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==
+
* [[List of Quest NPCs]]
+
 
+
[[Category:Quest NPCs]]</includeonly><noinclude>
+
{{tocright}}
+
 
+
[[Template:Quest NPC]] is a template intended for use on any and all [[List of Quest NPCs|Quest NPC pages]] for automatic formatting.
+
 
+
==Full Template==
+
The following is the entirety of [[Template:Quest NPC]].
+
 
+
<pre>
+
{{Quest NPC
+
 
|location=
 
|location=
 +
|hail=
 
|title1=
 
|title1=
 
|details1=
 
|details1=
Line 104: Line 17:
 
|details4=
 
|details4=
 
|reward4=
 
|reward4=
 +
|title5=
 +
|details5=
 +
|reward5=
 +
|title6=
 +
|details6=
 +
|reward6=
 
|note1=
 
|note1=
 
|note2=
 
|note2=
Line 112: Line 31:
 
|image2=
 
|image2=
 
|caption2=
 
|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.
 
}}
 
}}
</pre>
 
 
==Parameters==
 
 
===location===
 
<pre>
 
|location=
 
</pre>
 
 
The ''location'' parameter displays the location at which the quest NPC can be found. It is displayed at the end of the introductory sentence. When supplying a value for this parameter, any string may be used. It is recommended that the exact name of the location be a link in the supplied string.
 
 
===titleX===
 
<pre>
 
|title1=
 
...
 
|title2=
 
...
 
|title3=
 
...
 
|title4=
 
</pre>
 
 
The ''titleX'' parameters display the titles of the various quests that the quest NPC offers. They are displayed in the first column of the quest table. When supplying a value for these parameters, any string may be used. The supplied strings will be automatically converted to links. The ''title1'' parameter is mandatory, but every one after that is optional. All ''titleX'' parameters after ''title1'' only appear if the corresponding ''detailsX'' and ''rewardX'' parameters are supplied with values.
 
  
 
===detailsX===
 
===detailsX===
Line 190: Line 153:
  
 
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.
 
+
</noinclude><includeonly>__NOTOC__
==Appearance==
+
[[{{PAGENAME}}]] is an [[NPC]] [[Quests|quest giver]] that is located {{{location}}}.
'''PAGENAME''' is an [[NPC]] [[Quests|quest giver]] that is located ''location=''.
+
{{#if: {{{hail|}}}
 
+
| ==Hail==
 
+
{{{hail}}}
{| style="border:1px solid #000000; border-collapse:collapse; margin:auto; text-align:center; width:auto;"
+
}}
! style="background-color:#9F3215; border:1px solid #000000; color:#FFFFFF; padding:5px;" | Quest Title
+
==Quests==
! style="background-color:#9F3215; border:1px solid #000000; color:#FFFFFF; padding:5px;" | Details
+
{| class="uoguidetable"
! style="background-color:#9F3215; border:1px solid #000000; color:#FFFFFF; padding:5px;" | Reward
+
! Quest Title
 +
! Details
 +
! Reward
 
|-
 
|-
| style="border:1px solid #000000; padding:5px;" | ''[[title1=]]''
+
{{#if: {{{title1|}}}
| style="border:1px solid #000000; padding:5px;" | ''details1=''
+
| {{!}} [[{{{title1}}}]]
| style="border:1px solid #000000; padding:5px;" | ''reward1=''
+
{{!}} {{{details1}}}
|-
+
{{!}} {{{reward1}}}
| style="border:1px solid #000000; padding:5px;" | ''[[title2=]]''
+
  {{#if: {{{title2|}}} | {{#if: {{{details2|}}} | {{#if: {{{reward2|}}}
| style="border:1px solid #000000; padding:5px;" | ''details2=''
+
  | {{!}}-
| style="border:1px solid #000000; padding:5px;" | ''reward2=''
+
{{!}} [[{{{title2}}}]]
|-
+
{{!}} {{{details2}}}
| style="border:1px solid #000000; padding:5px;" | ''[[title3=]]''
+
{{!}} {{{reward2}}}
| style="border:1px solid #000000; padding:5px;" | ''details3=''
+
    {{#if: {{{title3|}}} | {{#if: {{{details3|}}} | {{#if: {{{reward3|}}}
| style="border:1px solid #000000; padding:5px;" | ''reward3=''
+
    | {{!}}-
|-
+
{{!}} [[{{{title3}}}]]
| style="border:1px solid #000000; padding:5px;" | ''[[title4=]]''
+
{{!}} {{{details3}}}
| style="border:1px solid #000000; padding:5px;" | ''details4=''
+
{{!}} {{{reward3}}}
| style="border:1px solid #000000; padding:5px;" | ''reward4=''
+
      {{#if: {{{title4|}}} | {{#if: {{{details4|}}} | {{#if: {{{reward4|}}}
 +
      | {{!}}-
 +
{{!}} [[{{{title4}}}]]
 +
{{!}} {{{details4}}}
 +
{{!}} {{{reward4}}}
 +
        {{#if: {{{title5|}}} | {{#if: {{{details5|}}} | {{#if: {{{reward5|}}}
 +
        | {{!}}-
 +
{{!}} [[{{{title5}}}]]
 +
{{!}} {{{details5}}}
 +
{{!}} {{{reward5}}}
 +
          {{#if: {{{title6|}}} | {{#if: {{{details6|}}} | {{#if: {{{reward6|}}}
 +
          | {{!}}-
 +
{{!}} [[{{{title6}}}]]
 +
{{!}} {{{details6}}}
 +
{{!}} {{{reward6}}}
 +
          }} }} }}
 +
        }} }} }}
 +
      }} }} }}
 +
    }} }} }}
 +
  }} }} }}
 +
| {{!}} [[{{{title1}}}]]
 +
{{!}} {{{details1}}}
 +
{{!}} {{{reward1}}}
 +
}}
 
|}
 
|}
 
+
{{#if: {{{note1|}}}
==Notes==
+
| ==Notes==
* ''note1=''
+
* {{{note1}}}
* ''note2=''
+
  {{#if: {{{note2|}}}
* ''note3=''
+
  | * {{{note2}}}
* ''note4=''
+
    {{#if: {{{note3|}}}
 
+
    | * {{{note3}}}
[[Image:''image1=''|frame|center|''caption1='']] [[Image:''image2=''|frame|center|''caption2='']]
+
      {{#if: {{{note4|}}}
 
+
      | * {{{note4}}}
 +
      }}
 +
    }}
 +
  }}
 +
}}
 +
{{#if: {{{image1|}}}
 +
| {{#if: {{{caption1|}}}
 +
  | [[Image:{{{image1}}}|frame|center|{{{caption1}}}]]
 +
    {{#if: {{{image2|}}}
 +
    | {{#if: {{{caption2|}}}
 +
      | [[Image:{{{image2}}}|frame|center|{{{caption2}}}]]
 +
      | [[Image:{{{image2}}}|frame|center]]
 +
      }}
 +
    }}
 +
  | [[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:Page Templates|{{PAGENAME}}]]</noinclude>
+
{{Categorize|Quest NPCs}}</includeonly>

Latest revision as of 12: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.