Sorry for the inconvenience.  Chance of typos in templates, the navigation header should be functional for most versions of the handbook.
Potential remains for unforeseen breakage primarily in the handbook portion of the wiki.
Notice will be up until above verified and no other troubles found from recent modifications.

Difference between revisions of "Template:SwapTitle"

From PC-BSD Wiki
Jump to: navigation, search
(hopefully I didn't just break it.)
Line 1: Line 1:
 
<includeonly>{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}<!-- this part causes the page title to be hidden -->
 
<includeonly>{{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-bottom: 10px; margin-top: -17px; margin-left:0; margin-right:0px; width:100%;"
+
{{#if: {{{translate|}}}|{{AddTranslateIcon|{{{translate}}}}}|
|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.1em; margin-bottom: 0.1em;">{{{custompagename|{{PAGENAME}}}}}</span> <!-- this part re-creates the page title and allows for a custom page name -->
+
{{{!}}style="background: #FFFFFF; border-collapse: collapse; border-bottom: #aaaaaa solid 0.1em; border-top: #ffffff solid 0px; margin-bottom: 10px; margin-top: -17px; margin-left:0; margin-right:0px; width:100%;"
|}</includeonly><noinclude>
+
{{!}}<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.1em; margin-bottom: 0.1em;">{{{custompagename|{{PAGENAME}}}}}</span>
 +
{{!}}}
 +
}}</includeonly><noinclude>
 
== Method ==
 
== Method ==
 
'''<nowiki>{{</nowiki>swapTitle{{pipe}}custompagename='''''text'''''<nowiki>}}</nowiki>'''
 
'''<nowiki>{{</nowiki>swapTitle{{pipe}}custompagename='''''text'''''<nowiki>}}</nowiki>'''
Line 10: Line 12:
 
</noinclude>
 
</noinclude>
 
[[category:Uses SwapTitle]]
 
[[category:Uses SwapTitle]]
[[category:{{#titleparts: {{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}}|1|1}}]]<!-- allowing transclusion *** no spaces or text beyond this line -->
+
[[category:{{#titleparts: {{{custompagecategory|{{{custompagename|{{{translate|{{PAGENAME}} }}} }}} }}}|1|1}}]]<!-- allowing transclusion *** no spaces or text beyond this line -->

Revision as of 21:17, 17 April 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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox