Farming Simulator Wiki:Templates

From Farming Simulator Wiki
Jump to navigation Jump to search

Farming Simulator Wiki makes use of several different templates, which can help improve the consistency and appearance of content. These templates aid in the organization of articles, help editors accomplish their tasks, and can even improve the appearance of articles. Templates provide a means to insert the same content in many places. This saves editors the effort of managing the same content in more than one place, and also helps ensure consistency:

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

Usage

Templates are generally shown with the format required to use the template (e.g. {{str len}}). 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.

For more information on templates, see Help:Templates.

Content Templates

Content templates are templates which contribute to the content of articles. More information is available on the documentation subpages of each template:

Article management templates

Stub

{{stub}}

  • Add this to a low quality article to flag it as requiring additional improvement.

Nominate an article for deletion

{{delete}}

Category templates

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.

General wiki templates

Clear

{{clr}}, plus {{clrl}} and {{clrr}}

  • 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 {{clr}} 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 {{clrl}} or {{clrr}} to clear only left or right floats.

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.

Sandbox

{{sandbox}}

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.

All templates

See also

  • Wikia Templates
  • Wikipedia; may be copied with the proper acknowledgment, but some need tweaking to work properly on Wikia, so use a Wikia one if possible.