Difference between revisions of "Template:Docnav/zh"

From FreeCAD Documentation
Jump to navigation Jump to search
(24px)
(Changed icon sizes to x16px and x24px.)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
                                 |{{#ifexist: {{{1}}}
 
                                 |{{#ifexist: {{{1}}}
 
                                     |{{#if:{{{IconL|}}}
 
                                     |{{#if:{{{IconL|}}}
                                         |[[File:Arrow-left.svg|16px]] [[File:{{{IconL}}}|16px]] [[{{{1}}}| 上一页: {{{1}}}]]
+
                                         |[[File:Arrow-left.svg|x16px]] [[File:{{{IconL}}}|x16px]] [[{{{1}}}| 上一页: {{{1}}}]]
                                         |[[File:Arrow-left.svg|16px]] [[{{{1}}}| 上一页: {{{1}}}]]}}
+
                                         |[[File:Arrow-left.svg|x16px]] [[{{{1}}}| 上一页: {{{1}}}]]}}
 
                                     |{{#if:{{{IconL|}}}
 
                                     |{{#if:{{{IconL|}}}
                                         |[[File:Arrow-left.svg|16px]] [[File:{{{IconL}}}|16px]] {{{1}}} 上一页:
+
                                         |[[File:Arrow-left.svg|x16px]] 上一页: [[File:{{{IconL}}}|x16px]] {{{1}}}
                                         |[[File:Arrow-left.svg|16px]] {{{1}}} 上一页:}}}}
+
                                         |[[File:Arrow-left.svg|x16px]] 上一页: {{{1}}} }}}}
                                 |[[File:FreeCAD.png|24px|]]}} </div>
+
                                 |[[File:FreeCAD.png|x24px|]]}} </div>
 
   <div style="float:right">{{#if: {{{2|}}}
 
   <div style="float:right">{{#if: {{{2|}}}
 
                                   |{{#ifexist: {{{2}}}
 
                                   |{{#ifexist: {{{2}}}
 
                                     |{{#if:{{{IconR|}}}
 
                                     |{{#if:{{{IconR|}}}
                                         |[[{{{2}}}|下一页: {{{2}}}]] [[File:{{{IconR}}}|16px]] [[File:Arrow-right.svg|16px]]
+
                                         |[[{{{2}}}|下一页: {{{2}}}]] [[File:{{{IconR}}}|x16px]] [[File:Arrow-right.svg|x16px]]
                                         |[[{{{2}}}|下一页: {{{2}}}]] [[File:Arrow-right.svg|16px]]}}
+
                                         |[[{{{2}}}|下一页: {{{2}}}]] [[File:Arrow-right.svg|x16px]]}}
 
                                     |{{#if:{{{IconR|}}}
 
                                     |{{#if:{{{IconR|}}}
                                         |下一页: {{{2}}} [[File:{{{IconR}}}|16px]] [[File:Arrow-right.svg|16px]]
+
                                         |下一页: {{{2}}} [[File:{{{IconR}}}|x16px]] [[File:Arrow-right.svg|x16px]]
                                         |下一页: {{{2}}} [[File:Arrow-right.svg|16px]]}}}}
+
                                         |下一页: {{{2}}} [[File:Arrow-right.svg|x16px]]}}}}
                                   |[[File:FreeCAD.png|24px|]]}}</div>
+
                                   |[[File:FreeCAD.png|x24px|]]}}</div>
 
   <div style="text-align:center">{{#if: {{{3|}}}
 
   <div style="text-align:center">{{#if: {{{3|}}}
 
                                         |{{#if: {{{4|}}}
 
                                         |{{#if: {{{4|}}}
 
                                           |{{#if:{{{IconC|}}}
 
                                           |{{#if:{{{IconC|}}}
                                               |[[{{{3}}}|{{{4}}}]] [[File:{{{IconC}}}|24px]]<div></div>
+
                                               |[[{{{3}}}|{{{4}}}]] [[File:{{{IconC}}}|x24px]]<div></div>
 
                                               |[[{{{3}}}|{{{4}}}]]}}
 
                                               |[[{{{3}}}|{{{4}}}]]}}
 
                                           |{{#if:{{{IconC|}}}
 
                                           |{{#if:{{{IconC|}}}
                                               |{{{3}}} [[File:{{{IconC}}}|24px]]<div></div>
+
                                               |{{{3}}} [[File:{{{IconC}}}|x24px]]<div></div>
 
                                               |{{{3}}} }} }}
 
                                               |{{{3}}} }} }}
 
                                         |{{#if:{{{IconC|}}}
 
                                         |{{#if:{{{IconC|}}}
                                           |[[Online Help Toc/zh|首页]] [[File:{{{IconC}}}|24px]]<div></div>
+
                                           |[[Online_Help_Toc/zh|首页]] [[File:{{{IconC}}}|x24px]]<div></div>
                                           |[[Online Help Toc/zh|首页]] [[File:Online_Help_Toc.svg|24px]]}} }}</div></div><noinclude>
+
                                           |[[Online_Help_Toc/zh|首页]] [[File:Online_Help_Toc.svg|x24px]]}} }}</div></div>
