Difference between revisions of "Template:SwapTitle"

From PC-BSD Wiki
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>{{DISPLAYTITLE:<span class="hide_stuff">{{FULLPAGENAME}}</span>}}<span id={{PAGENAME}} class="hide_stuff"></span><!-- this part causes the page title to be hidden -->
+
<includeonly>{{DISPLAYTITLE:<span id={{PAGENAME}} class="hide_stuff">{{FULLPAGENAME}}</span>}}<!-- this part causes the page title to be hidden -->
 
{|class="titleheader"
 
{|class="titleheader"
|<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">{{#if:{{{title|}}}|{{{title}}}|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{#titleparts: {{PAGENAME}}|1}}}}}}</span><span class="page_protection_level">Protection (edit): {{PROTECTIONLEVEL: edit|{{PAGENAME}}}}</span><span class="last_editor">Edited by: {{REVISIONUSER}}</span>
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
==Example==
+
{{swapTitle|title=<Substituted> {{FULLPAGENAME}}}}
{{swapTitle|title=Substituted> {{PAGENAME}}}}
+
 
== Method ==
 
== Method ==
 
'''<nowiki>{{</nowiki>swapTitle|title='''''text'''''<nowiki>}}</nowiki>'''
 
'''<nowiki>{{</nowiki>swapTitle|title='''''text'''''<nowiki>}}</nowiki>'''
Line 12: Line 11:
 
</noinclude>
 
</noinclude>
 
[[category:Uses SwapTitle]]
 
[[category:Uses SwapTitle]]
[[category:{{#titleparts: {{{title|{{{translate|{{PAGENAME}} }}} }}}|1|1}}]]
 

Latest revision as of 16:49, 6 March 2014


<Substituted> Template:SwapTitleProtection (edit): Edited by: Tigersharke

[edit] Method

{{swapTitle|title=text}}

[edit] Explanation

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