Template:Hatnote2: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) merged with Template:Hatnote Tags: New redirect 2017 source edit |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
#REDIRECT [[Template:Hatnote]] |
|||
<includeonly><div class="template-type-hatnote noexcerpt" {{#if:{{{color|}}}|style="--color-amaranth-legacy-scope:{{{color}}};--color-link:{{{color}}}"|}}> |
|||
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_top|}}}}}}}}|no=<hr/>|yes=}} |
|||
<div class="hatnote2"> |
|||
<div>[[File:{{{file1}}}|{{{file_size|80px}}}|class=notpageimage|link=|alt=]]</div> |
|||
<div><span style="display:inline-block;{{#if:{{{primary_gradient|}}}|color:transparent;background-image:linear-gradient({{{primary_gradient}}});-webkit-background-clip:text;background-clip:text|color:var(--color-amaranth-legacy-scope)}};font-size:var(--font-size-xx-large);font-family:{{{font|var(--font-family-serif)}}}">{{{primary}}}</span><br/><!-- |
|||
--><i>{{{secondary}}}</i></div> |
|||
<div>[[File:{{{file2}}}|{{{file_size|80px}}}|class=notpageimage|link=|alt=]]</div> |
|||
</div> |
|||
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_bottom|}}}}}}}}|no=<hr/>|yes=}} |
|||
</div> |
|||
<templatestyles src="Hatnote2/styles.css"/></includeonly><!-- |
|||
--><noinclude><templatedata> |
|||
{ |
|||
"params": { |
|||
"file1": { |
|||
"label": "Left file", |
|||
"description": "The file to put on the left as a 80px thumbnail", |
|||
"example": "Glypht.png", |
|||
"type": "wiki-file-name", |
|||
"default": "Unknown.png", |
|||
"required": true |
|||
}, |
|||
"file2": { |
|||
"label": "Right file", |
|||
"description": "The file to put on the right as a thumbnail", |
|||
"example": "Glypht.png", |
|||
"type": "wiki-file-name", |
|||
"default": "Unknown.png", |
|||
"required": true |
|||
}, |
|||
"file_size": { |
|||
"label": "File size", |
|||
"description": "The files' thumbnail size", |
|||
"example": "120px", |
|||
"type": "string", |
|||
"default": "80px" |
|||
}, |
|||
"color": { |
|||
"label": "Color", |
|||
"description": "The color of the horizontal rules, the primary text, and links inside the header", |
|||
"example": "#cdcdcd", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"primary_gradient": { |
|||
"label": "Primary gradient", |
|||
"description": "The CSS linear-gradient of the primary text", |
|||
"example": "#ff0072, #df0049", |
|||
"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 |
|||
}, |
|||
"secondary": { |
|||
"label": "Secondary text", |
|||
"description": "The text displayed at the bottom (on the second line)", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"remove_hr": { |
|||
"label": "Remove lines", |
|||
"description": "If the lines at the top and bottom should be removed", |
|||
"type": "boolean", |
|||
"default": "false" |
|||
}, |
|||
"remove_hr_top": { |
|||
"label": "Remove top line", |
|||
"description": "If the line at the top should be removed", |
|||
"type": "boolean", |
|||
"default": "false" |
|||
}, |
|||
"remove_hr_bottom": { |
|||
"label": "Remove bottom line", |
|||
"description": "If the line at the bottom should be removed", |
|||
"type": "boolean", |
|||
"default": "false" |
|||
} |
|||
}, |
|||
"description": "Adds a center-aligned hatnote with two images on each side", |
|||
"format": "block", |
|||
"paramOrder": [ |
|||
"file1", |
|||
"file2", |
|||
"file_size", |
|||
"color", |
|||
"primary_gradient", |
|||
"font", |
|||
"primary", |
|||
"secondary", |
|||
"remove_hr", |
|||
"remove_hr_top", |
|||
"remove_hr_bottom" |
|||
] |
|||
} |
|||
</templatedata> |
|||
== Example == |
|||
<pre>{{Hatnote2 |
|||
|file1=Glypht.png |
|||
|file2=Cosmoria Symbol.png |
|||
|color=#cdcdcd |
|||
|primary=Glypht Glypht glypht |
|||
|secondary=[[Main Page|Amarant]] |
|||
|remove_hr_bottom=y |
|||
}}</pre> |
|||
{{Hatnote2 |
|||
|file1=Glypht.png |
|||
|file2=Cosmoria Symbol.png |
|||
|color=#cdcdcd |
|||
|primary=Glypht Glypht glypht |
|||
|secondary=[[Main Page|Amarant]] |
|||
|remove_hr_bottom=y |
|||
}} |
|||
== See also == |
|||
* [[Template:Hatnote]] |
|||
</noinclude> |
|||
Latest revision as of 17:41, January 13, 2025
Redirect to: