Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201
Difference between revisions of "Template:Note-warning/doc" - TangoWiki

Difference between revisions of "Template:Note-warning/doc"

From Tangowiki
(Created page with "This template is used for producing a note within a text, . It is meant for a warning, e.g. in following cases: *A template should not be used anymore. *Changes on a page affe...")
 
(Template parameters)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
This template is used for producing a note within a text, . It is meant for a warning, e.g. in following cases:
+
This template is used for producing a note within or above a text. It is meant for a warning, e.g. in following cases:
 
*A template should not be used anymore.
 
*A template should not be used anymore.
 
*Changes on a page affect a lot of other pages.
 
*Changes on a page affect a lot of other pages.
Line 5: Line 5:
  
 
It should be used in the following format:
 
It should be used in the following format:
<code><nowiki>{{Warning</nowiki>|''Warning text...''<nowiki>}}</nowiki></code>.
+
<code><nowiki>{{Note-warning</nowiki>|''Warning text...''<nowiki>}}</nowiki></code>.
  
 
Subsitute "Warning text" with what you want to say.
 
Subsitute "Warning text" with what you want to say.
Line 11: Line 11:
 
This brings you:  
 
This brings you:  
  
{{Warning|Warning text…}}
+
{{Note-warning|Warning text…}}
  
[[Category:Article template]]
+
A different title is optional, include it with the "title" parameter:
 +
 
 +
<code>{{Note-warning<nowiki>|title=</nowiki>''Be aware of the following:''|''Note text''}}</code>
 +
{{Note-warning|title=Be aware of the following:|Note text}}
 +
 
 +
==Template parameters==
 +
*''note text'' – needs no parameter text
 +
*title – different title than standard "Important"
 +
 
 +
 
 +
<includeonly>[[Category:Article template]]</includeonly>

Latest revision as of 16:02, 15 August 2015

This template is used for producing a note within or above a text. It is meant for a warning, e.g. in following cases:

  • A template should not be used anymore.
  • Changes on a page affect a lot of other pages.
  • … (add more use cases here)

It should be used in the following format: {{Note-warning|Warning text...}}.

Subsitute "Warning text" with what you want to say.

This brings you:

Important: Warning text…

A different title is optional, include it with the "title" parameter:

{{Note-warning|title=Be aware of the following:|Note text}}

Be aware of the following: Note text

Template parameters

  • note text – needs no parameter text
  • title – different title than standard "Important"