RuneScape:Templates

From RuneScape Classic Wiki
Jump to: navigation, search

There are many templates in use in RuneScape Classic Wiki; these are only a subset, representing some of the most important and commonly used ones. If you feel that a template belongs on this page, do not hesitate to add it.

  • Category:Templates should cover all templates in the wiki, categorized into the various subcategories.
  • The Template namespace (found from Special:Allpages) always has all templates in the wiki, sorted alphanumerically.

What are templates?

Wiki templates provide a means to insert the same content over and over in different (or the same) pages. This saves editors the hassle of duplicating the same text again and again, and also helps ensure consistency.

Templates are generally shown with the format required to use the template (e.g. {{stub}}). Clicking the template name takes you to the template's page, where you can see what it looks like and how it is used.

Detailed instructions on the usage of each template should exist on:

  1. a subpage using {{documentation}}; or
  2. the template page itself (inside "noinclude" tags); or
  3. the template's talk page.

Article templates

The following templates are for use in the article namespace

General wiki templates

otheruses

{{otheruses|topic|other topic}}

  • Use at the top of articles to link to other articles with similar names.

Main article

{{main|main article}}

  • Use at the start of a section to link to the main article on it.

Right-aligned Table of Contents

{{tocright}}

  • This template floats the table of contents (toc) on the right. It should only be used when absolutely necessary, to keep consistent design.

Clear

{{clear}}

  • This template is used to reduce the amount of non-wikicode used on pages, replacing the code <br style="clear:both;" />. Its use should generally be avoided.
  • You can use {{clear}} instead of the HTML tag that clears space below things like images, pictures and tables, so the following stuff doesn't begin until the bottom of the image, picture or table box.
  • You can also use {{clear|left}} or {{clear|right}} to clear only left or right floats.
This code... Produces this...
{{otheruses|topic|other topic|link}}
This article is about RuneScape Classic. For RuneScape, see rsw:RuneScape.
{{main|<mainarticle>}}
Main article: [[<mainarticle>]]
{{Infobox Bonuses}}
{{Infobox Location}}
{{Infobox Item}}
{{Infobox Monster}}
{{Infobox NPC}}
{{Infobox Prayer}}
{{quest details}}
Release date: 4 January 2001 (Update)
Start: Lumbridge Cook
Difficulty: *****
Length: Short
Requirements: None
Items needed: Flour, Milk, Egg
Monsters to kill: None

Article management templates

Stubs

{{stub}}

  • When a page has little or no useful information, then it is likely a stub. This template will include them in Category:Stubs, and is used to list which articles need expanding.

Nominate an article for deletion

{{delete}}

{{d|reason}}

Disambiguation articles

{{disambig}}

  • If you have several articles that have similar or identical names, you may wish to create a "disambiguation" page at the main article name, with the articles taking an extra phrase in brackets afterwards. For example:
The Prince <-- disambiguation page, with links to:
The Prince (frog)
The Prince (human)
  • Using {{disambig}} marks an article as a disambiguation page by adding a banner to the article and categorizing it under Category:Disambiguation. Add links to the various articles under the banner.
This code... Produces this...
{{stub}}
Treestump.png This article is a stub.
You can help by expanding it.
{{delete}}
{{d|<reason>}}
{{disambig}}
Disambig gray.svg
This page is used to distinguish between articles with similar names.
If an internal link led you to this disambiguation page, you may wish to change the link to point directly to the intended article.
{{cleanup}}
Grain.png This article or section is in need of cleanup.
You can edit this page to improve it.


Talk page templates

The following templates are for use on talk pages

Welcome

{{welcIP}} and {{welcome}}

  • The first (with longer version "welcomeIP" for those of you who like typing more) is to welcome new non-vandalistic contributors who are "anonymous", identified only by their IP number; it encourages them to register.
  • The second template is for welcoming new registered users. Should be customized for the wiki, indicating the pages we most want newcomers to visit.
  • The above two templates are very suitable for having "subst:" prefixed, because they can be edited with additions or deletions appropriate to the apparent strengths of the person being welcomed; e.g. if the contributor has already demonstrated good wiki editing skills you could delete references to pages about "how to edit".
This code... Produces this...
{{welcome}} ==Welcome!==
Wiki.png
Hello, Templates, and welcome to the RuneScape Classic Wiki! We're happy to see new editors making contributions. Here are a few links you might find helpful:

Please remember to sign your messages on talk pages by typing four tildes (~~~~); this automatically inserts your username and the date. If you have any trouble, feel free to ask questions on the user help page, or on Discord, where a lot of our editors hang out.

We hope you like it here and decide to stay!

