Template:Note: Difference between revisions

From Flexible Survival
Jump to navigationJump to search
Add lore note and update documentation
Syntax McBucketface (talk | contribs)
m Protected "Template:Note" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<css>
div.note {
    position: relative;
    min-height: 3.1em;
    margin: 0.5em 5em;
    padding: 0.1em 1em 0.1em 4em;
    border: 1px solid #8d8d8d;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 18px -12px #373737;
    background-color: #efefef;
}
div.note-warning {
    border-color: #c63f17;
    background-color: #ffab91;
    box-shadow: 0 12px 18px -12px #c63f17;
}
div.note-warning {
    border-color: #6b9b37;
    background-color: #cfff95;
    box-shadow: 0 12px 18px -12px #6b9b37;
}
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 note-{{lc:{{{Icon}}}}}">
<div class="note note-{{lc:{{{Icon}}}}}">
[[File:icon_note{{#if: {{{Icon|}}} | _{{lc:{{{Icon}}}}} | }}.png|frameless|link=]]
[[File:icon_note{{#if: {{{Icon|}}} | _{{lc:{{{Icon}}}}} | }}.png|frameless|link=]]
Line 78: Line 45:
[[Category:Templates]]
[[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.