Namespaces
Variants
Actions
(Difference between revisions)

Template:Note

Jump to: navigation, search
m
m (Hamishwillee - Add support for Bahasa Indonesia)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>== Usage ==
+
<noinclude>{{Abstract|This template adds a "note" to an article.}}
This is one of the generic notifiers that can be used to display user-defined text inside standard InfoBox with a distinctive appearance.
+
  
Use '''<nowiki>{{Note|</nowiki>''your text''<nowiki>}}</nowiki>''' to display a "note" inside a green box.
+
'''Note''': using the equals (=) and pipe (|) characters inside the template parameters prevents them working properly. These characters should be replaced with the '''&amp;#61;''' and '''&amp;#124;''' codes respectively.
  
'''Note''': using the equals (=) and pipe (|) characters inside the template parameters prevents them working properly. These characters should be replaced with the '''&amp;#61;''' and '''&amp;#124;''' codes respectively.</noinclude>
+
== Usage ==
{{InfoBox|title=Note|image=wikitemplatenote.gif|text={{{1}}} }}
+
<nowiki>{{Note</nowiki>|''your text''<nowiki>}}</nowiki>
<br />
+
Optional parameters:
 +
* ''language'': The language category of the natural language the template is to display in. If no language is specified or if the specified language is not supported then the English version is used.
 +
** Translations exist for: Lang-Portuguese, Lang-Chinese, Lang-Russian, Lang-Bahasa Indonesia
 +
** For example:
 +
**: <code text>{{Note|language=Lang-Chinese|your text}}</code>
 +
**: {{Note|language=Lang-Chinese|your text}}
 +
**: {{Note|language=Lang-Portuguese|your text}}
 +
**: {{Note|language=Lang-Russian|your text}}
 +
**: {{Note|language=Lang-Bahasa Indonesia|your text}}
 +
 
 +
== Translation ==
 +
 
 +
The '''Note''' title text has been translated to a number of languages (Portuguese, Chinese). New languages can be added to the switch (see [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch Help:Extension:ParserFunctions] for more information).
 +
 
 +
== Appearance ==
 +
 
 +
</noinclude>{{InfoBox|title={{#switch: {{{language|}}} 
 +
| Lang-Chinese =注意
 +
| Lang-Portuguese =Observação
 +
| Lang-Russian =Примечание
 +
| Lang-Bahasa Indonesia =Catatan
 +
| #default = Note
 +
}}
 +
|link=Template:Note
 +
|image=Note.png
 +
|text={{{1}}}
 +
}}

Latest revision as of 03:21, 20 September 2012

This template adds a "note" to an article.

Note: using the equals (=) and pipe (|) characters inside the template parameters prevents them working properly. These characters should be replaced with the &#61; and &#124; codes respectively.

Usage

{{Note|your text}}

Optional parameters:

  • language: The language category of the natural language the template is to display in. If no language is specified or if the specified language is not supported then the English version is used.
    • Translations exist for: Lang-Portuguese, Lang-Chinese, Lang-Russian, Lang-Bahasa Indonesia
    • For example:
      {{Note|language=Lang-Chinese|your text}}
      Note.png
      注意: your text
      Note.png
      Observação: your text
      Note.png
      Примечание: your text
      Note.png
      Catatan: your text

Translation

The Note title text has been translated to a number of languages (Portuguese, Chinese). New languages can be added to the switch (see Help:Extension:ParserFunctions for more information).

Appearance

Note.png
Note: {{{1}}}
This page was last modified on 20 September 2012, at 03:21.
288 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved