Difference between revisions of "Template:UseTOC/9.2"

From PC-BSD Wiki
Jump to: navigation, search
Line 130: Line 130:
 
}}
 
}}
 
<noinclude>
 
<noinclude>
 +
{| class="noprint" align="left" style="margin-left:-7px; margin-right:20px; margin-top:2px; margin-bottom:1px"
 +
|
 +
|-
 +
|__FORCETOC__
 +
| __TOC__
 +
|}
 
== Description ==
 
== Description ==
 
{{note|class=rightfloat|width=35%|icon64=Translators should localize the following templates used:   
 
{{note|class=rightfloat|width=35%|icon64=Translators should localize the following templates used:   
Line 140: Line 146:
 
== Usage ==
 
== Usage ==
 
'''<nowiki>{{UseTOC{{</nowiki>putVers}}|Nav}}''' invokes the NavHeader as below:<br/>
 
'''<nowiki>{{UseTOC{{</nowiki>putVers}}|Nav}}''' invokes the NavHeader as below:<br/>
{| class="navheader noprint screen" style="border-collapse:collapse; align:center; margin-left:0; margin-right:0; width:100%;"
+
{| class="navheader noprint screen"
|class="navleft" style="border-bottom: #BEBEBE solid 2px; width: 128px;"|{{NavHeaderLeft|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}}<!-- Always: 'back link', 'forward link', localized 'back link', localized 'forward link' -->
+
|class="navleft"|{{NavHeaderLeft|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}}
|class="navheaderbuffer" style="border-bottom: #BEBEBE solid 2px; width: 45%; text-align: left; font-weight: bold; color: #8F80fd;"|
+
|class="navheaderbuffer"|
|class="navmiddle" style="border-bottom: #BEBEBE solid 2px; width: 128px;"|{{NavHeaderMiddle}}
+
|class="navmiddle"|{{NavHeaderMiddle}}
|class="navheaderbuffer" style="border-bottom: #BEBEBE solid 2px; width: 45%; text-align: right; font-weight: bold; color: #8F80fd;"|
+
|class="navheaderbuffer"|
|class="navright" style="border-bottom: #BEBEBE solid 2px; width: 128px;"|{{NavHeaderRight|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}}
+
|class="navright"|{{NavHeaderRight|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}}
 
|-
 
|-
 
|style="border-bottom: #aaaaaa solid 1px; height: 40px;" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="margin-left:0; margin-right:0; width:100%; font-size: 200%; line-height: 1.2em; margin-bottom: 0em;">{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}/Page display title/{{getLang}}}}|{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}}}</span>
 
|style="border-bottom: #aaaaaa solid 1px; height: 40px;" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="margin-left:0; margin-right:0; width:100%; font-size: 200%; line-height: 1.2em; margin-bottom: 0em;">{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}/Page display title/{{getLang}}}}|{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}}}</span>

Revision as of 21:40, 22 December 2013


Contents

Description

NOTE: Translators should localize the following templates used:

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

{{UseTOC{{putVers}}|Nav}} invokes the NavHeader as below:

But if the pages relating to the backward (left) or forward (right) icon/links are not yet defined by their translation, then the result is below:
(Sorry for the inconvenience)

{{UseTOC{{putVers}}|Toc}} invokes a list of Table Of Contents links similar to below:
Preface
1. Introduction

1.1 Goals and Features
1.2 What's New in 9.2
1.3 PC-BSD® Releases
1.4 PC-BSD® for Linux Users

{{UseTOC{{putVers}}|flat}} causes the flat_html page output.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox