Template:TutorialInfo: Difference between revisions

From FreeCAD Documentation
(Undo revision 274672 by DeepSOIC (talk) - changed the wrong thing...)
(Fixed template; remove third level heading "===", use style options for the title instead; this produces a correct table of contents)
Line 1: Line 1:
{|class="fcinfobox wikitable ct" height=100% style="width: 230px; float: right; margin-left: 1em" |
{|class="fcinfobox wikitable ct" height=100% style="width: 230px; float: right; margin-left: 1em" |
| class="ctTitle" style="font-weight: bold; font-size: 125%;" | [[File:Base_ExampleCommandModel.png|32px]] Tutorial
| class="ctTitle"|
=== [[File:Base_ExampleCommandModel.png|32px]] Tutorial ===
|-
|-
! class="ctOdd"|Topic
! class="ctOdd"|Topic
Line 13: Line 12:
! class="ctOdd"|Time to complete
! class="ctOdd"|Time to complete
|-
|-
| class="ctEven"|{{{Time|Not provided}}}
| class="ctEven"|{{{Time|''Not provided''}}}
|-
|-
! class="ctOdd"|Author
! class="ctOdd"|Author
|-
|-
| class="ctEven"|{{{Author|Not provided}}}
| class="ctEven"|{{{Author|''Not provided''}}}
|-
|-
! class="ctOdd"|FreeCAD version
! class="ctOdd"|FreeCAD version
Line 23: Line 22:
| class="ctEven"|{{{FCVersion|0.14.3700 or greater}}}
| class="ctEven"|{{{FCVersion|0.14.3700 or greater}}}
|-
|-
! class="ctOdd"|Example File(s)
! class="ctOdd"|Example files
|-
|-
| class="ctEven"|{{{Files|None}}}
| class="ctEven"|{{{Files|''None''}}}
|-
|-
| class="ctToc"|<br/>__TOC__
| class="ctToc"|<br/>__TOC__

Revision as of 18:35, 21 November 2018

Tutorial
Topic
{{{Topic}}}
Level
{{{Level}}}
Time to complete
Not provided
Author
Not provided
FreeCAD version
0.14.3700 or greater
Example files
None


Usage

This Template is the main anchor on documenting Tutorials. It should be inserted as the first line in new documents.

The minimum code required for this template usage is: (sample result to right)

Tutorial
Topic
SampleTopic
Level
Beginner
Time to complete
Not provided
Author
Not provided
FreeCAD version
0.14.3700 or greater
Example files
None


{{TutorialInfo
|Topic=SampleTopic
|Level=Beginner
|FCVersion=0.14.3700 or greater
}}

Minimum Parameters

The following parameters are used in the format [parameter]=[value], with each parameter in the list separated by a pipe symbol (|):

Topic
The subcategory of this tutorial. Proposed topics are: 2D Drafting, Modeling, Rendering.
Level
Experience level required to complete this tutorial: Beginner, Intermediate, Advanced.
FCVersion
The FreeCAD version used in the creation of this tutorial. This should be the current stable version at the moment of writing.

Optional Parameters

The following parameters are optional. If they are not included in the template code, they will default to a value of "None".

Time
The approximate time required to complete the tutorial.
Author
Author of the tutorial. A link to the author's wiki or forum profile page will allow visitors to reach him/her with questions or comments.
Files
Optional link to example files. An appropriate repository needs to be determined (GitHub or CADinet, see forum discussion

Full code

Empty:

{{TutorialInfo
|Topic=
|Level=
|Time=
|Author=
|FCVersion=
|Files=
}}

Prefilled, keep the right option

{{TutorialInfo
|Topic=2D Drafting/Modeling/Rendering
|Level=Beginner/Intermediate/Advanced
|Time=
|Author=
|FCVersion=
|Files=
}}

Localization

The code required for this template is different if you are using a localized version. For more information see the Localization page.

  • First, a localized version of this template must exist or be created.
  • The localized template must be named:
    Template:TutorialInfo/AA
    where /AA is the 2 letter code for the desired language, for example /fr = French localization.
  • The method for calling the localized TutorialInfo template in a Tutorial document is:
    {{TutorialInfo/AA|Topic=SampleTopic|Level=Beginner|FCVersion=>=0.14.3700}}
    where /AA is the 2 letter code for the desired language, for example /fr = French localization.
  • Make sure you add the localized version of this template to the Languages list below.