From OpenStreetMap Wiki
Jump to navigation Jump to search


[Edit] [Purge] Template-info.svg Template documentation


See also

  • {{Strong}} – for semantically indicating strong emphasis instead of simple typographical boldfacing.
  • {{Strongbad}} – same as {{Strong}} but red like this: Never use {{Strongbad}} in articles.
  • {{Stronggood}} – same as {{Strongbad}} but green like this: Only use {{Stronggood}} on non-article pages.
  • {{Em}} – similar template for semantically indicating mild emphasis instead of simple typographical italicization.
  • {{Var}} – same as {{Varserif}} use for all variables (e.g. StrIllustratePrefix), except for 'I' (upper-case i) and 'l' (lower-case L) for which use {{Varserif}} allows visible distinctions.
  • {{Varserif}} – same as {{Var}} but uses serif font (e.g. StrIllustratePrefix), especially for distinguishing between 'I' (upper-case i) and 'l' (lower-case L) as variables.
  • {{Wikivar}} – for displaying wikicode variables and magicwords as they would appear in source code, e.g. {{PAGENAME}}, {{DEFAULTSORT:Lastname, Firstname}}.
  • {{Para}} – for displaying wiki template parameters (e.g. |title =) or parameters and values (e.g. |year = 2008)
  • {{Tlx}} and related – for displaying entire templates (with or without parameters and values) as code
  • {{HtmlTag}} – for using HTML elements ("tags") in prose (e.g. "When coding HTML <img> tags, always include ...")
  • {{Code}} – for computer source code (e.g. "... always include the alt parameter.").
    Note: to nest code that looks like other templates like {{Var|name}} inside, or that contains any equal sign (=),
    • use: {{Code|code= code with {{Var|name}} nested }} which gives code with {{Var|name}} nested
    • or: {{Code|1= code with {{Var|name}} nested }} which gives code with {{Var|name}} nested
  • {{Syntaxhighlight}} or {{Sxhl}} – wrapper for <syntaxhighlight />, but will wrap overflowing text
  • {{Deprecated code}} or {{Dc}} – for deprecated source code in template documentation, articles on HTML specs, etc.
  • {{Pre}} – for larger blocks of source code and other pre-formatted text
  • {{Bq}} – for indented blocks of content, such as block quotations, examples, poems, etc.
  • {{Kbd}} – for indicating user input
  • {{Key press}} – for indicating the input of specific keystrokes, e.g. Ctrl+X
  • {{Samp}} – for example output