Template:Macro: Difference between revisions
(Created page with "{|class="fcinfobox wikitable ct" width=100% height=100% style="float: right; width: 230px; margin-left: 10px;" | | class="ctTitle"| === Image:{{{Icon|Text-x-python}}}.png|...") |
(→Note) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{|class="fcinfobox wikitable ct" width=100% height=100% style="float: right; width: 230px; margin-left: 10px;" | | {|class="fcinfobox wikitable ct" width=100% height=100% style="float: right; width: 230px; margin-left: 10px;" | | ||
| class="ctTitle"| | | class="ctTitle"| | ||
Line 28: | Line 30: | ||
|- | |- | ||
|} | |} | ||
<noinclude> | |||
=Notes= | |||
{{Hint|'''OSE needs documentation on how to generate templates, with focus on templates such as infoboxes like here, and templates for machine development such as Template:GVCS Header. This would allow more people to organize the wiki effectively. Passing of page names into the template is very useful. Templates can be nested, which is powerful.}} | |||
Template borrowed from FreeCAD wiki. This shows that any mediawiki instance can be used to borrow useful templates. At the FreeCAD wiki, this template is used to document different FreeCAD Macros. | |||
See source at https://www.freecadweb.org/wiki/Template:Macro | |||
=Usage= | |||
This Template is the main anchor on documenting macros. | |||
<nowiki>{{Macro|Icon=Text-x-python|Name=myMacro|Description=What my macro does|Author=YourWikiUserName|Version=2.0|Date=YYYY-MM-DD}}</nowiki> | |||
You can also [http://www.freecadweb.org/wiki/index.php?title=Special:Upload upload] icon custom format '''.png''' with the same name as the macro,<br> | |||
example: "myMacro" '''without extension''' (the extension is given by the system), and replace " Icon ='''Text-x-python''' by Icon='''myMacro''' " | |||
<br> | |||
'''Text-x-python''' [[Image:Text-x-python.png|32px]] is the default icon of the page dedicated to the Macro | |||
</noinclude> |
Latest revision as of 23:36, 1 March 2018
File:Text-x-python.png {{{Name}}} |
Description |
---|
None |
Author |
[[User:{{{Author}}}|{{{Author}}}]] |
Links |
Macros recipes How to install macros How to customize toolbars |
Version |
1.0 |
Date last modification |
YYYY-MM-DD |
Notes
Hint: OSE needs documentation on how to generate templates, with focus on templates such as infoboxes like here, and templates for machine development such as Template:GVCS Header. This would allow more people to organize the wiki effectively. Passing of page names into the template is very useful. Templates can be nested, which is powerful.
Template borrowed from FreeCAD wiki. This shows that any mediawiki instance can be used to borrow useful templates. At the FreeCAD wiki, this template is used to document different FreeCAD Macros.
See source at https://www.freecadweb.org/wiki/Template:Macro
Usage
This Template is the main anchor on documenting macros.
{{Macro|Icon=Text-x-python|Name=myMacro|Description=What my macro does|Author=YourWikiUserName|Version=2.0|Date=YYYY-MM-DD}}
You can also upload icon custom format .png with the same name as the macro,
example: "myMacro" without extension (the extension is given by the system), and replace " Icon =Text-x-python by Icon=myMacro "
Text-x-python File:Text-x-python.png is the default icon of the page dedicated to the Macro