Template:Hatnote2: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) m Protected "Template:Hatnote2" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading] |
Tesinormed (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Hatnote2/styles.css"/> |
<templatestyles src="Hatnote2/styles.css"/> |
||
<div class="noexcerpt" style="{{#if:{{{color|}}}|--color-amaranth-legacy-scope:#{{{color}}}|}}"> |
|||
<hr/> |
<hr/> |
||
<div class="hatnote2 |
<div class="hatnote2"> |
||
<div>[[File:{{{ |
<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>[[File:{{{file2|Unknown.png}}}|80px|class=notpageimage]]</div> |
<div>[[File:{{{file2|Unknown.png}}}|80px|class=notpageimage]]</div> |
||
</div> |
</div> |
||
<hr/> |
<hr/> |
||
</div><!-- |
|||
--><noinclude> |
--><noinclude> |
||
<templatedata> |
|||
| ⚫ | |||
{ |
|||
"params": { |
|||
"file1": { |
|||
"label": "File 1", |
|||
"description": "The file to put on the left as a 80px thumbnail", |
|||
"example": "Glypht.png", |
|||
"type": "wiki-file-name", |
|||
"default": "Unknown.png", |
|||
"suggested": true |
|||
}, |
|||
"file2": { |
|||
"label": "File 1", |
|||
"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": "Color", |
|||
"description": "The color of the horizontal rules, the primary text, and links inside the header", |
|||
"example": "ababab", |
|||
"type": "string" |
|||
}, |
|||
"font": { |
|||
"label": "Font", |
|||
"description": "The font to use for text inside the header", |
|||
"example": "Varela Round", |
|||
"type": "string", |
|||
"default": "Cinzel" |
|||
}, |
|||
"primary": { |
|||
"label": "Primary text", |
|||
"description": "The text displayed at the top (on the first line)", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
| ⚫ | |||
"label": "Secondary text", |
|||
"description": "The text displayed at the bottom (on the second line)", |
|||
"type": "string", |
|||
"required": true |
|||
} |
|||
}, |
|||
"description": "Adds a center-aligned hatnote with two images on each side", |
|||
"format": "block", |
|||
"paramOrder": [ |
|||
"file1", |
|||
"file2", |
|||
"color", |
|||
"font", |
|||
"primary", |
|||
"secondary" |
|||
] |
|||
| ⚫ | |||
</templatedata> |
|||
| ⚫ | |||
{{Hatnote2 |
{{Hatnote2 |
||
|file1=Glypht.png |
|file1=Glypht.png |
||
|file2= |
|file2=Cosmoria Symbol.png |
||
|color=cdcdcd |
|||
|primary=Glypht Glypht glypht |
|primary=Glypht Glypht glypht |
||
|secondary=Amarant |
|secondary=[[Main Page|Amarant]] |
||
| ⚫ | |||
{{Hatnote2 |
|||
|file1=Glypht.png |
|||
|file2=Glypht.png |
|||
|primary=Glypht Glypht glypht Glypht Glypht glypht Glypht Glypht glypht Glypht Glypht glypht |
|||
| ⚫ | |||
}} |
}} |
||
{{code|<nowiki>{{Hatnote2|file1=Glypht.png|file2=Cosmoria Symbol.png|color=cdcdcd|primary=Glypht Glypht glypht|secondary=[[Main Page|Amarant]]}}</nowiki>}} |
|||
</noinclude> |
</noinclude> |
||
Revision as of 00:55, December 3, 2024
Page Template:Hatnote2/styles.css has no content.
Adds a center-aligned hatnote with two images on each side
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File 1 | file1 | The file to put on the left as a 80px thumbnail
| File | suggested |
| File 1 | file2 | The file to put on the left as a 80px thumbnail
| File | suggested |
| Color | color | The color of the horizontal rules, the primary text, and links inside the header
| String | optional |
| Font | font | The font to use for text inside the header
| String | optional |
| Primary text | primary | The text displayed at the top (on the first line) | String | required |
| Secondary text | secondary | The text displayed at the bottom (on the second line) | String | required |
Example
Page Template:Hatnote2/styles.css has no content.
{{Hatnote2|file1=Glypht.png|file2=Cosmoria Symbol.png|color=cdcdcd|primary=Glypht Glypht glypht|secondary=[[Main Page|Amarant]]}}