Jump to content

Template:Hatnote inline

From The Sonic the Hedgehog Wiki

Script error: No such module "Hatnote inline".


[edit]

Documentation
Template:For


Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

Template:Warning

The {{Hatnote inline}} meta-template formats text into a standardized style for an inline (not block-level) variant of a Wikipedia:Hatnote, a short note placed at the point of insertion, to link to more information or otherwise cross-reference another Wikipedia page. like this: Script error: No such module "Hatnote inline".

The most common uses for this meta-template are:

Usage[edit source]

Basic usage
{{hatnote inline|text}}
All parameters
{{hatnote inline|text|extraclasses=class1 class2|selfref=yes|category=no}}

The meta-template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal Wikipedia markup.

Parameters[edit source]

This template accepts the following parameters:

  • |1= or |text= or |content= – The inline hatnote's text (required). While the explicit naming of this parameter with |1=, |text=, or |content= is not required, it is always safest to use it this way, since any Page Template:Kbd/styles.css has no content.= character in the input text will break the template if the parameter is unnamed.
  • |class= or |extraclasses= – Any extra CSS classes to be added. This should not normally be used.
  • |selfref=no – If set to Page Template:Kbd/styles.css has no content.no (or Page Template:Kbd/styles.css has no content.n, Page Template:Kbd/styles.css has no content.false, Page Template:Kbd/styles.css has no content.0, etc.) removes the default CSS class selfref, used to denote unprintworthy self-references to Wikipedia <
  1. REDIRECT Template:Crossreference. This option should not be used to indicate a non-selfref on cross-article links, only links within the same article (and the derived shorthand templates {{See above}} and {{See below}} do this automatically). The parameter alias |printworthy=yes (or with any other value, like Page Template:Kbd/styles.css has no content.y, Page Template:Kbd/styles.css has no content.true, Page Template:Kbd/styles.css has no content.1, etc.) has the same effect as |selfref=no. Note that attempting to manually supply a "this is a selfref" value with |selfref=yes or |printworthy=no will not have the desired effect (which is the default anyway); the meta-template is set to selfref by default, since most uses are self-references (only those within the same article as the template are not). This could actually be fixed by use of {{YesNo}}, but it's maybe more hassle than it's worth.

Technical details[edit source]

The meta-template places an HTML <span>...</span> container around the text entered as its first, required parameter, upon which it provides standardized formatting (italicized in most displays, and only stylistically, not as semantic emphasis); it also uses CSS classes to isolate the contained code to make sure that it is interpreted correctly and can be acted upon independently of true article content.

The HTML code produced by this template looks like this:

  • <span class="hatnote">hatnote text</span>

This is the same class used by the <div>-based {{hatnote}} template, the block display of which is controlled by a separate div.hatnote directive in Mediawiki:Common.css.

The output is produced by Module:Hatnote inline.

See also[edit source]

Templates based on this meta-template[edit source]