----
 
 
 
使用此模板顯示要在文檔中前進或返回頁面的元素。
 
 
 
Example:
 
 
 
==Normal mode Left, normal Right, central title imposed==
 
 
 
'''Code''' 1 (English): mode 1
 
<nowiki>{{Docnav| Draft Workbench | Arch Workbench }}</nowiki>
 
Result:
 
{{Docnav|Draft Workbench|Arch Workbench}}
 
 
 
'''or'''
 
 
 
'''Code''' 2 (English): mode 2
 
<nowiki>{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] }}</nowiki>
 
Result:
 
{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] }}
 
 
 
'''Code''' 3 /zh (Translated):
 
<nowiki>{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | [[Arch Workbench/zh|Atelier Arch]] }}</nowiki>
 
Result:
 
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | [[Arch Workbench/zh|Atelier Arch]] }}
 
 
 
==Normal mode Left, normal Right, title and personal central link==
 
 
 
'''Code''' 4 (English): mode 1
 
<nowiki>{{Docnav| Draft Workbench | Arch Workbench | Online Help Toc | My personal title }}</nowiki>
 
Result:
 
{{Docnav|Draft Workbench|Arch Workbench|Online Help Toc|My personal title}}
 
 
 
'''or'''
 
 
 
'''Code''' 5 (English) mode 2:
 
<nowiki>{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] | [[Online Help Toc|My personal title]] }}</nowiki>
 
Result:
 
{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] | [[Online Help Toc|My personal title]] }}
 
 
 
'''Code''' 6 /zh (Translated) mode 1:
 
<nowiki>{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | [[Arch Workbench/zh|Atelier Arch]] | Online Help Toc/zh | Mon titre personnel }}</nowiki>
 
Result:
 
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]]|[[Arch Workbench/zh|Atelier Arch]]|Online Help Toc/zh|Mon titre personnel}}
 
 
 
'''Code''' 7 /zh (Translated) mode 2:
 
<nowiki>{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | [[Arch Workbench/zh|Atelier Arch]] | [[Online Help Toc/zh|Mon titre personnel]] }}</nowiki>
 
Result:
 
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]]|[[Arch Workbench/zh|Atelier Arch]]|[[Online Help Toc/zh|Mon titre personnel]] }}
 
 
 
==Left arrow + imposed index (example last page)==
 
 
 
'''Code''' 8 (English) mode 1:
 
<nowiki>{{Docnav| Draft Workbench | }}</nowiki>
 
Result:
 
{{Docnav|Draft Workbench|}}
 
 
 
'''or'''
 
 
 
'''Code''' 9 (English) mode 2:
 
<nowiki>{{Docnav| [[Draft Workbench|Draft Workbench]] | }}</nowiki>
 
Result:
 
{{Docnav| [[Draft Workbench|Draft Workbench]]| }}
 
 
 
'''Code''' 10 /zh (Translated):
 
<nowiki>{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | }}</nowiki>
 
Result:
 
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | }}
 
 
 
==Right arrow + imposed index (example first page)==
 
 
 
'''Code''' 11 (English) mode 1:
 
<nowiki>{{Docnav| | Draft Workbench}}</nowiki>
 
Result:
 
{{Docnav| | Draft Workbench}}
 
 
 
'''Code''' 12 (English) mode 2:
 
<nowiki>{{Docnav| | [[Draft Workbench|Draft Workbench]]}}</nowiki>
 
Result:
 
{{Docnav| | [[Draft Workbench|Draft Workbench]]}}
 
 
 
'''Code''' 13 /zh (Translated):
 
<nowiki>{{Docnav/zh| | [[Draft Workbench/zh|Atelier Draft]]}}</nowiki>
 
Result:
 
{{Docnav/zh| | [[Draft Workbench/zh|Atelier Draft]]}}
 
 
 
==Only imposed index==
 
 
 
'''Code''' 14 (English):
 
<nowiki>{{Docnav| | }}</nowiki>
 
 
 
'''or'''
 
 
 
<nowiki>{{Docnav}}</nowiki>
 
Result:
 
{{Docnav| | }}
 
 
 
'''Code''' 15 /zh (Translated):
 
<nowiki>{{Docnav/zh| | }}</nowiki>
 
 
 
'''or'''
 
 
 
<nowiki>{{Docnav/zh}}</nowiki>
 
Result:
 
{{Docnav/zh}}
 
 
 
==Only index and personal title==
 
 
 
'''Code''' 16 (English) mode 1:
 
<nowiki>{{Docnav| | |Draft_Arc|Personal title (Draft_Arc)}}</nowiki>
 
Result:
 
{{Docnav| | |Draft_Arc|Personal title (Draft_Arc)}}
 
 
 
'''or'''
 
 
 
'''Code''' 17 (English) mode 2:
 
<nowiki>{{Docnav| | | [[Draft_Arc|Personal title (Draft_Arc)]] }}</nowiki>
 
Result:
 
{{Docnav| | | [[Draft_Arc|Personal title (Draft_Arc)]] }}
 
 
 
'''Code''' 18 /zh (Translated):
 
<nowiki>{{Docnav/zh| | | [[Draft_Arc/zh|Mon titre personnel (Draft_Arc)]] }}</nowiki>
 
Result:
 
{{Docnav/zh| | | [[Draft_Arc/zh|Mon titre personnel (Draft_Arc)]] }}
 
 
 
==DocNav with Icon : IconL, IconC, IconR (or tree icon)==
 
 
 
Optionally you can add an icon to the left of the bar to the right of the bar or to the center of the navigation bar or to all three places at once.
 
The position of the code can be placed arbitrarily in the navigation bar it will be placed automatically in the right place using the following codes:
 
* IconL = filenameImage.ext (icon on the Left of the bar)
 
* IconC = filenameImage.ext (icon in the Center of the bar)
 
* IconR = filenameImage.ext (icon to the Right of the bar
 
 
 
example:
 
 
 
'''Code''' 19 (English):
 
<nowiki>{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] | [[FEM_Module|FEM Module]] | IconC = Workbench_FEM.svg | IconL = Fem-beam-section.svg | IconR = Fem-shell-thickness.svg }}</nowiki>
 
Result:
 
{{Docnav| [[FEM_ElementGeometry1D|FEM_ElementGeometry1D]] | [[FEM_ElementGeometry2D|FEM_ElementGeometry2D]] | [[FEM_Module|FEM Module]] | IconC = Workbench_FEM.svg | IconL = Fem-beam-section.svg | IconR = Fem-shell-thickness.svg }}
 
 
 
'''Code''' 20 /zh (Translated):
 
<nowiki>{{Docnav/zh| [[FEM_ElementGeometry1D/zh|FEM_ElementGeometry1D]] | [[FEM_ElementGeometry2D/zh|FEM_ElementGeometry2D]] | [[FEM_Module/zh|FEM Module]] | IconC = Workbench_FEM.svg | IconL = Fem-beam-section.svg | IconR = Fem-shell-thickness.svg }}</nowiki>
 
Result:
 
{{Docnav/zh| [[FEM_ElementGeometry1D/zh|FEM_ElementGeometry1D]] | [[FEM_ElementGeometry2D/zh|FEM_ElementGeometry2D]] | [[FEM_Module/zh|FEM Module]] | IconC = Workbench_FEM.svg | IconL = Fem-beam-section.svg | IconR = Fem-shell-thickness.svg }}
 
 
 
 
 
[[Category:Template/zh]]
 
[[Category:Template:Navigation/zh]]
 
[[Category:Administration/zh]]
 
</noinclude>
 

Latest revision as of 17:16, 31 December 2021