Template:Template: Difference between revisions

From 44Net Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>__NOTOC__<!--WARNING! This includeonly code, when run without any arguments *will* throw a lot of errors.-->{{Box| BORDER = #8898bf| BACKGROUND = #a8d3ff| WIDTH = 100%| ICON =| HEADING = Template Explanation - {{{NAME}}}| CONTENT = {{{DESCRIPTION}}} ==Usage== {{{SAMPLE}}} ==Arguments== {{#ifexpr: {{{ARGS}}} = 0|''There are no arguments for this template''|{{#ifexpr: {{{ARGS}}} >= 1|*<code>{{{A1}}}</code> - {{{A1EXP}}}}} {{#ifexpr: {{{ARGS}}} >= 2|*<code>{{...")
 
m (More prettying)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>__NOTOC__<!--WARNING! This includeonly code, when run without any arguments *will* throw a lot of errors.-->{{Box|
<includeonly>__NOTOC__<!--WARNING! This includeonly code, when run without any arguments *will* throw a lot of errors.-->
{{Box|
BORDER = #8898bf|
BORDER = #8898bf|
BACKGROUND = #a8d3ff|
BACKGROUND = #a8d3ff|
WIDTH = 100%|
WIDTH = 100%|
ICON =|
ICON =|
HEADING = Template Explanation - {{{NAME}}}|
HEADING = Template Explanation - {{{NAME}}} |
CONTENT =  
CONTENT =  
{{{DESCRIPTION}}}
{{{DESCRIPTION}}}
Line 10: Line 11:
  {{{SAMPLE}}}
  {{{SAMPLE}}}
==Arguments==
==Arguments==
{{#ifexpr: {{{ARGS}}} = 0|''There are no arguments for this template''|{{#ifexpr: {{{ARGS}}} >= 1|*<code>{{{A1}}}</code> - {{{A1EXP}}}}}
{{{ ARGS }}}
{{#ifexpr: {{{ARGS}}} >= 2|*<code>{{{A2}}}</code> - {{{A2EXP}}}}}
}}
{{#ifexpr: {{{ARGS}}} >= 3|*<code>{{{A3}}}</code> - {{{A3EXP}}}}}
</includeonly>
{{#ifexpr: {{{ARGS}}} >= 4|*<code>{{{A4}}}</code> - {{{A4EXP}}}}}
<noinclude>{{Template|
{{#ifexpr: {{{ARGS}}} >= 5|*<code>{{{A5}}}</code> - {{{A5EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 6|*<code>{{{A6}}}</code> - {{{A6EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 7|*<code>{{{A7}}}</code> - {{{A7EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 8|*<code>{{{A8}}}</code> - {{{A8EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 9|*<code>{{{A9}}}</code> - {{{A9EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 10|*<code>{{{A10}}}</code> - {{{A10EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 11|*<code>{{{A11}}}</code> - {{{A11EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 12|*<code>{{{A12}}}</code> - {{{A12EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 13|*<code>{{{A13}}}</code> - {{{A13EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 14|*<code>{{{A14}}}</code> - {{{A14EXP}}}}}
{{#ifexpr: {{{ARGS}}} >= 15|*<code>{{{A15}}}</code> - {{{A15EXP}}}}}}}}}</includeonly><noinclude>{{Template|
NAME = {{BASEPAGENAME}}|
NAME = {{BASEPAGENAME}}|
SAMPLE = <nowiki>{{Template|
SAMPLE = <nowiki>{{Template|
NAME = Template Name|
NAME = Template Name|
SAMPLE = </nowiki>&lt;<nowiki>nowiki>{{</nowiki>''Your Template Here''<nowiki>}}</nowiki>&lt;/nowiki><nowiki>|
SAMPLE = </nowiki>&lt;<nowiki>nowiki>{{</nowiki>''Your Template Here''<nowiki>}}</nowiki>&lt;/nowiki><nowiki> |
DESCRIPTION = Description of your template|
DESCRIPTION = Description of your template|
A1=arg1|
A1=arg1|
A1EXP=arg1}}</nowiki>|
A1EXP=arg1}}</nowiki>|
DESCRIPTION=This template is to be used for explaining template pages.|
DESCRIPTION=This template is to be used for explaining template pages.|
ARGS = 5|
ARGS = 5
A1=NAME|
A1EXP=The name of your template
NAME=''Name of your template''<nowiki>|</nowiki>|
A2=SAMPLE|
A2EXP=Sample code for your template
SAMPLE=&lt;nowiki>''Sample code for your template''&lt;/nowiki><nowiki>|</nowiki>|
A3=ARGS|
A3EXP=Number of arguments your template has
ARGS=10|
A4=A''x''|
A4EXP=Argument ''x'''s name. Use numbers starting from 1. e.g. A1, A2, A3 etc.
{{Note|You can use up to 15 arguments. If you want more, feel free to add more to the template.}}
A''x''=''Argument name''|
A5=A''x''EXP|
A5EXP=Explanation of how to use argument ''x''.
A''x''EXP=''Description of argument A''x''|
}}
}}
</noinclude>
</noinclude>

Latest revision as of 19:41, 4 April 2024


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

5