Template:Hatnote

From Irony Wiki
Revision as of 22:54, 17 August 2020 by Saucy (talk | contribs) (c)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation

This template creates a hatnote. This is usually put at the top of a page or section.

Hatnotes tell the reader if they are on the right article. You have probably seen notices like "This article is about 1. For 2, see 3." at the top of Wikipedia articles, that is an example of a hatnote.

Example

{{hatnote|This article is about the user. For an actual, physical typewriter, then go to the [[wp:Typewriter|Typewriter]] Wikipedia article, you're on the wrong the website for that you fucking retard}} outputs:

Usage

Basic usage:

{{hatnote|text}}

All parameters:

{{hatnote|text|extraclasses=extra classes|category=no}}

Parameters

This template accepts the following parameters (but you probably only need to worry about the first one):

  • 1 - the hatnote text (required)
  • extraclasses - any extra CSS classes to be added
  • category - If set to "no", "n", "false", or "0", then it will suppress the error tracking category (Category:Hatnote templates with errors). This has an effect only if the hatnote text parameter is omitted.

Template data

Adds a hatnote. Hatnotes tell the reader if they are on the right article. You have probably seen notices like "This article is about 1. For 2, see 3." at the top of Wikipedia articles, that is an example of a hatnote.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Text1

The text of the hatnote

Stringrequired
extraclassesextraclasses

Any extra CSS classes to add

Stringoptional
categorycategory

If set to "no", "n", "false", or "0", it will suppress the error tracking category.

Booleanoptional