Difference between revisions of "Template:Title"

Jump to navigationJump to search
m
(hopefully this corrects the title override issues)
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>
+
<includeonly>
{{#switch:{{usecss}}|yes|true=<div id="titlehack" style="text-align:{{#switch:{{{align}}}|right=right|middle|center=center|left}};">
+
<div id="title-override" class="topicon" style="float: left; position: absolute; left: 0; top: 0px; width: 100%; padding-top: 5px; display:none">
{{#switch:{{MediaWiki:Sitenotice}}|-|=|#default=<div id="siteNotice" style="visibility:hidden"><p>{{MediaWiki:Sitenotice}}</p></div>}}
+
<div style="background: {{#ifeq:{{PAGENAME}}|{{FULLPAGENAME}}|white|#F8FCFF}}; font-size: 200%; padding-top: 0.45em; padding-bottom: 0.1em; position:relative; left:0.45em; color: {{{3|#000000}}}; font-family: {{{2|Arial}}}; font-weight:none;">{{{1|{{FULLPAGENAME}}}}}
<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></includeonly>
</div>
+
<noinclude>
</div>}}<noinclude>
+
This template removes the default title: e.g. Template:Title override and replaces it with the text of your choice.  You can also customize the font in which the title is displayed.<br /><br />
 
+
==Usage==
Usage examples:
+
<pre>{{Title override|Desired text|(Optional)Desired font}}</pre>
*<code><nowiki>{{Title}}</nowiki></code> ''removes namespace''
 
*<code><nowiki>{{Title|Foo Bar}}</nowiki></code> ''custom title
 
*<code><nowiki>{{Title|align=center}}</nowiki></code> ''centered''
 
*<code><nowiki>{{Title|align=right}}</nowiki></code> ''aligned to the right''
 
*<code><nowiki>{{Title|Foo Bar|align=center}}</nowiki></code> ''etc''
 
 
 
 
 
*<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:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 16:53, 12 June 2013


This template removes the default title: e.g. Template:Title override and replaces it with the text of your choice. You can also customize the font in which the title is displayed.

Usage

{{Title override|Desired text|(Optional)Desired font}}