Wikia

WoWWiki

Changes: Help:Templates

Edit

Back to page

m
 
Line 24: Line 24:
 
| money = {{Cost|123|45|67}}
 
| money = {{Cost|123|45|67}}
 
| repeatable = Yes
 
| repeatable = Yes
| previous = {{quest|Your Place in the World}}
+
| previous = {{quest|Your Place In The World}}
 
| next = {{quest|Scarab Shells}}
 
| next = {{quest|Scarab Shells}}
 
| id = 788
 
| id = 788
Line 49: Line 49:
 
| money = {{Cost|123|45|67}}
 
| money = {{Cost|123|45|67}}
 
| repeatable = Yes
 
| repeatable = Yes
| previous = {{quest|Your Place in the World}}
+
| previous = {{quest|Your Place In The World}}
 
| next = {{quest|Scarab Shells}}
 
| next = {{quest|Scarab Shells}}
 
| id = 788
 
| id = 788
 
}}</nowiki>
 
}}</nowiki>
{{clr}}
+
{{clear|both}}
   
 
<!-- Remove the below, in your final version -->
 
<!-- Remove the below, in your final version -->
Line 81: Line 81:
 
; ida : The internal id of the quest for Allakhazam and Wowhead. Helps link the quest to Thottbot external database. Don't use if you are using the recommend, but optional "id" above.
 
; ida : The internal id of the quest for Allakhazam and Wowhead. Helps link the quest to Thottbot external database. Don't use if you are using the recommend, but optional "id" above.
   
{{clr}}
+
{{clear|both}}
 
<!-- Now replace the code below with your own code! Be sure to keep </noinclude> -->
 
<!-- Now replace the code below with your own code! Be sure to keep </noinclude> -->
 
</noinclude>{{Iconbox
 
</noinclude>{{Iconbox

Latest revision as of 21:40, July 24, 2010



Alliance 32 C'Thun's Legacy
StartEye of C'Thun
EndCaelestrasz
Level60 (Requires 59)
TypeGroup
CategoryHellfire Peninsula
Experience40-500
ReputationWildhammer +100-500
Rewards[Stoneskin Totem] or [Earth Totem]
123Gold 45Silver 67Copper
RepeatableYes
PreviousYour Place In The World
NextScarab Shells
Icon-information-22x22To add in an example of what your template will look like when called, create a sub-page from the template. See Template:Questbox/code as reference. Add in an example of your code by creating a sub-page from the template. Then include it, like below.

Use this space to describe what your template does, and an example of where it could be used.

{{questbox
 | name = C'Thun's Legacy
 | faction = Alliance
 | level = 60
 | levelreq = 59
 | type = Elite
 | category = Hellfire Peninsula
 | start = [[Eye of C'Thun]]
 | end = [[Caelestrasz]]
 | reputation = [[Wildhammer]] +100-500
 | experience = 40-500
 | rewards = {{loot|common|Stoneskin Totem}} or {{loot|common|Earth Totem}}
 | money = {{Cost|123|45|67}}
 | repeatable = Yes
 | previous = {{quest|Your Place In The World}}
 | next = {{quest|Scarab Shells}}
 | id = 788
}}
Icon-information-22x22Now add in what each argument of the template does, and make sure you head it as appropriate.

Important Fields Edit

name 
The name of the quest. Defaults to "Untitled".
faction 
"Alliance", "Horde", or "Neutral". Denotes which faction is eligible for the quest, or both. Defaults to "Neutral".
start 
The NPC, item, or object responsible for initiating the quest. Braces required. Defaults to "Unknown".
end 
The NPC, item, or object responsible for ending the quest. Braces required. Defaults to the value of start.
level 
The difficulty level of the quest, exposed by the quest API or an quest viewer add-on. Defaults to "1".
levelreq 
The minimum level required to accept the quest. Datamined from Thottbot. Defaults to "1".
rewards 
A list of linked items rewarded by the quest. Written in English, e.g. [Reward A] or [Reward B], and [Reward C].

Recommended, but Optional Edit

experience 
The amount of experience gained from completing the quest.
previous 
The quest required to be completed before starting the current quest. Written using {{quest|<quest_name>}} or similar.
next 
The quest that follows the current quest in a series. Written using {{quest|<quest_name>}} or similar.
id 
The internal id of the quest for Thottbot and Allakhazam (if they are the same). Helps link the quest to external databases. Don't use if you are using the optional separate IDs below: idt or ida.

Optional Edit

type 
"Group", "Dungeon", "Raid", "PvP". Defaults to hidden.
category 
The category under which the quest appears in the quest log (usually a class or a zone). No default value, braces not required.
reputation 
The amount of reputation affected by the quest, written in the style +100 Wildhammer or -100 Undercity. Braces necessary.
experience 
The amount of experience gained from completing the quest.
money 
The amount of money awarded by completing the quest. Use the cost template {{cost|<256>|<128>|<64>}}
repeatable 
Accepts "Yes". Indicates if the quest is repeatable. Defaults to hidden.
idt 
The internal id of the quest for Thottbot-only. Helps link the quest to Thottbot external database. Don't use if you are using the recommend, but optional "id" above.
ida 
The internal id of the quest for Allakhazam and Wowhead. Helps link the quest to Thottbot external database. Don't use if you are using the recommend, but optional "id" above.
Neutral 32 Untitled
Start Unknown
End Unknown
Level 1 (1)

EDIT TO VIEW SOURCE FOR COMMENTS AND NOTES


Use {{subst: :Boilerplate:Template}} to import this boilerplate into a page

A template is a special type of page that has been designed so its content can be included in other pages. Since a given template can be included in many pages, it can help reduce duplication and promote a uniform style between pages.

Templates are usually located in the Template namespace. This includes any page with a name beginning with Template:, such as Template:Name.

Video overview

If you're new to templates, this video will help you get started.


Why use templates?

Templates can be useful for...

  • Creating content that should appear on many pages.
  • Formatting content (such as infoboxes) in a way that should be consistent across many pages.
  • Creating a shortcut for writing things that you repeat often when communicating with others.
  • Replacing long, complicated code so that a page is easier for other users to edit.
  • Protecting parts of a page from editing while leaving other sections open for edits.

How to create a basic template

Templates can be very powerful, but also sometimes very complicated. It often helps to start by creating the simplest possible kind of template, and then experimenting from there.

  • Type "Hello, World" in the editor.
  • Click "Publish." You have just created a template with some sample content.
  • On your wiki, create a new article called "Testing templates".
  • In the editor, go to Source mode and enter the following code:
{{Example}}
  • Click Publish. Your "Testing Templates" page should display the text you added to your template.

You've successfully created and used a template! Now you can change the content of your template and add it to more pages to make it more useful for your wiki.

Adding and editing pre-existing templates

Templates-rightrail

Wikis come with pre-loaded default templates. You can view a complete list of templates available on your wiki by going to Special:AllPages and selecting "Template" from the namespace dropdown menu. Click "Go" and all available templates will appear in a list.

  • In the Visual editing mode, you can select from the list of all templates available on your wiki by clicking "Add other templates".
  • In source mode, you can use the code {{Template name}} to add any template to your wiki.
  • Advanced users can edit the page MediaWiki:Editor-template-list to change the list of templates available by default in the "Templates" section of the editor. Up to 4 templates can be in this list.

Substituting templates

A different way to use a template is to substitute its content into a page. This is done by inserting subst: immediately after the opening braces: {{subst:templatename}}. Once the page is saved, the link to the template is removed and the template output is substituted in its place and can be further edited. Any updates to the template will not affect the content that was substituted into the page.

To learn how to change the output of the template based on what the user inputs, see Help:Template parameters and Help:Parser functions.

Updating and adding standard templates

Wikia's official Starter Pages and semi-official Templates wikis occasionally improve some of their documentation as well as adding new templates specifically designed for Wikia sites, and are therefore worth checking from time to time.
For sites created before about December 2008, the Starter Pages wiki should be compared and ideally used for upgrading to its standard documentation system similar to that introduced in Wikipedia.

Template Webinar

Looking for further video instruction? This webinar recording overviews the basics of adding and customizing templates for your wiki.


See also

Further help and feedback

Around Wikia's network

Random Wiki