Difference between revisions of "Template:Flatten"

From PC-BSD Wiki
Jump to: navigation, search
m
 
(42 intermediate revisions by one user not shown)
Line 1: Line 1:
={{{1|error}}}=
+
<includeonly>
{{:{{{1|error}}}}}
+
=<span style="color: #FF6600;">{{{alt|{{{custompagetitle|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{title}}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{{title|Missing title}}}}} }}} }}}</span>=
 +
{{:{{{title|}}}{{putVers}}{{putLang}}}}</includeonly><noinclude>
 +
=== Description ===
 +
This template is used in conjunction with the '''[[flat html]]''' page. This assumes local links. An alternative page name is an option with the ''custompagename'' variable assignment. This causes the content of the named page to be transcluded under an orange header (to distinguish from subheaders and consequently standard pages) for the page name or the custom name if provided. Below may be pasted into a page with minor modifications to define what will become the header and transcluded content. An ''<nowiki>[edit]</nowiki>'' link is added because the section edit link would cause an edit of the ''flat html'' page rather than the specific page as a section of ''flat html''. Missing or malformed page title info defaults to an ''Error'' as shown above. Text ought to be formatted with desired capitalization.<br>
 +
===Usage===
 +
'''<nowiki>{{</nowiki>flatten|'''''<name of the page>'''''|custompagename='''''<custom page name>'''''}}'''
 +
[[category:templates]]</noinclude>
 +
<!--
 +
{{{title|}}}{{putLang}} {{{alt|{{{custompagetitle|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{title}}}|1|1}}/Page display title/{{getLang}}}}|{{{title|Missing title}}}}} }}} }}}
 +
 
 +
[[{{{title|}}}{{putLang}}|{{{1|}}} {{{alt|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{title}}}|1|1}}/Page display title/{{getLang}}}}|{{{title|Missing title}}}}} }}}]]
 +
-->

Latest revision as of 22:43, 3 December 2013

[edit] Description

This template is used in conjunction with the flat html page. This assumes local links. An alternative page name is an option with the custompagename variable assignment. This causes the content of the named page to be transcluded under an orange header (to distinguish from subheaders and consequently standard pages) for the page name or the custom name if provided. Below may be pasted into a page with minor modifications to define what will become the header and transcluded content. An [edit] link is added because the section edit link would cause an edit of the flat html page rather than the specific page as a section of flat html. Missing or malformed page title info defaults to an Error as shown above. Text ought to be formatted with desired capitalization.

[edit] Usage

{{flatten|<name of the page>|custompagename=<custom page name>}}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox