Sorry for the inconvenience.  Known Navigation header breakage, its being "rebuilt" but forward nav should be ok now.
There may be other unforeseen breakage primarily in the handbook portion of the wiki.
The Table Of Contents section of each "PC-BSD® Users Handbook" page may be the best workaround.

Difference between revisions of "Template:UseTOC"

From PC-BSD Wiki
Jump to: navigation, search
(15 intermediate revisions by one user not shown)
Line 1: Line 1:
<noinclude>This is the documentation content for the versioned template.
+
<noinclude>
[[file:toc-edit.png|'''How to insert new pages into the Table Of Contents''']]</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 16: 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 25: 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 35: 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