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="hide_stuff"></span><!-- this part causes the page title to be hidden -->
 
{|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>
 
{|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>
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
== Method ==
 
== Method ==
'''<nowiki>{{</nowiki>swapTitle{{pipe}}custompagename='''''text'''''<nowiki>}}</nowiki>'''
+
'''<nowiki>{{</nowiki>swapTitle|title='''''text'''''<nowiki>}}</nowiki>'''
 
== Explanation ==
 
== Explanation ==
 
This is used in specific instances where neither NavHeader nor NavHome are used, in order to modify the displayed page title.
 
This is used in specific instances where neither NavHeader nor NavHome are used, in order to modify the displayed page title.
Line 9: Line 9:
 
</noinclude>
 
</noinclude>
 
[[category:Uses SwapTitle]]
 
[[category:Uses SwapTitle]]
[[category:{{#titleparts: {{{custompagecategory|{{{custompagename|{{{translate|{{PAGENAME}} }}} }}} }}}|1|1}}]]
+
[[category:{{#titleparts: {{{title|{{{translate|{{PAGENAME}} }}} }}}|1|1}}]]

Revision as of 22:21, 19 December 2013

Method

{{swapTitle|title=text}}

Explanation

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