Template:Hatnote: Difference between revisions
Template page
More actions
>MangoFVTT Created page with "<!-- Template:Hatnote ---------------- Meta-template to create a hatnote @param {string} class HTML class for the template @param {string} 1 Content for the hatnote template @param {string} color Color of the template (red, yellow, green) @param {string} icon File name of the icon @return {string} wikitext of the hatnote template --><includeonly><!-- --><div class="tg-hatnote metadata noprint {{#if:{{{color|}}}|tg-hatnote--{{{color}}}}} {{{class|}}}"><!-- -->{{#if:{..." |
Admin-erik (talk | contribs) No edit summary Tag: Manual revert |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 13: | Line 13: | ||
--><includeonly><!-- | --><includeonly><!-- | ||
--><div class=" | --><div class="ygdren-hatnote metadata noprint {{#if:{{{color|}}}|ygdren-hatnote--{{{color}}}}} {{{class|}}}"><!-- | ||
-->{{#if:{{{icon|}}}|<div class=" | -->{{#if:{{{icon|}}}|<div class="ygdren-hatnote-icon">[[File:{{{icon}}}|16px|link=]]</div>}}<!-- | ||
--><div class=" | --><div class="ygdren-hatnote-content">{{{1}}}</div><!-- | ||
--></div><!-- | --></div><!-- | ||
--><templatestyles src="Template:Hatnote/styles.css"/><!-- | --><templatestyles src="Template:Hatnote/styles.css"/><!-- | ||
Latest revision as of 21:01, 9 October 2026
Meta-template to create a hatnote that are used on top of page or section.
Parameters
| Type | Name | Description |
|---|---|---|
| string | class |
HTML class for the template |
| string | 1 |
Content for the hatnote template |
| string | color |
Color of the template (red, yellow, green) |
| string | icon |
File name of the icon |
Usage
{{Hatnote|I am a hatnote}}
{{Hatnote|icon=fa-book-solid-full.svg|I am a hatnote with icon}}
{{Hatnote|icon=fa-book-solid-full.svg|color=red|I am a hatnote with icon but in red}}
{{Hatnote|icon=fa-book-solid-full.svg|color=yellow|I am a hatnote with icon but in yellow}}
{{Hatnote|icon=fa-book-solid-full.svg|color=green|I am a hatnote with icon but in green}}