Difference between revisions of "Template:Demonstrate template"
Jump to navigation
Jump to search
imported>Rkitko (ifeq doesn't seem necessary if not used on taxobox) |
imported>Redrose64 (don't use code within pre - readability) |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | + | <Nowiki>{{</nowiki>{{{1}}}{{#if:{{{2|}}}|<br> | |
{{!}}{{{2}}}}}{{#if:{{{3|}}}|<br> | {{!}}{{{2}}}}}{{#if:{{{3|}}}|<br> | ||
{{!}}{{{3}}}}}{{#if:{{{4|}}}|<br> | {{!}}{{{3}}}}}{{#if:{{{4|}}}|<br> | ||
| Line 10: | Line 10: | ||
{{!}}{{{9}}}}}{{#if:{{{10|}}}|<br> | {{!}}{{{9}}}}}{{#if:{{{10|}}}|<br> | ||
{{!}}{{{10}}}}} | {{!}}{{{10}}}}} | ||
| − | <nowiki>}}</nowiki | + | <nowiki>}}</nowiki> |
Produces: | Produces: | ||
Latest revision as of 15:30, 4 January 2018
Usage
Allows you to provide an example of a template without copying the code twice, making for far easier updating.
{{demonstrate template|Phylogeny|Clade 1|Clade 2|Clade 3|Clade 4|Clade 5}}
Produces:
{{Phylogeny
|Clade 1
|Clade 2
|Clade 3
|Clade 4
|Clade 5
}}
Produces:
Note
The template only supports 10 parameters at the moment, but it's a simple matter of copying and pasting to increase that. View the source and it should be self-evident.
See also
| The above documentation is transcluded from Template:Demonstrate template/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |