Template:EdNote: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(Re-implementing for cleaner look and better compatibility)
(role="note" instead of fixed layout table, max line length for widescreen readability)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="margin: 0.5em 2em;">
<div role="note" style="display: flow-root; position: relative; margin: 0.5em 2em; border: 1px solid #C7C38B; {{CSSBorderRadius|10px}} padding: 0 1em 0 48px; max-width: 70ch; background-color: #F5F5BE; color: #000;">
{| width="100%" style="background-color: #F7F2AD; border: 1px solid #C7C38B; color: #000;"
| style="vertical-align: top; padding: 0.25em;" | [[File:Healthbar notify alert.png|34px]]
| style="width:100%; padding: 0.25em;" | '''Editor's Note'''<br />
{{{note}}}
|}
</div><noinclude>
==Usage==
To create a unified space for all editor's notes. Any text that is not included in the actual mission text should go in the editor's note box.


==Example==
<div style="position: absolute; left: 7px; top: 9px; ">[[File:{{#switch: {{{type|}}}
'''<nowiki>{{EdNote|note=This is an editor's note.</nowiki>'''
|warning=EdNote.png
|#default=EdLetter.png
}}|34px|link=|alt=]]</div>


'''<nowiki>You can use '''wiki markup''' in here, or &lt;strike&gt;HTML</strike>.</nowiki>'''
<div style="margin: 1em 0; font-weight: bold;">Editor's Note:</div>
 
{{{Note|{{{note}}}}}}
'''<nowiki>It can be as long as you need it, or as short.}}</nowiki>'''
</div><noinclude>{{Documentation}}</noinclude>
 
{{EdNote|note=This is an editor's note.
 
You can use '''wiki markup''' in here, or <strike>HTML</strike>.
 
It can be as long as you need it, or as short.}}
 
[[Category:Editors Tags Templates]]</noinclude>

Latest revision as of 04:10, 23 March 2022

Editor's Note:

{{{note}}}

[edit] [purge] Documentation


Usage

To create a unified space for all editor's notes. Any text that is not included in the actual mission text should go in the editor's note box.

Typical usage for a normal note:

{{EdNote|note=Message}}

If the note is a warning, you can also use:

{{EdNote|type=warning|note=message}}

Examples

{{EdNote|note=This is an editor's note.

You can use '''wiki markup''' in here like normal.

It can be as long or short as you need it to be.}}
Editor's Note:

This is an editor's note.

You can use wiki markup in here like normal.

It can be as long or short as you need it to be.

{{EdNote|type=warning|note=This is a warning note.}}
Editor's Note:

This is a warning note.