Template:Ghat

From Sarkarverse
Jump to navigation Jump to search
{{{1}}}
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This template is used inside template-structured glossaries with the {{defn}} template to provide an explanatory hatnote for a {{term}}. It must be used at the top of (inside) the first {{defn}} of the {{term}}. It cannot be used between the {{term}} and {{defn}} or it will break the glossary markup.

Example

{{gloss}}
{{term| colour ball |colour ball {{anchor|coloured ball|coloured balls|colour|colours|color ball}}}}
{{defn|1= 
{{ghat|Also '''coloured ball(s)''', '''colour(s)'''; American spelling '''color''' sometimes also used.}}
1.  In [[snooker]], any of the {{cuegloss|object ball|object balls}} that are not {{cuegloss|red ball|reds}}.
}}
{{defn|1= 
2.  In [[Blackball (pool)|blackball]], a generic, collective term for the red and yellow {{cuegloss||group|groups}} of object balls.
{{glossend}}

results in:

colour ball
Also coloured ball(s), colour(s); American spelling color sometimes also used.
1.  In snooker, any of the object balls that are not reds.
2.  In blackball, a generic, collective term for the red and yellow group of object balls.

See also

  • {{gloss}} – Half of a template pair; uses <dl> with a class to open the structured glossary definition list that {{glossend}} closes.
  • {{glossend}} – The other half of this template pair; uses </dl> to close the definition list that {{gloss}} opens.
  • {{term}} – The glossary term to which the {{defn}} definition applies; a customized <dt> with a class and an embedded <dfn>.
  • {{defn}} – The definition that applies to the {{term}}; uses <dd> with a class
  • {{ghat}} – a hatnote template for just above the main content of the first definition
  • Sarkarverse:Manual of Style/Glossaries