Manjaro Wiki tweak page

Wiki tweak page

From Manjaro
Revision as of 12:22, 21 September 2012 by imported>Aeonflux (→‎Using the new template)

How to create templates

The creation process

1. You will have to create a new page.
Example: http://wiki.manjaro.org/index.php/Template:TemplateNameBase
2. After creating the page, edit it by taking the code below as example
<includeonly>{{Box|{{{1}}}|{{{2}}}|#XXXX|#YYYY}}</includeonly>
XXXX is the hex code for the border's color.
YYYY is the hex code for the background color.
Box is the template where these templates take their formatting.
3. Save your Template Base page.
4. Create a new page.
Example: http://wiki.manjaro.org/index.php/Template:TemplateName
5. After creating the page, edit it by taking the code below as example
<includeonly>{{TemplateNameBase|TemplateName:|{{{1|{{Purpose}}}}}}}</includeonly>
6. Save your Template page.


Using the new template

Usage:

{{TemplateName|Text here}}

Output:

TemplateName:Text here
Cookies help us deliver our services. By using our services, you agree to our use of cookies.