Template:Infobox Cosmology

Revision as of 01:48, 1 September 2024 by Oros (talk | contribs) (Created page with "<noinclude>{{Documentation}}</noinclude> <includeonly> {{#ifeq: {{{child|}}} | yes | {{!}} style="border: 1px solid #aaa; background-color: #f9f9f9; padding: 0.2em 0.5em; margin: 0.5em 0; font-size: 90%;" class="infobox infobox-child" | {{!}} style="border: 1px solid #aaa; background-color: #f9f9f9; padding: 0.2em 0.5em; margin: 0.5em 0; font-size: 90%;" }}<div style="{{#if:{{{image|}}}|border: 1px solid #c6c6c6;}}" {{#ifeq: {{{child|}}} | yes | {{!}} style="width: 2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation subpage

TemplateStyles' src attribute must not be empty.

This template produces formatted text, following the guideline for a hatnote.

{{hatnote|Example hatnote text.}}
Example hatnote text.

Broadly speaking, a hatnote should answer a readers' question (maybe preemptively): Am I on the right page?

Function edit

This template is primarily used to add a correctly formatted hatnote to a page. Often, but not always, this is a disambiguation link at the top of article pages. It places an HTML div- / div block around the text entered as its only argument, which provides standardized formatting (contents are indented and italicized in most displays); it also isolates the contained code to make sure that it is interpreted correctly.

This template is also used as the "meta-template" for additional specialized disambiguation link templates.

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

Usage edit

Template:((hatnote|textTemplate:))

Parameters edit

This template accepts the following parameters:

  • 1 - the hatnote text (required)

Example edit

  • {{hatnote|Example hatnote text}}
    Example hatnote text

Technical details edit

The HTML code produced by this template looks like this:

  • [[:Template:^(]]div role="note" class="hatnote"[[:Template:)^]]hatnote text[[:Template:^(]]/div[[:Template:)^]]

Template Data [create] [purge]

Template for creating a standard hatnote. A hatnote is a short note placed at the top of an article or section to direct users to related pages

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1 text

This field should contain the text that will be displayed in the hatnote.

Example
Insert text here.
Stringrequired
Extra classesextraclasses

Comma-separated list of CSS class names

Stringoptional