Template:Docnav

From FreeCAD Documentation

Use this template to show an element to advance or go back a page in the documentation.

Example:

Normal left, normal right and default index

Code 1 English:

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

Result:

Code 2 Translated:

{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|[[Arch_Workbench/fr|Atelier Arch]]
}}

Result:

Normal left, normal right and custom central link

Code 3 English:

{{Docnav
|[[Draft_Workbench|Draft Workbench]]
|[[Arch_Workbench|Arch Workbench]]
|[[Online_Help_Toc|My custom title]]
}}

Result:

Code 4 Translated:

{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|[[Arch_Workbench/fr|Atelier Arch]]
|[[Online_Help_Toc/fr|Mon titre personnalisé]]
}}

Result:

Normal left and default index (example last page)

Code 5 English:

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

Result:

Code 6 Translated:

{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|
}}

Result:

Normal right and default index (example first page)

Code 7 English:

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

Result:

Code 8 Translated:

{{Docnav/fr
|
|[[Draft_Workbench/fr|Atelier Draft]]
}}

Result:

Only default index

Code 9 English:

{{Docnav
|
|
}}

or

{{Docnav}}

Result:

Code 10 Translated:

{{Docnav/fr
|
|
}}

or

{{Docnav/fr}}

Result:

Only custom central link

Code 11 English:

{{Docnav
|
|
|[[Draft_Arc|Custom title (Draft Arc)]]
}}

Result:

Code 12 Translated:

{{Docnav/fr
|
|
|[[Draft_Arc/fr|Mon titre personnalisé (Draft Arc)]]
}}

Result:

DocNav with icons: IconL, IconR and IconC

You can add icons to the left, to the right and in the center of the navigation bar:

  • IconL=filenameImage.ext (icon on the left of the bar)
  • IconR=filenameImage.ext (icon to the right of the bar
  • IconC=filenameImage.ext (icon in the center of the bar)

example:

Code 13 English:

{{Docnav
|[[FEM_ElementGeometry1D|FEM ElementGeometry1D]]
|[[FEM_ElementGeometry2D|FEM ElementGeometry2D]]
|[[FEM_Workbench|FEM Workbench]]
|IconL=FEM_ElementGeometry1D.svg
|IconR=FEM_ElementGeometry2D.svg
|IconC=Workbench_FEM.svg
}}

Result:

Code 14 Translated:

{{Docnav/fr
|[[FEM_ElementGeometry1D/fr|FEM ElementGeometry1D]]
|[[FEM_ElementGeometry2D/fr|FEM ElementGeometry2D]]
|[[FEM_Workbench/fr|FEM Workbench]]
|IconL=FEM_ElementGeometry1D.svg
|IconR=FEM_ElementGeometry2D.svg
|IconC=Workbench_FEM.svg
}}

Result: