VDR Wiki:Templates: Difference between revisions
(→Template list: + i18n) |
|||
Line 32: | Line 32: | ||
* [[Template:VDRWiki Footer|<nowiki>{{VDRWiki Footer}}</nowiki>]] |
* [[Template:VDRWiki Footer|<nowiki>{{VDRWiki Footer}}</nowiki>]] |
||
* [[Template:I18n|<nowiki>{{i18n}}</nowiki>]] |
* [[Template:I18n|<nowiki>{{i18n|article}}</nowiki>]] |
||
* [[Template:TOC|<nowiki>{{TOC}}</nowiki>]] |
* [[Template:TOC|<nowiki>{{TOC}}</nowiki>]] |
||
Revision as of 10:28, 13 March 2006
Description
Templates are ready to use constructs of wiki syntax. They are useful for frequently used text or other unchanging things that are used more often.
One can use a template by inserting {{template_name|option1|option2}} in the text. It is then replace by the template content together with the option in the generated text. That means, changing a template changes the text in all articles the template is used in.
If this is not intended prepend a subst: to the template name as in {{subst:template_name}}.
Template list
Here are the templates listed, that exist for VDR Wiki.
These are article skeletons. Create an empty article, place the appropiate template in it (with a prepended subst: before the template name, save the article and edit it again. The basic structure is now in place.
These are some info boxes. They get the info text as parameter.
Standard elements
- {{VDRWiki Header(Standard)}}
- {{VDRWiki Header(Hardware)}}
- {{VDRWiki Header(Software)}}
- {{VDRWiki Footer}}
Examples
Create empty article and place
{{subst:Article (plugin)}}
save, and edit again, the content is now in place.
Place this somewhere in an article
{{Box Hint| This is a hint. }}
and save it. The resulting page show noch a Box with the text This is a hint in it. Edit it again. Again the call of the template is there, not the content.