Work in progress — This wiki is an active migration / mirror of Homestar Runner Wiki and is not finished yet. Account registration and public editing are turned off until the migration is further along. For status updates, see the migration thread on the forums.

Help Template

From HR Wiki Twice
Revision as of 14:24, 14 July 2026 by imported>HRWikiMirrorBot (Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Wiki users can create and use templates. A template is a bit of code which any user can insert into any page of the wiki, to create a larger displayed piece of text which can be specialized for that inclusion. The template is created with both static text and variables such as "inputs" and "values". Here's the basics on how to create and use templates.

Creating a template

The template messages page contains a partial list of existing templates. Please check that page to be sure your idea for a template has not been done yet.

Usage

First, consider what the template would be used for. What would its purpose be? Some common uses are:

  • A template
  • A template

Syntax

Make sure you know the MediaWiki syntax for a template:

  • For an input, type {{{1}}} for the first input, {{{2}}} for the second, and so on. The user of the template will need to know which order the items should be listed when using the template.
    • In a more complicated template, where one might not easily remember the order of which input is which, this can be substituted with {{{value}}} or another more meaningful name, like {{{name}}} or {{{old page}}}. These can be used in any order, unlike numeric values.
  • For current page information, type ' for the page’s namespace, and Help Template' for the page’s name. If you want both, type Help Template.
    • These will be inserted and changed as the location of the template changes.

Including text in a template

To include text in the template that you don't want to show up in pages that use it, such as:

  • Instructions on how to use the template
  • A category to organize the template

Place the text in a set of ' tags at the bottom of the template page.

Text that will only be included in the target page

To include text in the pages that use the template, but not the template page itself, such as:

  • A category relevant to the page in question, but not the template itself.
  • Special Formatting text meant only for the page in question.

Place the text in a set of