Sorry for the inconvenience.  Known Navigation header breakage of “Previous:” and “Next:” links, the Table Of Contents may be the solution for those.
However, unfortunately, the Table of contents may also be broken, and there may be other unforeseen breakage primarily in the handbook portion of the wiki.
Presently the 10.1 Table Of Contents is being "reconstructed" becoming incrementally fixed while the other handbook versions may have various breakage.

Difference between revisions of "Template:UseTOC/9.2"

From PC-BSD Wiki
Jump to: navigation, search
 
(21 intermediate revisions by one user not shown)
Line 4: Line 4:
 
|Toc
 
|Toc
 
|TOC  = TableOfContents
 
|TOC  = TableOfContents
 +
|exTOC = exampleTOC
 
|nav
 
|nav
 
|Nav
 
|Nav
 
|NAV  = NavHeader
 
|NAV  = NavHeader
|flat = makeFlatc
+
|flat = makeFlat
|flat2 = makeFlatcc<!-- because of template expansion limits, means 3 UseTOC invocations on the flat_html page -->
+
|flat3 = makeFlatccc
+
 
|null
 
|null
 
}}
 
}}
|title={{{title|}}}<!-- ########## DO NOT MODIFY anything above this line ######### -->
+
|title={{{title|}}}|rpage={{{spoof|}}}|<!-- ########## DO NOT MODIFY anything above this line ######### -->
|0|Preface|
+
0|Preface|
 
1.|Introduction|
 
1.|Introduction|
 
1.1|Goals and Features|
 
1.1|Goals and Features|
Line 125: Line 124:
 
|<!-- ############ DO NOT MODIFY this line or anything below ############# -->
 
|<!-- ############ DO NOT MODIFY this line or anything below ############# -->
 
|
 
|
}}
+
}}<noinclude>
<noinclude>
+
__NOEDITSECTION__
== Description ==
+
{{note|align=right|width=35%|icon64=Translators should localize the following templates used: 
+
:::* [[template:Word-previous]],
+
:::* [[template:Word-next]],
+
:::* [[template:Phrase-return to table of contents]], and
+
:::* [[template:Phrase-table of contents]]. }}
+
This damn spiffy template enables a centralized '''Handbook ''Table of Contents''''' which can be used in multiple ways.  It calls an entirely automagical NavHeader template which uses the chronological relationship in the page names within the UseTOC template to choose the ''back'' and ''forward'' links.  The same ordered list provides the Table Of Contents page links and provides for the flat_html page. It necessarily works within the versioned page system, which means that this template will need to be duplicated for future versions.
+
 
+
== Usage ==
+
'''<nowiki>{{UseTOC{{</nowiki>putVers}}|Nav}}''' invokes the NavHeader as below:
+
{{UseTOC{{putVers}}|Nav}}
+
'''<nowiki>{{UseTOC{{putVers}}</nowiki>|Toc}}''' invokes a list of Table Of Contents links similar to below:<br/>
+
{{hierB|title=Preface}}<br/>
+
{{hierB|1.|title=Introduction}}
+
{{hier|1.1|title=Goals and Features}}
+
{{hier|1.2|title=What's New|alt=What's New in {{getVers}}}}
+
{{hier|1.3|title=PC-BSD® Releases}}
+
{{hier|1.4|title=PC-BSD® for Linux Users}}
+
'''<nowiki>{{UseTOC{{putVers}}</nowiki>|flat}}''' causes the {{local|link=flat_html}} page output.
+
 
</noinclude>
 
</noinclude>

Latest revision as of 05:23, 23 January 2015


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox