Template:Note style: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
(Another attempt to fix formatting.)
(Adding a description of the template)
Line 1: Line 1:
<onlyinclude>: '''{{{type}}}:''' {{{text}}}<includeonly></onlyinclude><noinclude>
<noinclude>This template is a basic template used for formatting block-level notifications. It takes two named parameters:
 
* type: A simple string containing the kind of notification. Simple words like "Note" or "Warning" are expected. Long sentences are not.
* text: The text that describes the admonition. This is expected to be sentences or even paragraphs.
 
Example:
 
<nowiki>{{note style
| type = Warning
| text = This is a warning!}}</nowiki>
 
becomes:
 
{{note style
| type = Warning
| text = This is a warning!}}
 
</noinclude><includeonly>: '''{{{type}}}:''' {{{text}}}<includeonly>

Revision as of 18:36, 3 September 2009

This template is a basic template used for formatting block-level notifications. It takes two named parameters:

  • type: A simple string containing the kind of notification. Simple words like "Note" or "Warning" are expected. Long sentences are not.
  • text: The text that describes the admonition. This is expected to be sentences or even paragraphs.

Example:

{{note style | type = Warning | text = This is a warning!}}

becomes:

Warning: This is a warning!