This high-risk template is indefinitely protected from editing to prevent vandalism.

Template:Title

From Uncyclopedia, the content-free encyclopedia
(Redirected from Template:Title-left)
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

Usage examples

  • {{Title}} Simply omits the namespace (such as "UnScripts") from the page name
  • {{Title|eBay}} A custom title. This example overrides the rule that the first letter is capitalized (but use {{Lowercase title}} instead)
  • {{Title|''Lord of the Rings''}} You can and should make the title italic for the name of a song or a work (but use {{Italic title}} instead)
  • {{Title|align=center}} Centered
  • {{Title|align=right}} Aligned to the right
  • {{Title|Foo Bar|align=center}} The options can be combined

HTML

The title of a page is a level-one heading, making it no different than any other section heading (if somewhat hard to reach). Thus, inline styling of the title is possible, when care is taken to mind equal signs by prefixing code with 1=. The code below is used to style the title of this page in a rainbow of colors:

{{Title|1=<span style="color:red;">t</span><span style="color:orange;">i</span><span style="color:yellow;">t</span><span style="color:green;">l</span><span style="color:blue;">e</span>}}

See also

  • {{Notitle}} can be used to remove the title entirely.

Implementation

This template renders as two invisible DIVs, one with the desired page title and one with the specified or implied alignment. JavaScript at rewriteTitle in MediaWiki:Common.js makes the text of the former DIV the displayed page name, shown in the Level 1 heading (aligned as specified) and on the header bar of the window.