Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Hatnote links: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tags: Reverted 2017 source edit
m Protected "Template:Hatnote links" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Hatnote
<div class="noexcerpt" style="text-align:center{{#if:{{{color|}}}|;color:#{{{color}}}|}}">
|color={{{color|}}}
<hr/>
|color_applies_to_links={{{color_applies_to_links|}}}
<span style="font-family:var(--font-family-serif);font-size:var(--font-size-xxx-large);font-weight:bold">[[Index:{{{scope}}}|Index]] / [[Lexica:{{{scope}}}|Lexica]] / [[Timeline:{{{scope}}}|Timeline]]</span>
|primary='''[[Index:{{{scope|{{{for}}}}}}|Index]]''' / '''[[Lexica:{{{scope|{{{for}}}}}}|Lexica]]''' / '''[[Timeline:{{{timeline_for|{{{scope|{{{for}}}}}}}}}|Timeline]]'''
<hr/>
|font={{{font|}}}
</div>
|primary_transform={{#if:{{{uppercase|}}}|uppercase|none}}
|primary_font_size=xxx-large
|remove_hr_bottom={{{remove_hr_bottom|}}}
}}<noinclude>
<templatedata>
{
"params": {
"color": {
"label": "Color",
"description": "The color of the text and horizontal rules",
"type": "string"
},
"for": {
"label": "For",
"description": "The page name to link to",
"type": "string",
"required": true
},
"font": {
"label": "Font",
"description": "The font to use for the text",
"type": "string",
"default": "var(--font-family-serif)"
},
"uppercase": {
"label": "Uppercase",
"description": "If the text should be uppercase",
"type": "boolean",
"default": "false"
}
},
"description": "Adds links to scope meta pages as a hatnote",
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 10:51, September 11, 2025


[[Index:{{{for}}}|Index]] / [[Lexica:{{{for}}}|Lexica]] / [[Timeline:{{{for}}}|Timeline]]

Adds links to scope meta pages as a hatnote

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Colorcolor

The color of the text and horizontal rules

Stringoptional
Forfor

The page name to link to

Stringrequired
Fontfont

The font to use for the text

Default
var(--font-family-serif)
Stringoptional
Uppercaseuppercase

If the text should be uppercase

Default
false
Booleanoptional