Difference between revisions of "Template:SwapTitle"

From PC-BSD Wiki
Jump to: navigation, search
(41 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 -->
+
<includeonly>{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}<!-- this part causes the page title to be hidden -->
{|style="background: #Fffff; border-bottom: #ffffff solid 1px; border-top: #ffffff solid 1px; align:center; border-collapse: collapse; margin-top:-20px; margin-left:0; margin-right:0; width:100%;"
+
{|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%;"
|
+
|<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 -->
|}
+
|}</includeonly><noinclude>
{|style="border-collapse: collapse; border-bottom: #aaaaaa solid 1px; margin-top:10px; margin-left:0; margin-right:0; width:100%;"
+
== Method ==
|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.2em; margin-bottom: 0.1em;">{{{custompagename|{{PAGENAME}}}}}</span> <!-- this part re-creates the page title and allows for a custom page name -->
+
'''<nowiki>{{</nowiki>swapTitle{{pipe}}custompagename='''''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]]
 +
[[category:{{{custompagecategory|{{{custompagename|{{PAGENAME}}}}}}}}]]<!-- allowing transclusion *** no spaces or text beyond this line -->

Revision as of 22:23, 23 February 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