Template:GuiCommand-test

From FreeCAD Documentation
Jump to navigation Jump to search

Generic macro icon. Create your personal icon with the same name of the macro {{{Name}}}

Description
{{{Description}}}
Author
[[User:{{{Author}}}|{{{Author}}}]]
Links
Macros recipes
How to install macros
How to customize toolbars
Version
1.0
Date last modification
{{{Date}}}
Default shortcut
None
See also
None


Usage

This template is the main tool to document macros. It should be inserted as the first line in documentation pages, after the <languages/> and <translate> tags. See a sample to the right.

Generic macro icon. Create your personal icon with the same name of the macro SomeMacro

Description
This macro improves the solid shapes in all ways.

Macro version: 2.0
Last modified: 2018-11-20
Author
WikiUserName
Download
None
Links
Macro Version
2.0
Date last modified
2018-11-20
FreeCAD Version(s)
None
Default shortcut
None
See also
None


{{Macro
|Name=SomeMacro
|Description=This macro improves the solid shapes in all ways.
|Author=WikiUserName
|Version=2.0
|Date=2018-11-20
}}

The required parameters are:

{{Macro
|Name=SomeMacro
|Description=This macro improves the solid shapes in all ways.
|Author=WikiUserName
|Date=2018-11-20
}}

Other parameters may be omitted or their value left empty.

Required parameters

Parameters are specified with its value after the equals sign, parameter=value.

Each parameter in the list is separated by a pipe symbol |.

|... |Name=SomeMacro|Author=WikiUserName| ...

Parameters can be placed in the same line, or each in a separate line.

|...
|Name=SomeMacro
|Author=WikiUserName
| ...

The following parameters are required.

Name
The properly capitalized name of the macro to be documented.
The name is used to retrieve the icon graphic Name.svg or Name.png from the wiki repository. The template works properly if the icon does not exist; in this case, a generic icon Text-x-python.svg is displayed.
Description
A description for the macro, this description will be displayed in Addon manager.
Author
The author of the macro. This name is linked to the user's page in the wiki, that is, User:Author. Since macros are not part of the official FreeCAD code, users should direct their questions about them to their particular creators. The author of a macro should be reachable in the forum, with the same username as in the wiki.
Date
All macros must have a date. This is helpful to indicate the last time the macro was modified, and warn the user of the age of the code. Macros that are very old may be obsolete and may not work with a recent version of FreeCAD.

Optional Parameters

The following parameters are optional. If they are not included in the template, they will display a default value.

Translate
The name translated in your language which will be displayed in the window. For example Translate=Some_translated_name
Version
The version of the macro. If no value is given, it will default to 1.0. This is helpful for authors, so that they can document particular versions of their own macros.
Shortcut
Some macros may introduce shortcuts to launch specific tools. Indicate the shortcut buttons to press with this value. If no value is given, it will default to None.
SeeAlso
Optional links to other related commands, for example, SeeAlso=[[Some Tool|Tool]].
Icon
An image file different from Name.svg or Name.png to use as icon. This can be used to include a specific icon that is not named after the command, for example, Icon=Some_other_name.svg