Template:Note: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(A (temporary) note template to add to pages that are draft/in-progress, or when certain things needs a note etc.)
 
imported>FrozenPlum
m (Move docs to subpage since this template might stay)
Line 1: Line 1:
{{#if:{{{1|{{{text|}}}}}}|
<onlyinclude><includeonly>{{#if:{{{1|{{{text|}}}}}}|
{{{!}} class="{{#switch: {{{2|{{{type|info}}}}}}|info=messagebox|reminder|warn=warningbox|error=errorbox|}}" style="{{#if:{{{inline|}}}||width:100%;}} padding:5px 25px 5px 5px; margin:0.5em 0; overflow:hidden;">
{{{!}} class="{{#switch: {{{2|{{{type|info}}}}}}|info=messagebox|reminder|warn=warningbox|error=errorbox|}}" style="{{#if:{{{inline|}}}||width:100%;}} padding:5px 25px 5px 5px; margin:0.5em 0; overflow:hidden;">
{{!}}-
{{!}}-
Line 5: Line 5:
{{!}}{{#if:{{{1|{{{text|Example}}}}}}|{{{1|{{{text|Example}}}}}}|}}
{{!}}{{#if:{{{1|{{{text|Example}}}}}}|{{{1|{{{text|Example}}}}}}|}}
{{!}}}<!--
{{!}}}<!--
-->|[[File:OOjs_UI_icon_lightbulb-yellow.svg|15px]] '''Note:''' {{{1|{{{text|}}}}}}}}<!--
-->|[[File:OOjs_UI_icon_lightbulb-yellow.svg|15px]] '''Note:''' {{{1|{{{text|}}}}}}}}</includeonly></onlyinclude>
{{Documentation}}
--><noinclude>
== Usage ==
<pre>
{{note}} Some stuff
{{note|Some info}}
{{note|A reminder|reminder}}
{{note|Warn me|warn|inline=any value}}
{{note|This causes an error|error}}
</pre>
{{note}} Some stuff
{{note|Some info}}
{{note|A reminder|reminder}}
{{note|Warn me|warn|inline=any value}}
{{note|This causes an error|error}}

[[Category:Templates]]
</noinclude>

Revision as of 00:48, 31 March 2022

[view | edit | purge]Template Documentation

Creates a variety of notes or notices depending on parameters set.

Usage

{{note}} Some stuff
{{note|Some info}}
{{note|A reminder|reminder}}
{{note|Warn me|warn|inline=any value}}
{{note|This causes an error|error}}

Note: Some stuff

Some info
A reminder
Warn me
This causes an error
[view | edit | purge]The above documentation is transcluded from Template:Note/doc.