Template:Hatnote-inline

From Wikipedia, the free encyclopedia
Jump to: navigation, search

{{{1}}}

Documentation icon Template documentation[view] [edit] [history] [purge]

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: Example inline hatnote text.

The most common uses for this meta-template are:

Usage[edit]

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]

This template accepts the following parameters:

  • 1 – the cross-reference text. (required)
  • class or extraclasses – any extra CSS classes to be added. For example, the {{see also}} template adds the classes |class=boilerplate seealso.
  • selfref – if set to "yes", "y", "true", or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See Template:Selfref for more information. It is set to selfref by default, since most uses are self-references (only those within the same article as the template are not).
  • category – if set to "no", "n", "false", or "0", suppresses the error tracking category (Category:Hatnote templates with errors). This only has an effect if the first positional parameter (the hatnote text) is omitted. This should not normally be used.

Technical details[edit]

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]

Templates based on this meta-template[edit]
http://en.wikipedia.org/wiki/Template:Hatnote-inline
en.wikipedia.org
crawl=CC-MAIN-2015-22
33484
application/http; msgtype=response
sha1:YCXV3MOCGMWGYL6ZHQGUFHHMJQTHVKSJ
<urn:uuid:f24f1df6-5a54-43b3-9c17-65aeea05f1c7>
2015-05-27T09:02:51Z
208.80.154.224
sha1:A3IAPRPGI32JREIRIJEW2BNRQCOQ3QQM
<urn:uuid:ff9c0c5c-0082-4aaa-aef4-b13de72f3487>
http://en.wikipedia.org/wiki/Template:Hatnote-inline
response
<urn:uuid:372fbf88-ca95-47d1-95f6-78c0c31c5f24>
robots: classic
hostname: ip-10-180-206-219.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-22
operator: CommonCrawl Admin
description: Wide crawl of the web for May 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf