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:UseTOC"

From PC-BSD Wiki
Jump to: navigation, search
(16 intermediate revisions by one user not shown)
Line 1: Line 1:
<noinclude>This is the documentation content for the versioned template.</noinclude>
+
<noinclude>
 +
{|class=simplecenter
 +
|[[file:toc-edit.png|thumb|1024px|center|'''How to insert new pages into the Table Of Contents''']]
 +
|}</noinclude><includeonly>
 
{| class="noprint" align="left" style="margin-left:-7px; margin-right:20px; margin-top:2px; margin-bottom:1px"
 
{| class="noprint" align="left" style="margin-left:-7px; margin-right:20px; margin-top:2px; margin-bottom:1px"
 
|
 
|
Line 15: Line 18:
  
 
== Usage ==
 
== Usage ==
'''<nowiki>{{UseTOC{{</nowiki>putVers}}|Nav}}''' invokes the NavHeader as below:<br/>
+
===Navigation===
 +
'''<nowiki>{{UseTOC{{</nowiki>putVers}}|Nav}}''' invokes the NavHeader output similar to below:<br/>
 +
{|class=simplecenter
 +
|
 
{| class="navheader noprint screen"
 
{| class="navheader noprint screen"
 
|class="navleft"|{{NavHeaderLeft|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}}
 
|class="navleft"|{{NavHeaderLeft|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}}
Line 24: Line 30:
 
|-
 
|-
 
|class="titleheader" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; class="titleheadertext">{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}/Page display title/{{getLang}}}}|{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}}}</span>
 
|class="titleheader" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; class="titleheadertext">{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}/Page display title/{{getLang}}}}|{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}}}</span>
 +
|}
 
|}
 
|}
 
But if the pages relating to the backward (left) or forward (right) icon/links are not yet defined by their translation, or if the page is not yet or no longer in the ''Table Of Contents'' then the result is as below:<br/>
 
But if the pages relating to the backward (left) or forward (right) icon/links are not yet defined by their translation, or if the page is not yet or no longer in the ''Table Of Contents'' then the result is as below:<br/>
 +
{|class=simplecenter
 +
|
 
{{UseTOC{{putVers}}|Nav}}
 
{{UseTOC{{putVers}}|Nav}}
'''<nowiki>{{UseTOC{{putVers}}</nowiki>|Toc}}''' invokes a list of Table Of Contents links similar to below:<br/>
+
|}
 +
 
 +
===Table Of Contents===
 +
'''<nowiki>{{UseTOC{{putVers}}</nowiki>|Toc}}''' invokes a formatted list of page links similar to below:<br/>
 
{{hierB|title=Preface}}<br/>
 
{{hierB|title=Preface}}<br/>
 
{{hierB|1.|title=Introduction}}
 
{{hierB|1.|title=Introduction}}
Line 34: Line 46:
 
{{hier|1.3|title=PC-BSD® Releases}}
 
{{hier|1.3|title=PC-BSD® Releases}}
 
{{hier|1.4|title=PC-BSD® for Linux Users}}
 
{{hier|1.4|title=PC-BSD® for Linux Users}}
'''<nowiki>{{UseTOC{{putVers}}</nowiki>|flat}}''' causes the {{local|link=flat_html}} page output.
+
===Flat HTML===
 +
'''<nowiki>{{UseTOC{{putVers}}</nowiki>|flat}}''' causes the {{local|link=flat_html}} page output (but is limited by page size which makes it incomplete/broken in actual use).<br/>
 +
 
 +
==Modification==
 +
{|class=simplecenter
 +
|[[file:toc-edit.png|thumb|1024px|center|'''How to insert new pages into the Table Of Contents''']]
 +
|}</includeonly>

Revision as of 19:48, 30 December 2013

How to insert new pages into the Table Of Contents
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox