Template:Hatnote: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Hatnote/styles.css"/> |
<templatestyles src="Hatnote/styles.css"/> |
||
<hr/> |
<hr/> |
||
<div class="hatnote noexcerpt"> |
<div class="hatnote noexcerpt" style="{{#if:{{{color|}}}|--color-amaranth-legacy-scope:#{{{color}}}|}}"> |
||
<div>[[File:{{{file|Unknown.png}}}|80px|class=notpageimage]]</div> |
<div>[[File:{{{file|Unknown.png}}}|80px|class=notpageimage]]</div> |
||
<div><span style="color: |
<div><span style="color:var(--color-amaranth-legacy-scope);font-size:var(--font-size-xx-large);font-family:{{{font|Cinzel}}}">{{{primary}}}</span><!-- |
||
--><br/><i>{{{secondary}}}</i></div> |
--><br/><i>{{{secondary}}}</i></div> |
||
</div> |
</div> |
||
| Line 15: | Line 15: | ||
}} |
}} |
||
{{code|<nowiki>{{Hatnote|file=Glypht.png|primary=Glypht Glypht glypht|secondary=Amarant}}</nowiki>}} |
{{code|<nowiki>{{Hatnote|file=Glypht.png|primary=Glypht Glypht glypht|secondary=Amarant}}</nowiki>}} |
||
<templatedata> |
|||
| ⚫ | |||
{ |
|||
"params": { |
|||
"file": { |
|||
"label": "File", |
|||
"description": "The file to put on the left as a 80px thumbnail", |
|||
"example": "Glypht.png", |
|||
"type": "wiki-file-name", |
|||
"default": "Unknown.png", |
|||
"suggested": true |
|||
}, |
|||
"color": { |
|||
"label": "A color " |
|||
}, |
|||
"font": {}, |
|||
"primary": {}, |
|||
"secondary": {} |
|||
}, |
|||
"description": "Adds a [[wikipedia:Wikipedia:Hatnote|]]", |
|||
"format": "block" |
|||
} |
|||
| ⚫ | |||
Revision as of 00:43, December 3, 2024
Page Template:Hatnote/styles.css has no content.
Example
Page Template:Hatnote/styles.css has no content.
{{Hatnote|file=Glypht.png|primary=Glypht Glypht glypht|secondary=Amarant}}
Adds a [[wikipedia:Wikipedia:Hatnote|]]
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File | file | The file to put on the left as a 80px thumbnail
| File | suggested |
| A color | color | no description | Unknown | optional |
| font | font | no description | Unknown | optional |
| primary | primary | no description | Unknown | optional |
| secondary | secondary | no description | Unknown | optional |