{{welcIP}}

Hi there!

Wiki.png

Welcome to this Wiki, and thank you for your contributions! We invite you to log in and create a user name.

Creating a user name is free and takes only a minute and it gives you greater anonymity if that is your wish. In addition, it is easier for other contributors to ask you questions and help you.

  • Of course, we hope you continue to make contributions, even if not logged in.
  • If you are new to Wiki or wikis in general, please visit the Community portal for an outline of some of the main parts of the site and links to pages that show you how to edit.
  • Discussion of any aspect of the site, and enquiries, can be made at the Forum or on the "discussion" page associated with each article. Please sign and date your contributions there, so that readers know "who to talk to" and whether your message is probably still of current interest.
{{unsigned|username}} —Preceding unsigned comment added by [[User:|]] ([[User talk:|talk]] • contribs)
{{talkheader}}

This is the talk page for discussing improvements to the RuneScape:Templates article.

  • Please sign and date your posts by typing four tildes (~~~~).
  • Put new text under old text. Click here to start a new topic.
  • If you're new to the wiki, please take a look at the talk page help.
  • Be polite
  • Assume good faith
  • Be welcoming
{{archive}}

User page templates

The following templates are for use on user pages

See also Userboxes

This code... Produces this...
{{highscores}}

Highscores

RunesScape Classic Wiki
Staff
Attack 1 Edit
Hits 10 Edit
Mining 1 Edit
Strength 1 Edit
Agility 1 Edit
Smithing 1 Edit
Defense 1 Edit
Herblaw 1 Edit
Fishing 1 Edit
Ranged 1 Edit
Thieving 1 Edit
Cooking 1 Edit
Prayer 1 Edit
Crafting 1 Edit
Firemaking 1 Edit
Magic 1 Edit
Fletching 1 Edit
Woodcut 1 Edit
Quest 0 Edit
Total 27
Combat 3.5
{{goal}}
Mining
72 85
27% 13 2,358,594 xp

Image templates

The following templates are for use with images

This code... Produces this...
{{transparent}}
{{jpeg}}
{{gif}}

Image copyright templates

This code... Produces this...
{{Cc-by-sa-3.0}}
Attribution
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 license.
{{Fairuse}}
Copyright.svg
This image, obtained outside of the Classic RuneScape client, is classified as a non-free image.
The image depicted here is subject to Jagex's copyright and is displayed here under the conditions of Fair use.
{{From Wikimedia}}

This file was originally uploaded on Wikipedia or another Wikimedia project.

{{GFDL}}

This file is licensed under the GFDL.

{{No license}}

This file does not have information on its copyright status.

{{Other free}}

This file is licensed under a free license.

{{PD}}

This file is in the public domain

{{Permission}}

This file is copyrighted. The copyright holder has given permission for its use.

{{Self}}

This file was uploaded by the photographer or author.

Category templates

Templates for use on category pages

General category template

{{category}}

  • This can be added to categories to add general categorising details. Use in cases where it may be useful to point out to users how to categorise, such as popular categories.

Template category template

{{templatecategory}}

  • This should be added to any template-related categories, to list template-specific categorising details, which differ from those of normal pages.
This code... Produces this...
{{category}} To add an article, image, or category to this category, append [[Category:Templates]] to the end of its page.
{{templatecategory}} ==Using this category==

To put a template in Category:Templates:

  • Use <includeonly>[[Category:Templates|{{PAGENAME}}]]</includeonly> on the documentation page (see Template:Documentation for more info). The "<includeonly>" tags are necessary to prevent categorizing all pages using the template (and the documentation page) in the template category! Please also note the |{{PAGENAME}}.
  • If your template is meant to be used in-line, try and make sure that there are as few line feeds (breaks, whitespace, etc.) as possible.
  • Remember that a template can be put in multiple categories if it belongs to them all!
  • Or, if this is not quite the right category, go back to Category:Templates and try to find a better suited subcategory.
{{imagecategory}} ==How to add your own image==
  • To upload images, visit Special:Upload.
  • When uploading them, please add a description and category in the summary box.
  • To add an image to this category, put [[Category:Templates]] in that image article.
  • Add to a page by using the Gallery widget or by using the code [[Image:Filename.jpg|thumb|Caption]]

Template templates

The following templates are for use within other templates

T is for template

{{t|template}}

  • This template allows you to show example template code (with a link to the templates) without using the template itself. It is used extensively on this page.
This code... Produces this...
{{t|<template>}} {{[nil <template>]}}
{{documentation}}
Template documentation
This documentation is transcluded from RuneScape:Templates/doc. [edit] [purge]

See also