Template:Hatnote links: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<templatestyles src="Hatnote links/styles.css"/> |
<templatestyles src="Hatnote links/styles.css"/> |
||
<div class="template-type-hatnote hatnote_links noexcerpt" {{#if:{{{color|}}}|style="color:{{{color}}};--color-amaranth-legacy-scope:{{{color}}};--color-link:{{{color}}}"|}}> |
<div class="template-type-hatnote hatnote_links noexcerpt" {{#if:{{{color|}}}|style="color:{{{color}}};--color-amaranth-legacy-scope:{{{color}}};--color-link:{{{color}}}"|}}> |
||
---- |
|||
<hr/> |
|||
<p class="hatnote_links-content" style="font-family:{{#if:{{{font|}}}|{{{font}}}|var(--font-family-serif)}};text-transform:{{#if:{{{uppercase|}}}|uppercase|none}}">[[Index:{{{scope}}}|Index]] / [[Lexica:{{{scope}}}|Lexica]] / [[Timeline:{{{scope}}}|Timeline]]{{yesno|{{yesno-no|{{{add_random_page_link|}}}}}|yes=<nowiki/> / [[Special:RandomInCategory/Scope: {{{scope}}}|Random page]]}}</p> |
<p class="hatnote_links-content" style="font-family:{{#if:{{{font|}}}|{{{font}}}|var(--font-family-serif)}};text-transform:{{#if:{{{uppercase|}}}|uppercase|none}}">[[Index:{{{scope}}}|Index]] / [[Lexica:{{{scope}}}|Lexica]] / [[Timeline:{{{scope}}}|Timeline]]{{yesno|{{yesno-no|{{{add_random_page_link|}}}}}|yes=<nowiki/> / [[Special:RandomInCategory/Scope: {{{scope}}}|Random page]]}}</p> |
||
---- |
|||
<hr/> |
|||
</div><noinclude> |
</div><noinclude> |
||
<templatedata> |
<templatedata> |
||
| Line 18: | Line 18: | ||
"type": "string", |
"type": "string", |
||
"required": true |
"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" |
|||
}, |
|||
"add_random_page_link": { |
|||
"label": "Add random page link", |
|||
"description": "If Special:RandomInCategory should be added as a link", |
|||
"type": "boolean", |
|||
"default": "false" |
|||
} |
} |
||
}, |
}, |
||
Revision as of 16:51, January 13, 2025
[[Index:{{{scope}}}|Index]] / [[Lexica:{{{scope}}}|Lexica]] / [[Timeline:{{{scope}}}|Timeline]]
Adds links to scope meta pages as a hatnote
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Color | color | The color of the text and horizontal rules | String | optional |
| Scope | scope | The scope to link to | String | required |
| Font | font | The font to use for the text
| String | optional |
| Uppercase | uppercase | If the text should be uppercase
| Boolean | optional |
| Add random page link | add_random_page_link | If Special:RandomInCategory should be added as a link
| Boolean | optional |