Difference between revisions of "Wiki tweak page"

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


===Usage===
<nowiki>{{TemplateName|Text here}}</nowiki>
<nowiki>{{TemplateName|Text here}}</nowiki>


'''Output:'''
'''Output:'''
{{optname|TemplateName:Text here}}
{{optname|TemplateName:Text here}}
Moderators, translator
455

edits