Template:Docnav: Difference between revisions

From LabRPS Documentation
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
 
Line 8: Line 8:
                                         |[[File:Arrow-left.svg|x16px]] Previous: [[File:{{{IconL}}}|x16px]] {{{1}}}
                                         |[[File:Arrow-left.svg|x16px]] Previous: [[File:{{{IconL}}}|x16px]] {{{1}}}
                                         |[[File:Arrow-left.svg|x16px]] Previous: {{{1}}} }}}}
                                         |[[File:Arrow-left.svg|x16px]] Previous: {{{1}}} }}}}
                                 |[[File:FreeCAD.png|x24px|]]}} </div>
                                 |[[File:LabRPS.png|x24px|]]}} </div>
   <div style="float:right">{{#if: {{{2|}}}
   <div style="float:right">{{#if: {{{2|}}}
                                   |{{#ifexist: {{{2}}}
                                   |{{#ifexist: {{{2}}}
Line 17: Line 17:
                                         |Next: {{{2}}} [[File:{{{IconR}}}|x16px]] [[File:Arrow-right.svg|x16px]]
                                         |Next: {{{2}}} [[File:{{{IconR}}}|x16px]] [[File:Arrow-right.svg|x16px]]
                                         |Next: {{{2}}} [[File:Arrow-right.svg|x16px]]}}}}
                                         |Next: {{{2}}} [[File:Arrow-right.svg|x16px]]}}}}
                                   |[[File:FreeCAD.png|x24px|]]}}</div>
                                   |[[File:LabRPS.png|x24px|]]}}</div>
   <div style="text-align:center">{{#if: {{{3|}}}
   <div style="text-align:center">{{#if: {{{3|}}}
                                         |{{#if: {{{4|}}}
                                         |{{#if: {{{4|}}}
Line 37: Line 37:
==Normal left, normal right and default index==
==Normal left, normal right and default index==


'''Code''' 1 English:
'''Code''':
<pre>
<pre>
{{Docnav
{{Docnav
|[[Draft_Workbench|Draft Workbench]]
|[[windLab_Plugin|windLab Plugin]]
|[[Arch_Workbench|Arch Workbench]]
|[[seismicLab_Plugin|seismicLab Plugin]]
}}
}}
</pre>
</pre>
Result:
Result:
{{Docnav
{{Docnav
|[[Draft_Workbench|Draft Workbench]]
|[[windLab_Plugin|windLab Plugin]]
|[[Arch_Workbench|Arch Workbench]]
|[[seismicLab_Plugin|seismicLab Plugin]]
}}
}}


'''Code''' 2 Translated:
<pre>
{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|[[Arch_Workbench/fr|Atelier Arch]]
}}
</pre>
Result:
{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|[[Arch_Workbench/fr|Atelier Arch]]
}}
==Normal left, normal right and custom central link==
'''Code''' 3 English:
<pre>
{{Docnav
|[[Draft_Workbench|Draft Workbench]]
|[[Arch_Workbench|Arch Workbench]]
|[[Online_Help_Toc|My custom title]]
}}
</pre>
Result:
{{Docnav
|[[Draft_Workbench|Draft Workbench]]
|[[Arch_Workbench|Arch Workbench]]
|[[Online_Help_Toc|My custom title]]
}}
'''Code''' 4 Translated:
<pre>
{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|[[Arch_Workbench/fr|Atelier Arch]]
|[[Online_Help_Toc/fr|Mon titre personnalisé]]
}}
</pre>
Result:
{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|[[Arch_Workbench/fr|Atelier Arch]]
|[[Online_Help_Toc/fr|Mon titre personnalisé]]
}}
==Normal left and default index (example last page)==
'''Code''' 5 English:
<pre>
{{Docnav
|[[Draft_Workbench|Draft Workbench]]
|
}}
</pre>
Result:
{{Docnav
|[[Draft_Workbench|Draft Workbench]]
|
}}
'''Code''' 6 Translated:
<pre>
{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|
}}
</pre>
Result:
{{Docnav/fr
|[[Draft_Workbench/fr|Atelier Draft]]
|
}}
==Normal right and default index (example first page)==
'''Code''' 7 English:
<pre>
{{Docnav
|
|[[Draft_Workbench|Draft Workbench]]
}}
</pre>
Result:
{{Docnav
|
|[[Draft_Workbench|Draft Workbench]]
}}


'''Code''' 8 Translated:
<pre>
{{Docnav/fr
|
|[[Draft_Workbench/fr|Atelier Draft]]
}}
</pre>
Result:
{{Docnav/fr
|
|[[Draft_Workbench/fr|Atelier Draft]]
}}
==Only default index==
'''Code''' 9 English:
<pre>
{{Docnav
|
|
}}
</pre>
'''or'''
<pre>
{{Docnav}}
</pre>
Result:
{{Docnav
|
|
}}
'''Code''' 10 Translated:
<pre>
{{Docnav/fr
|
|
}}
</pre>
'''or'''
<pre>
{{Docnav/fr}}
</pre>
Result:
{{Docnav/fr}}
==Only custom central link==
'''Code''' 11 English:
<pre>
{{Docnav
|
|
|[[Draft_Arc|Custom title (Draft Arc)]]
}}
</pre>
Result:
{{Docnav
|
|
| [[Draft_Arc|Custom title (Draft_Arc)]]
}}
'''Code''' 12 Translated:
<pre>
{{Docnav/fr
|
|
|[[Draft_Arc/fr|Mon titre personnalisé (Draft Arc)]]
}}
</pre>
Result:
{{Docnav/fr
|
|
|[[Draft_Arc/fr|Mon titre personnalisé (Draft Arc)]]
}}
==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:
* {{Incode|IconL<nowiki>=</nowiki>filenameImage.ext}} (icon on the left of the bar)
* {{Incode|IconR<nowiki>=</nowiki>filenameImage.ext}} (icon to the right of the bar
* {{Incode|IconC<nowiki>=</nowiki>filenameImage.ext}} (icon in the center of the bar)
example:
'''Code''' 13 English:
<pre>
{{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
}}
</pre>
Result:
{{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
}}
'''Code''' 14 Translated:
<pre>
{{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
}}
</pre>
Result:
{{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
}}


[[Category:Template]]
[[Category:Template]]

Latest revision as of 06:21, 7 August 2022


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:

{{Docnav
|[[windLab_Plugin|windLab Plugin]]
|[[seismicLab_Plugin|seismicLab Plugin]]
}}

Result: