Template:Template

From Citizens Wiki

Template Explanation - Template

This template is to be used for explaining template pages.

Usage

{{Template|
NAME = Template Name|
SAMPLE = <nowiki>{{Your Template Here}}</nowiki>|
DESCRIPTION = Description of your template|
A1=arg1|
A1EXP=arg1}}

Arguments

{{#ifexpr: 5 = 0|There are no arguments for this template|{{#ifexpr: 5 >= 1|*NAME - The name of your template

NAME=Name of your template|}}

{{#ifexpr: 5 >= 2|*SAMPLE - Sample code for your template

SAMPLE=<nowiki>Sample code for your template</nowiki>|}}

{{#ifexpr: 5 >= 3|*ARGS - Number of arguments your template has

ARGS=10}}

{{#ifexpr: 5 >= 4|*Ax - Argument x's name. Use numbers starting from 1. e.g. A1, A2, A3 etc. Template:Note

Ax=Argument name}}

{{#ifexpr: 5 >= 5|*AxEXP - Explanation of how to use argument x.

AxEXP=Description of argument Ax}}

{{#ifexpr: 5 >= 6|*{{{A6}}} - {{{A6EXP}}}}} {{#ifexpr: 5 >= 7|*{{{A7}}} - {{{A7EXP}}}}} {{#ifexpr: 5 >= 8|*{{{A8}}} - {{{A8EXP}}}}} {{#ifexpr: 5 >= 9|*{{{A9}}} - {{{A9EXP}}}}} {{#ifexpr: 5 >= 10|*{{{A10}}} - {{{A10EXP}}}}} {{#ifexpr: 5 >= 11|*{{{A11}}} - {{{A11EXP}}}}} {{#ifexpr: 5 >= 12|*{{{A12}}} - {{{A12EXP}}}}} {{#ifexpr: 5 >= 13|*{{{A13}}} - {{{A13EXP}}}}} {{#ifexpr: 5 >= 14|*{{{A14}}} - {{{A14EXP}}}}} {{#ifexpr: 5 >= 15|*{{{A15}}} - {{{A15EXP}}}}}}}