Template:NoWikiTemp: Difference between revisions

From Metroid Wiki
1,048 bytes added ,  5 August 2010
no edit summary
(Created page with '    <b><nowiki>{{</nowiki>{{#switch:{{{1|}}} |#default={{Void}} |Substitute=<nowiki>Subst:</nowiki> |Normal= {{Void}}}}{{PAGENAME}}</b>{{#switch:{{{2|}}} |{{V…')
 
No edit summary
 
Line 1: Line 1:
&emsp;&emsp;&emsp;&emsp;<b><nowiki>{{</nowiki>{{#switch:{{{1|}}}
{{#vardefine:parameters|{{TempCounter|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}}}}}{{#vardefine:content|
{{#switch:{{#var:parameters}}
|#default={{Void}}
|#default={{Void}}
|Substitute=<nowiki>Subst:</nowiki>
|1=<b>{{!}}</b><i> {{{2|}}} </i>
|Normal= {{Void}}}}{{PAGENAME}}</b>{{#switch:{{{2|}}}
|2=<b>{{!}}</b><i> {{{2|}}} </i><b>{{!}}</b><i> {{{3|}}} </i>
|{{Void}}=<b><nowiki>}</nowiki><nowiki>}</nowiki></b>
|3=<b>{{!}}</b><i> {{{2|}}} </i><b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i>
|#default=<b><nowiki>}</nowiki><nowiki>}</nowiki></b>
|4=<b>{{!}}</b><i> {{{2|}}} </i><b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i>
|0=<b><nowiki>}</nowiki><nowiki>}</nowiki></b>
|5=<b>{{!}}</b><i> {{{2|}}} </i><b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i>
|1=<b>{{!}}</b><i> {{{3|}}} </i><b><nowiki>}</nowiki><nowiki>}</nowiki></b>
|6=<b>{{!}}</b><i> {{{2|}}} </i><b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><b>{{!}}</b><i> {{{7|}}} </i>
|2=<b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><nowiki>}</nowiki><nowiki>}</nowiki></b>
|7=<b>{{!}}</b><i> {{{2|}}} </i><b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><b>{{!}}</b><i> {{{7|}}} </i><b>{{!}}</b><i> {{{8|}}} </i>
|3=<b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><nowiki>}</nowiki><nowiki>}</nowiki></b>
|8=<b>{{!}}</b><i> {{{2|}}} </i><b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><b>{{!}}</b><i> {{{7|}}} </i><b>{{!}}</b><i> {{{8|}}} </i><b>{{!}}</b><i> {{{9|}}} </i>
|4=<b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><nowiki>}</nowiki><nowiki>}</nowiki></b>
}}}}&emsp;&emsp;&emsp;&emsp;<b><nowiki>{{</nowiki></b>{{#switch:{{lc:{{{1|}}}}}
|5=<b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><b>{{!}}</b><i> {{{7|}}} </i><nowiki>}</nowiki><nowiki>}</nowiki></b>
|#default=<b>{{PAGENAME}}</b>
|6=<b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><b>{{!}}</b><i> {{{7|}}} </i><b>{{!}}</b><i> {{{8|}}} </i><nowiki>}</nowiki><nowiki>}</nowiki></b>
|substitute=<b><nowiki>Subst:</nowiki>{{PAGENAME}}</b>
|7=<b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><b>{{!}}</b><i> {{{7|}}} </i><b>{{!}}</b><i> {{{8|}}} </i><b>{{!}}</b><i> {{{10|}}} </i><nowiki>}</nowiki><nowiki>}</nowiki></b>
|normal=<b>{{PAGENAME}}</b>{{#var:content}}
|8=<b>{{!}}</b><i> {{{3|}}} </i><b>{{!}}</b><i> {{{4|}}} </i><b>{{!}}</b><i> {{{5|}}} </i><b>{{!}}</b><i> {{{6|}}} </i><b>{{!}}</b><i> {{{7|}}} </i><b>{{!}}</b><i> {{{8|}}} </i><b>{{!}}</b><i> {{{9|}}} </i><b>{{!}}</b><i> {{{10|}}} </i><nowiki>}</nowiki><nowiki>}</nowiki></b>
|optional= <b>{{PAGENAME}}</b>{{#var:content}}(Optional)&thinsp;
}}<noinclude>
}}<b><nowiki>}</nowiki><nowiki>}</nowiki></b><noinclude>
 
==Purpose==
This template is a shortcut to entering the information of what to type to use a template. It displays it in a easily readable form, the same format as seen below under usage. This template is only to be used in the description sections of other templates, after the <nowiki><noinclude></nowiki> tag. This template automatically indents by four "em"'s, which is the same width as two consecutive colons at the beginning of a line would indent in wikicode.
 
==Usage==
To use this template, type:
 
::<b><nowiki>{{NoWikiTemp|</nowiki></b><i> Type </i><b>|</b><i> Parameters </i><b><nowiki>}}</nowiki></b>
 
Explanations:
*'''''Type'''''
**If you want the template explanation to have "Subst:" before the name, type "''Substitute''" for this option. For a standard template with multiple parameters, type "''Normal''". For a template that has the last parameter being optional, type "Optional".
*'''''Parameters'''''
**List the template's parameters here. Separate each one with a vertical line |. This template currently supports up to eight parameters listed in this place.
 
If there are no parameters, just leave that field blank.
[[Category:Formatting Templates|{{PAGENAME}}]]</noinclude>