Getting Started Templates

From Visual WebGui Wiki

Jump to: navigation, search

Contents

General

Templates are just a blocks of template (standard) text with markups that works just like include statements. Calling a template simply "includes" and "expands" the template, based on the parameters used to call the template.

Templates are therefore a convenient way of pre-preparing a specially formatted blocks of text which you can then use (call) in your article(s) with minimal efforts.

See Getting Started FCKEditor for more about the templates and how to call them in your articles.

How to use the templates

For the standard templates you either use FCKEditor for help or you simply enter the text {{msgRequiresContent}} which will include the template at that spot in your article. Some templates can take parameters, as you can see below. Templates that take parameters, usually require you to edit the template statement manually without being able to use FCKEditor to fully complete the statement.

Templates can be edited, as they are just normal Wiki pages. Creating templates is very easy, so if you find that you would benefit from having more templates than are presented below, please send us a note or create one your self. For easy distinction, templates are kept in a seperate namespace, but that's just by convention. Any page can be included in any other page by calling it via a template call. If the called page does not reside in the Template namespace, you must preceed it with the correct namespace.

Opening a template (like clicking any link below), you can then click on the "What links here" link on left navigation area to see where the template is currently used.

Why do we use templates

We use templates just for our convenience, for quickly marking or notifying to everyone else something worth notifying about individual articles or article parts. By reviewing our standard templates below, you will quickly recognize how to use them.

Visual WebGui Wiki standard templates

{{msgRequiresContent}}


{{msgBeingWorkedOn}}


{{msgBeingWorkedOn | name=Palli}}


{{msgNeedsWork}}


{{msgNeedsWork | sections = See sections General and References}}


{{MsgNewSectionsAddedSoon| type = Type of article}}





{{msgInaccurate}}


{{msgInappropriate}}


{{msgSectionNeedsWork}}


{{MsgNeedsCSharpcode}}


{{MsgNeedsVB.NETcode}}


{{msgBox}}




More advanced use of the templates

The ideas used for those templates are based on information from another Wiki. The "messagebox" templates above all use one common template, with different parameters. You can choose to use that common template yourself for more advanced or different templates of your own.

The types of icons available in that common template you can see below.

Personal tools