Help:Templates

From Nookipedia, the Animal Crossing wiki

Jump to: navigation, search

This article is all about using templates on Nookipedia. It will teach you how to add and use templates in articles.

What is a template?[edit]

A template allows information stored on one page of the wiki to be displayed on another page. This process is called transclusion and is signaled by a template tag – a string surrounded by two braces on either side (e.g. {{roundy}}).

Why do we use templates?[edit]

Templates function as a sort of shorthand so that long or frequently used strings of text, HTML and/or CSS code do not need to be typed repeatedly. They are often used when information needs to be organized consistently across multiple pages, usually in the form of tables, lists, or other containers of information. They can also be used to more quickly apply formatting to text (e.g. {{PG}} produces Animal Crossing), or to automatically add articles to categories.

How do I use templates?[edit]

To use a template it must be correctly called using the template tag. First, determine the template to be called. To search for a template, type "Template:" in the search bar. All templates contain this identifier, and it is an optional component of a template tag (e.g. both {{Template:roundy}} and {{roundy}} are valid template calls). Once you've determined which template to use, place brackets {{ }} on either side of the template name. If the template is not transcluded onto the page, and instead you receive something like this – Template:Test, a link to a template that doesn't exist, then the template name you used is incorrect. A major advantage to using templates is that they can be updated, and these changes will take effect immediately on any page the template appears on.

Creating templates[edit]

Template pages are created the same way any other page is created. Begin by typing in your desired template name into the search bar preceded by the word "Template:". All templates must start with this identifier in order to function as a template instead of an article page. If the template does not already exist, click the link provided to create the new page.

The template's code should be typed into the wikitext editor. Remember that anything you type here will be "cut and pasted" into another page whenever this template is called. For example, if you create a template with the name {{test}} and put "This is a test." on the template page, whenever someone calls {{test}} it will produce "This is a test." on the page. Just like any other page on the wiki, templates can take advantage of HTML and CSS code allowing them to perform complex functions.

Extensive information on template creation can be found in the Resources section at the bottom of the page.

Types of templates[edit]

Navigation templates[edit]

See all navigation templates

Also known as navbox templates, these simple templates group links of related pages together and facilitate navigation. They are placed on pages which share a similar theme or feature similar content, as is the case with the {{Animal Crossing}} or {{Dog}} templates. Navbox templates do not generally accept parameters.

Infobox templates[edit]

See all infobox templates

Infobox templates generate information containers with fields relevant to a particular topic, such as Template:Infobox Species. These templates contain modifiable parameters in order to display the necessary information.

Notice templates[edit]

See all notice templates

Notice templates are placed in articles to provide users information about a page's condition. Some contain parameters for users to fill in to customize the information displayed..

Userbox templates[edit]

See all userboxes

Userboxes are fun profile templates for your userpage. They are quick and attractive ways to tell others about yourself.

Common Nookipedia templates[edit]

The following lists give examples of some of the more commonly used templates on the wiki.

Linking to game pages[edit]

See also: Category:Link templates

We have templates that create properly formatted links to each Animal Crossing game (spinoffs included).

Main series titles
{{SER}} Animal Crossing series
{{DnM}} Doubutsu no Mori
{{DnM+}} Doubutsu no Mori+
{{PG}} Animal Crossing
{{DnMe+}} Doubutsu no Mori e+
{{CF}} Animal Crossing: City Folk
{{WW}} Animal Crossing: Wild World
{{NL}} Animal Crossing: New Leaf

Spinoff titles
{{SD}} Animal Crossing: Sweet Day
{{HHD}} Animal Crossing: Happy Home Designer
{{AMF}} Animal Crossing: amiibo Festival

Other media
{{AM}} Doubutsu no Mori (film)

Page formatting[edit]

These templates are used to format text or change the way elements on the page are arranged.

{{main|Help:Contents}}
Main article: Help:Contents
  • Used in article subsections to link to a subject's main article that contains more detailed information.
{{wrongpage|Templates|any other kind of plate|Tom Nook's store}}
This article is about Templates from the Animal Crossing series. For the any other kind of plate, please see Tom Nook's store.


  • Used at the top of an article to direct readers to pages with a similar title.
{{clear}} No visual manifestation.
  • This template makes sure that different elements on the page don't get in each other's way. If an image or other block-level element would overlap one another, this template will preserve the space in between them.
{{quote|Promises are like pie crusts - they're made to be broken.|Pecan|{{NL}}}}
"Promises are like pie crusts - they're made to be broken."
— Pecan, Animal Crossing: New Leaf
  • Used to quote characters. Quote comes first, then who said it, finally the game they said it in.
{{roundy}}
Example
  • Inserted as a CSS style to make elements rounded. Almost all the elements that have rounded corners on Nookipedia are created using this template. Can also be applied to one side (e.g. roundyright) or one corner (e.g. roundybr).

Other notable templates[edit]

{{f}} forum
  • Creates a link to the forums.
{{(!}} {|
{{!)}} |}
{{!}} |
{{!-}} |-
{{=}} =
  • Used in templates when trying to insert tables or CSS formatting into parser functions.

Resources[edit]



 
     
 
Personal tools