Difference between revisions of "Template:SwapTitle"

From PC-BSD Wiki
Jump to: navigation, search
 
(47 intermediate revisions by one user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}} <!-- this part causes the page title to be hidden -->{|style="background: #FfFfff; border-collapse: collapse; border-bottom: #aaaaaa solid 0.1em; border-top: #ffffff solid 0px; margin-top: -17px; margin-left:0; margin-right:0; width:99.5%;"
+
<includeonly>{{DISPLAYTITLE:<span id={{PAGENAME}} class="hide_stuff">{{FULLPAGENAME}}</span>}}<!-- this part causes the page title to be hidden -->
|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.2em; margin-bottom: 0">{{{custompagename|{{PAGENAME}}}}}</span> <!-- this part re-creates the page title and allows for a custom page name .1em;-->
+
{|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="page_protection_level">Protection (edit): {{PROTECTIONLEVEL: edit|{{PAGENAME}}}}</span><span class="last_editor">Edited by: {{REVISIONUSER}}</span>
 +
|}</includeonly><noinclude>
 +
{{swapTitle|title=<Substituted> {{FULLPAGENAME}}}}
 +
== Method ==
 +
'''<nowiki>{{</nowiki>swapTitle|title='''''text'''''<nowiki>}}</nowiki>'''
 +
== Explanation ==
 +
This is used in specific instances where neither NavHeader nor NavHome are used, in order to modify the displayed page title.
 +
[[category:templates]]
 +
</noinclude>
 +
[[category:Uses SwapTitle]]

Latest revision as of 15: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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox