Difference between revisions of "Help:Templates"

From The Utopian Encyclopedia
Jump to: navigation, search
m (Text Effects)
m
Line 1: Line 1:
 +
{{Help}}
 +
 
{{verdana}}A template is a page created explicitly for transclusion - the process of including the contents of one page within another page. Any page can be transcluded, but templates are designed specifically for that purpose, usually for repetitive material that might need to show up on any number of Wikimedia articles or pages.  
 
{{verdana}}A template is a page created explicitly for transclusion - the process of including the contents of one page within another page. Any page can be transcluded, but templates are designed specifically for that purpose, usually for repetitive material that might need to show up on any number of Wikimedia articles or pages.  
  

Revision as of 02:08, 6 July 2009

This is part of the Utopia WIKI Help Guide Series.

This Page references Utopia Wiki's official guide to Templates. Please use common sense.



A template is a page created explicitly for transclusion - the process of including the contents of one page within another page. Any page can be transcluded, but templates are designed specifically for that purpose, usually for repetitive material that might need to show up on any number of Wikimedia articles or pages.

Templates may contain plain text, wikitext, HTML and/or CSS, or even other templates, and they have some limited programming capacities: customizable values (called parameters), calculation and branchings (using parser functions), and access to wiki-specific variables (magic words), such as dates, times, and page names.

Creating, Editing & Using Templates

Creating a New Template

You start a new template in the same way you would start a normal page. The only difference is that its title must be in the form of Template:templatename. Once you have made the template, you can add ''{{templatename}}'' to the pages you want to use it on. Every page using this template will get the same text, each time a user visits it. When the template is updated, all pages containing the template tag will be automatically updated.

Editing an Existing Template

If the template you want to edit looks like ''{{Table}}'', you would go to '''Template:Table''' to edit it. To get there, type in the URL to your address bar, or look for it below. Once you are there, just click "edit" and edit it in the same way you would any other page. Please be aware that your edit might affect many pages, so be cautious.

Using an Existing Template

To use a template in an article or page, a template tag (always of the form {{template name}} is added where you want the template to appear.


List of Templates on UtoWiki

Text Effects


Code

{{verdana}} turns all text into verdana font face, default size 3 and line spacing 150%.

Tables


General

Use || to create a new column. For example, if you want 3 columns, then you would do '''LEFT HEADER''' || '''CENTER HEADER''' || '''RIGHT HEADER''' .

  • For 2 columns, your wikitext would look like '''LEFT HEADER''' || '''RIGHT HEADER'''


Use |- to denote the end of a row, and | to start a new row.


Red Table

Code

 {{Table}} 
 | '''LEFT HEADER''' || '''RIGHT HEADER'''
 |-
 | LEFT CELL || RIGHT CELL
 |-
 | LEFT CELL2 || RIGHT CELL2
 |-
 |}

Example

LEFT HEADER RIGHT HEADER
LEFT CELL RIGHT CELL
LEFT CELL2 RIGHT CELL2


Modifiers Table for Formulas

Code

 {{Mods}}
 | Modifier Type || Multiplier if Modifier = true || Multiplier if Modifier = False
 |-
 | Modifier Type2 || Multiplier if Modifier2 = true || Multiplier if Modifier2 = False
 |-
 |}

Example

Modifier Type Active Otherwise
Modifier Type Multiplier if Modifier = true Multiplier if Modifier = False
Modifier Type2 Multiplier if Modifier2 = true Multiplier if Modifier2 = False


Units Table for Units

Code

 {{Units}}
 | Number1 || Number2 || Costs1 || NW Value
 |}

Example

Offense Defense Cost Networth
Number1 Number2 Costs1 NW Value


User Talk Page

Code

 {{usertalk}}

Example

This is the UtopiaWIKI User talk page for Templates, where you can send messages and comments to Templates.
  • Please sign and date your posts by typing four tildes (~~~~).
  • Put new text under old text. Click here to start a new topic.
  • Indent your replies to a comment with the use of ":" before your reply.