Template:Note: Difference between revisions

From Flexible Survival
Jump to navigationJump to search
m Change parameter names
Syntax McBucketface (talk | contribs)
m Protected "Template:Note" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<css>
<div class="note note-{{lc:{{{Icon}}}}}">
div.note {
[[File:icon_note{{#if: {{{Icon|}}} | _{{lc:{{{Icon}}}}} | }}.png|frameless|link=]]
    position: relative;
{{{Content|There's an interesting note you should probably be aware of here, but whoever added this note forgot to fill it in.}}}
    min-height: 3.1em;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 18px -12px #373737;
}
div.note img:first-of-type {
    position: absolute;
    width: 2em;
    height: 2em;
    left: 2em;
    top: 0.6em;
    transform: translatex(-50%);
    opacity: 60%
}
</css>
 
<div class="note {{icon}}" style="margin:0.5em 5em;padding:0.1em 1em 0.1em 4em;border:1px solid #8d8d8d;border-radius:0.5em;background-color:#efefef">
[[File:icon_note{{#if: {{icon}} | _{{lc:{{icon}}}} | }}.png|frameless|link=]]
{{content}}
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
Line 29: Line 10:
<pre>
<pre>
{{Note
{{Note
| Icon = <type>
| Icon = [<empty>|Warning|Lore]
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
}}
}}
Line 35: Line 16:


== Examples ==
== Examples ==
<pre>
{{Note
| Content = This is a note, for information that needs to have attention drawn to it.
}}
{{Note
| Icon = Warning
| Content = This is a warning, used to indicate something that may have non-obvious unintended effects.
}}
{{Note
| Icon = Lore
| Content = This is a lore note, for noting things about the game's background and IC (in-character) history.
}}
</pre>
{{Note
{{Note
| Icon =
| Content = This is a note, for information that needs to have attention drawn to it.
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
}}
}}[[Category:Templates]]
{{Note
| Icon = Warning
| Content = This is a warning, used to indicate something that may have non-obvious unintended effects.
}}
{{Note
| Icon = Lore
| Content = This is a lore note, for noting things about the game's background and IC (in-character) history.
}}
[[Category:Templates]]
</noinclude>
</noinclude>
<templatestyles src="Template:Note/styles.css" />

Latest revision as of 17:42, 3 June 2025

A template for short notes.

Usage

{{Note
| Icon = [<empty>|Warning|Lore]
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
}}

Examples

{{Note
| Content = This is a note, for information that needs to have attention drawn to it.
}}

{{Note
| Icon = Warning
| Content = This is a warning, used to indicate something that may have non-obvious unintended effects.
}}

{{Note
| Icon = Lore
| Content = This is a lore note, for noting things about the game's background and IC (in-character) history.
}}


This is a note, for information that needs to have attention drawn to it.

This is a warning, used to indicate something that may have non-obvious unintended effects.

This is a lore note, for noting things about the game's background and IC (in-character) history.