Difference between revisions of "Template:Docnav/zh"

From FreeCAD Documentation
Jump to navigation Jump to search
(24px)
m (upgrade documentation for adapt the Vertical DocNav)
Line 38: Line 38:
  
 
'''Code''' 1 (English): mode 1
 
'''Code''' 1 (English): mode 1
  <nowiki>{{Docnav| Draft Workbench | Arch Workbench }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|[[Draft Workbench]]
 +
|[[Arch Workbench]]
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav|Draft Workbench|Arch Workbench}}
+
{{Docnav
 +
|[[Draft Workbench]]
 +
|[[Arch Workbench]]
 +
}}
  
 
'''or'''
 
'''or'''
  
 
'''Code''' 2 (English): mode 2
 
'''Code''' 2 (English): mode 2
  <nowiki>{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|[[Draft Workbench|Draft Workbench]]
 +
|[[Arch Workbench|Arch Workbench]]  
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] }}
+
{{Docnav
 +
|[[Draft Workbench|Draft Workbench]]  
 +
|[[Arch Workbench|Arch Workbench]]  
 +
}}
  
 
'''Code''' 3 /zh (Translated):
 
'''Code''' 3 /zh (Translated):
  <nowiki>{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | [[Arch Workbench/zh|Atelier Arch]] }}</nowiki>
+
  <nowiki>
 +
{{Docnav/zh
 +
|[[Draft Workbench/zh|Atelier Draft]]  
 +
|[[Arch Workbench/zh|Atelier Arch]]
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | [[Arch Workbench/zh|Atelier Arch]] }}
+
{{Docnav/zh
 +
|[[Draft Workbench/zh|Atelier Draft]]  
 +
|[[Arch Workbench/zh|Atelier Arch]]  
 +
}}
  
 
==Normal mode Left, normal Right, title and personal central link==
 
==Normal mode Left, normal Right, title and personal central link==
  
'''Code''' 4 (English): mode 1
+
{{ColoredParagraph|'''Code''' 4 (English): mode 1 {{Optional|Not advised}}}}
  <nowiki>{{Docnav| Draft Workbench | Arch Workbench | Online Help Toc | My personal title }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|[[Draft Workbench]]
 +
|[[Arch Workbench]]
 +
|Online Help Toc|My personal title
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav|Draft Workbench|Arch Workbench|Online Help Toc|My personal title}}
+
{{Docnav
 +
|[[Draft Workbench]]
 +
|[[Arch Workbench]]
 +
|Online Help Toc|My personal title
 +
}}
  
 
'''or'''
 
'''or'''
  
 
'''Code''' 5 (English) mode 2:
 
'''Code''' 5 (English) mode 2:
  <nowiki>{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] | [[Online Help Toc|My personal title]] }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|[[Draft Workbench|Draft Workbench]]  
 +
|[[Arch Workbench|Arch Workbench]]  
 +
|[[Online Help Toc|My personal title]]  
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| [[Draft Workbench|Draft Workbench]] | [[Arch Workbench|Arch Workbench]] | [[Online Help Toc|My personal title]] }}
+
{{Docnav
 +
|[[Draft Workbench|Draft Workbench]]  
 +
|[[Arch Workbench|Arch Workbench]]  
 +
|[[Online Help Toc|My personal title]]  
 +
}}
  
'''Code''' 6 /zh (Translated) mode 1:
+
{{ColoredParagraph|'''Code''' 6 /zh (Translated) mode 1: {{Optional|Not advised}}}}
  <nowiki>{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | [[Arch Workbench/zh|Atelier Arch]] | Online Help Toc/zh | Mon titre personnel }}</nowiki>
