Difference between revisions of "Template:SwapTitle"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>{{DISPLAYTITLE:<span class="hide_stuff">{{FULLPAGENAME}}</span>}}<span id={{PAGENAME}} class="titleheader,titleheadertext,hide_stuff"></span><!-- this part causes the page title to be hidden -->
 
<includeonly>{{DISPLAYTITLE:<span class="hide_stuff">{{FULLPAGENAME}}</span>}}<span id={{PAGENAME}} class="titleheader,titleheadertext,hide_stuff"></span><!-- this part causes the page title to be hidden -->
{|class="titleheader noprint screen firstheading" style="background: #FfFfff; border-collapse: collapse; border-bottom: #aaaaaa solid 0.1em; border-top: #ffffff solid 0px; margin-bottom: 10px; margin-top: -12px; margin-left:0; margin-right:0px; width:100%;"
+
{|class="titleheader" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; class="titleheadertext">{{#if:{{{title|}}}|{{{title}}}|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{#titleparts: {{PAGENAME}}|1}}}}}}</span><span class="ProtectionLevel">Protection (edit): {{PROTECTIONLEVEL: edit|{{PAGENAME}}}}</span><span class="LastEditor">Edited by: {{REVISIONUSER}}</span>
|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; class="titleheadertext">{{{title|{{{custompagename|{{PAGENAME}}}}}}}}</span> <!-- this part re-creates the page title and allows for a custom page name -->
+
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
== Method ==
 
== Method ==

Revision as of 22:15, 19 December 2013

Method

{{swapTitle|custompagename=text}}

Explanation

This is used in specific instances where neither NavHeader nor NavHome are used, in order to modify the displayed page title.