Wiki tweak page

Revision as of 19:14, 7 September 2021 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:

How to create templates

If you feel a template is missing or needs improvement?
Use this Discussion link and discuss the change with your fellow editors.

Before creating new templates the existing Template collection and preferably use one of them.

Create a new page to serve as base

Example: http://wiki.manjaro.org/index.php/Template:TemplateNameBase

After creating the page, edit it by taking the code below as example

<noinclude>{{Template}}</noinclude>
<includeonly>{{Box|{{{1}}}|{{{2}}}|#rgb|#rgb}}</includeonly>

Template arguments explained

- rgb is the hex code for the border's color. - rgb is the hex code for the background color. - Box is the template where these templates take their formatting.

Save your Template Base page and create a new page.

Example: http://wiki.manjaro.org/index.php/Template:TemplateName

After creating the page, edit it and use below code as example

<noinclude>{{Template}}</noinclude>
<includeonly>{{TemplateNameBase|TemplateName:|{{{1|{{Purpose}}}}}}}</includeonly>

Always preview your changes and fix bugs before you finally save the new template

Usage

{{TemplateName|Text here}}