Template:MacroLink

From FreeCAD Documentation

[[{{{1}}}|{{{2}}}]]


This template creates links and encapsulates them inside a <span class"MacroLink"> tag for use in the Macros recipes page.

The first parameter is the actual page link of the macro, and the second parameter is the label displayed for the link.

The optional parameter Icon= can be used to indicate a particular image. The icons should be SVG or PNG files. Otherwise, it will use the default icon for a Python script Generic macro icon.

Example:

* {{MacroLink|Macro Rotate View|Macro Rotate View}}: this macro rotates the current view by 90° to the left. Only works if you are in Top view.
* {{MacroLink|Icon=Freecad.svg|Macro Rotate View|Super macro used to rotate view}}: this macro rotates the current view by 90° to the left. Only works if you are in Top view.

Localization

Add the two letter language /AA at the end of the link to use the specific language version:

Example for French language:

  • Macro Rotate View: Cette macro fait pivoter l'affichage actuel de 90 ° vers la gauche. Ne fonctionne que si vous êtes en vue de dessus.
  • Super macro used to rotate view: Cette macro fait pivoter l'affichage actuel de 90 ° vers la gauche. Ne fonctionne que si vous êtes en vue de dessus.
* {{MacroLink|Macro Rotate View/fr|Macro Rotate View}}: Cette macro fait pivoter l'affichage actuel de 90 ° vers la gauche. Ne fonctionne que si vous êtes en vue de dessus.
* {{MacroLink|Icon=Freecad.svg|Macro Rotate View/fr|Super macro used to rotate view}}: Cette macro fait pivoter l'affichage actuel de 90 ° vers la gauche. Ne fonctionne que si vous êtes en vue de dessus.

Old definition

This template doesn't need to be translated because it doesn't contain text. You just need to use the localized link.

The old definition of the template was:

<span class="MacroLink/fr">[[Image:{{{1}}}.png|24px]] [[{{{2}}}/fr|{{{3}}}]]</span>