+
  <nowiki>
 +
{{Docnav/zh
 +
|[[Draft Workbench/zh|Atelier Draft]]  
 +
|[[Arch Workbench/zh|Atelier Arch]]  
 +
|Online Help Toc/zh|Mon titre personnel  
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]]|[[Arch Workbench/zh|Atelier Arch]]|Online Help Toc/zh|Mon titre personnel}}
+
{{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:
 
'''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>
+
  <nowiki>
 +
{{Docnav/zh
 +
|[[Draft Workbench/zh|Atelier Draft]]  
 +
|[[Arch Workbench/zh|Atelier Arch]]  
 +
|[[Online Help Toc/zh|Mon titre personnel]]  
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]]|[[Arch Workbench/zh|Atelier Arch]]|[[Online Help Toc/zh|Mon titre personnel]] }}
+
{{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)==
 
==Left arrow + imposed index (example last page)==
  
 
'''Code''' 8 (English) mode 1:
 
'''Code''' 8 (English) mode 1:
  <nowiki>{{Docnav| Draft Workbench | }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|[[Draft Workbench]]
 +
|
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav|Draft Workbench|}}
+
{{Docnav
 +
|[[Draft Workbench]]
 +
|
 +
}}
  
 
'''or'''
 
'''or'''
  
 
'''Code''' 9 (English) mode 2:
 
'''Code''' 9 (English) mode 2:
  <nowiki>{{Docnav| [[Draft Workbench|Draft Workbench]] | }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|[[Draft Workbench|Draft Workbench]]
 +
|
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| [[Draft Workbench|Draft Workbench]]| }}
+
{{Docnav
 +
|[[Draft Workbench|Draft Workbench]]
 +
|  
 +
}}
  
 
'''Code''' 10 /zh (Translated):
 
'''Code''' 10 /zh (Translated):
  <nowiki>{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | }}</nowiki>
+
  <nowiki>
 +
{{Docnav/zh
 +
|[[Draft Workbench/zh|Atelier Draft]]
 +
|  
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav/zh| [[Draft Workbench/zh|Atelier Draft]] | }}
+
{{Docnav/zh
 +
|[[Draft Workbench/zh|Atelier Draft]]  
 +
|  
 +
}}
  
 
==Right arrow + imposed index (example first page)==
 
==Right arrow + imposed index (example first page)==
  
 
'''Code''' 11 (English) mode 1:
 
'''Code''' 11 (English) mode 1:
  <nowiki>{{Docnav| | Draft Workbench}}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|  
 +
|[[Draft Workbench]]
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| | Draft Workbench}}
+
{{Docnav
 +
|  
 +
|[[Draft Workbench]]
 +
}}
  
 
'''Code''' 12 (English) mode 2:
 
'''Code''' 12 (English) mode 2:
  <nowiki>{{Docnav| | [[Draft Workbench|Draft Workbench]]}}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|  
 +
|[[Draft Workbench|Draft Workbench]]
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| | [[Draft Workbench|Draft Workbench]]}}
+
{{Docnav
 +
|  
 +
|[[Draft Workbench|Draft Workbench]]
 +
}}
  
 
'''Code''' 13 /zh (Translated):
 
'''Code''' 13 /zh (Translated):
  <nowiki>{{Docnav/zh| | [[Draft Workbench/zh|Atelier Draft]]}}</nowiki>
+
  <nowiki>
 +
{{Docnav/zh
 +
|  
 +
|[[Draft Workbench/zh|Atelier Draft]]
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav/zh| | [[Draft Workbench/zh|Atelier Draft]]}}
+
{{Docnav/zh
 +
|  
 +
|[[Draft Workbench/zh|Atelier Draft]]
 +
}}
  
 
==Only imposed index==
 
==Only imposed index==
  
 
'''Code''' 14 (English):
 
'''Code''' 14 (English):
  <nowiki>{{Docnav| | }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|
 +
|  
 +
}}
 +
</nowiki>
  
 
'''or'''
 
'''or'''
  
  <nowiki>{{Docnav}}</nowiki>
+
  <nowiki>
 +
{{Docnav}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| | }}
+
{{Docnav
 +
|  
 +
|  
 +
}}
  
 
'''Code''' 15 /zh (Translated):
 
'''Code''' 15 /zh (Translated):
  <nowiki>{{Docnav/zh| | }}</nowiki>
+
  <nowiki>
 +
{{Docnav/zh
 +
|  
 +
|  
 +
}}
 +
</nowiki>
  
 
'''or'''
 
'''or'''
  
  <nowiki>{{Docnav/zh}}</nowiki>
+
  <nowiki>
 +
{{Docnav/zh}}
 +
</nowiki>
 
Result:
 
Result:
 
{{Docnav/zh}}
 
{{Docnav/zh}}
Line 136: Line 265:
 
==Only index and personal title==
 
==Only index and personal title==
  
'''Code''' 16 (English) mode 1:
+
{{ColoredParagraph|'''Code''' 16 (English) mode 1: {{Optional|Not advised}}}}
  <nowiki>{{Docnav| | |Draft_Arc|Personal title (Draft_Arc)}}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|  
 +
|  
 +
|[[Draft_Arc]] Personal title (Draft_Arc)
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| | |Draft_Arc|Personal title (Draft_Arc)}}
+
{{Docnav
 +
|
 +
|  
 +
|[[Draft_Arc]] Personal title (Draft_Arc)
 +
}}
  
 
'''or'''
 
'''or'''
  
 
'''Code''' 17 (English) mode 2:
 
'''Code''' 17 (English) mode 2:
  <nowiki>{{Docnav| | | [[Draft_Arc|Personal title (Draft_Arc)]] }}</nowiki>
+
  <nowiki>
 +
{{Docnav
 +
|  
 +
|  
 +
|[[Draft_Arc|Personal title (Draft_Arc)]]  
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav| | | [[Draft_Arc|Personal title (Draft_Arc)]] }}
+
{{Docnav
 +
|  
 +
|  
 +
| [[Draft_Arc|Personal title (Draft_Arc)]]  
 +
}}
  
 
'''Code''' 18 /zh (Translated):
 
'''Code''' 18 /zh (Translated):
  <nowiki>{{Docnav/zh| | | [[Draft_Arc/zh|Mon titre personnel (Draft_Arc)]] }}</nowiki>
+
  <nowiki>
 +
{{Docnav/zh
 +
|  
 +
|  
 +
|[[Draft_Arc/zh|Mon titre personnel (Draft_Arc)]]  
 +
}}
 +
</nowiki>
 
Result:
 
Result:
{{Docnav/zh| | | [[Draft_Arc/zh|Mon titre personnel (Draft_Arc)]] }}
+
{{Docnav/zh
 +
|  
 +
|  
 +
|[[Draft_Arc/zh|Mon titre personnel (Draft_Arc)]]  
 +
}}
  
 
==DocNav with Icon : IconL, IconC, IconR (or tree icon)==
 
==DocNav with Icon : IconL, IconC, IconR (or tree icon)==
Line 164: Line 323:
  
 
'''Code''' 19 (English):
 
'''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>
+
  <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:
 
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 }}
+
{{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):
 
'''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>
+
  <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:
 
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 }}
+
{{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  
 +
}}
  
  

Revision as of 11:08, 16 May 2020


使用此模板顯示要在文檔中前進或返回頁面的元素。

Example:

Normal mode Left, normal Right, central title imposed

Code 1 (English): mode 1

{{Docnav
|[[Draft Workbench]]
|[[Arch Workbench]]
}}

Result:

or

Code 2 (English): mode 2

{{Docnav
|[[Draft Workbench|Draft Workbench]]
|[[Arch Workbench|Arch Workbench]] 
}}

Result:

Code 3 /zh (Translated):

{{Docnav/zh
|[[Draft Workbench/zh|Atelier Draft]] 
|[[Arch Workbench/zh|Atelier Arch]]
}}

Result:

Arrow-left.svg Atelier Draft 上一页:
下一页: Atelier Arch Arrow-right.svg

Normal mode Left, normal Right, title and personal central link

Code 4 (English): mode 1 [Not advised]
{{Docnav
|[[Draft Workbench]]
|[[Arch Workbench]]
|Online Help Toc|My personal title
}}

Result:

or

Code 5 (English) mode 2:

{{Docnav
|[[Draft Workbench|Draft Workbench]] 
|[[Arch Workbench|Arch Workbench]] 
|[[Online Help Toc|My personal title]] 
}}

Result:

Code 6 /zh (Translated) mode 1: [Not advised]
{{Docnav/zh
|[[Draft Workbench/zh|Atelier Draft]] 
|[[Arch Workbench/zh|Atelier Arch]] 
|Online Help Toc/zh|Mon titre personnel 
}}

Result:

Code 7 /zh (Translated) mode 2:

{{Docnav/zh
|[[Draft Workbench/zh|Atelier Draft]] 
|[[Arch Workbench/zh|Atelier Arch]] 
|[[Online Help Toc/zh|Mon titre personnel]] 
}}

Result:

Left arrow + imposed index (example last page)

Code 8 (English) mode 1:

{{Docnav
|[[Draft Workbench]]
|
}}

Result:

or

Code 9 (English) mode 2:

{{Docnav
|[[Draft Workbench|Draft Workbench]]
|
}}

Result:

Code 10 /zh (Translated):

{{Docnav/zh
|[[Draft Workbench/zh|Atelier Draft]]
| 
}}

Result:

Arrow-left.svg Atelier Draft 上一页:
FreeCAD.png

Right arrow + imposed index (example first page)

Code 11 (English) mode 1:

{{Docnav
| 
|[[Draft Workbench]]
}}

Result:

Code 12 (English) mode 2:

{{Docnav
| 
|[[Draft Workbench|Draft Workbench]]
}}

Result:

Code 13 /zh (Translated):

{{Docnav/zh
| 
|[[Draft Workbench/zh|Atelier Draft]]
}}

Result:

FreeCAD.png
下一页: Atelier Draft Arrow-right.svg

Only imposed index

Code 14 (English):

{{Docnav
|
| 
}}

or

{{Docnav}}

Result:

Code 15 /zh (Translated):

{{Docnav/zh
| 
| 
}}

or

{{Docnav/zh}}

Result:

Only index and personal title

Code 16 (English) mode 1: [Not advised]
{{Docnav
| 
| 
|[[Draft_Arc]] Personal title (Draft_Arc)
}}

Result:

FreeCAD.png
FreeCAD.png
Draft_Arc Personal title (Draft_Arc)

or

Code 17 (English) mode 2:

{{Docnav
| 
| 
|[[Draft_Arc|Personal title (Draft_Arc)]] 
}}

Result:

Code 18 /zh (Translated):

{{Docnav/zh
| 
| 
|[[Draft_Arc/zh|Mon titre personnel (Draft_Arc)]] 
}}

Result:

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):

{{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 
}}

Result:

Code 20 /zh (Translated):

{{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 
}}

Result: