Difference between revisions of "Template:Title"

Jump to navigationJump to search
(using Title template code from Wookieepedia)
m
Line 1: Line 1:
 +
<div id="title-meta" style="display: none">{{{1|{{PAGENAME}}}}}</div><div id="title-align" style="display: none">{{#switch:{{{align}}}|right=right|middle|center=center|left}}</div>
 
{{#switch:{{usecss}}|yes|true=<div id="titlehack" style="text-align:{{#switch:{{{align}}}|right=right|middle|center=center|left}};">
 
{{#switch:{{usecss}}|yes|true=<div id="titlehack" style="text-align:{{#switch:{{{align}}}|right=right|middle|center=center|left}};">
 
{{#switch:{{MediaWiki:Sitenotice}}|-|=|#default=<div id="siteNotice" style="visibility:hidden"><p>{{MediaWiki:Sitenotice}}</p></div>}}
 
{{#switch:{{MediaWiki:Sitenotice}}|-|=|#default=<div id="siteNotice" style="visibility:hidden"><p>{{MediaWiki:Sitenotice}}</p></div>}}
<div style="margin-bottom: 0; color: black; background-color: #FFFFFF; font-weight: normal; padding-top: .5em; padding-bottom: .17em; font-size: 188%; border-bottom: 1px solid #aaaaaa;">{{{1|{{PAGENAME}}}}}</div>
+
<div style="margin-bottom: 0; color: black; background-color: ; font-weight: normal; padding-top: .5em; padding-bottom: .17em; font-size: 188%; border-bottom: 1px solid #aaaaaa;">{{{1|{{PAGENAME}}}}}</div>
 
</div>
 
</div>
 
</div>}}<noinclude>
 
</div>}}<noinclude>
Line 15: Line 16:
 
*<code><nowiki>{{Title|Foo|usecss=yes}}</nowiki></code> ''Uses old title hack method using css. This hides voting boxes, and has some other problems, so only use where the normal version won't work.''
 
*<code><nowiki>{{Title|Foo|usecss=yes}}</nowiki></code> ''Uses old title hack method using css. This hides voting boxes, and has some other problems, so only use where the normal version won't work.''
  
[[Category:Utility templates|{{PAGENAME}}]]
+
[[Category:Templates|{{PAGENAME}}]]
[[fi:Malline:Nimi]]
 
 
</noinclude>
 
</noinclude>

Revision as of 15:08, 21 May 2010

{{#switch:Template:Usecss|yes|true=

{{#switch:-|-|=|#default=}}
Title

}}

Usage examples:

  • {{Title}} removes namespace
  • {{Title|Foo Bar}} custom title
  • {{Title|align=center}} centered
  • {{Title|align=right}} aligned to the right
  • {{Title|Foo Bar|align=center}} etc


  • {{Title|Foo|usecss=yes}} Uses old title hack method using css. This hides voting boxes, and has some other problems, so only use where the normal version won't work.