Difference between revisions of "Template:Test"
From Twilight Heroes Wiki
Line 1: | Line 1: | ||
− | <includeonly></includeonly><noinclude>__NOTOC__ | + | <includeonly>__NOTOC__ |
+ | {{blackbox|{{{image}}}}} | ||
+ | {{{desc}}} | ||
+ | |||
+ | {{#ifeq:{{{button|}}}|yes|<br clear=all> | ||
+ | {{#if:{{{option1|}}}|{{button|{{{option1}}}|center}}<br>|''Unspecified''[[Category:Incomplete]]}} | ||
+ | {{#if:{{{option2|}}}|{{button|{{{option2}}}|center}}<br>|''Unspecified''[[Category:Incomplete]]}} | ||
+ | {{#if:{{{option3|}}}|{{button|{{{option3}}}|center}}<br>}} | ||
+ | {{#if:{{{option4|}}}|{{button|{{{option3}}}|center}}<br>}} | ||
+ | {{#if:{{{option5|}}}|{{button|{{{option3}}}|center}}<br>}}|'''Options:'''<br> | ||
+ | {{#if:{{{option1|}}}|*'''{{{option1}}} '''{{#if:{{{comment1|}}}|({{{comment1}}})}}<br>|''Unspecified''[[Category:Incomplete]]}} | ||
+ | {{#if:{{{option2|}}}|*'''{{{option2}}} '''{{#if:{{{comment2|}}}|({{{comment2}}})}}<br>|''Unspecified''[[Category:Incomplete]]}} | ||
+ | {{#if:{{{option3|}}}|*'''{{{option3}}} '''{{#if:{{{comment3|}}}|({{{comment3}}})}}<br>}} | ||
+ | {{#if:{{{option4|}}}|*'''{{{option4}}} '''{{#if:{{{comment4|}}}|({{{comment4}}})}}<br>}} | ||
+ | {{#if:{{{option5|}}}|*'''{{{option5}}} '''{{#if:{{{comment5|}}}|({{{comment5}}})}}<br>}} | ||
+ | |||
+ | {{#if:{{{selector|}}}|{{#ifeq:{{{selector|}}}|!||{{button|{{{selector}}}}}}}|[[Category:Unspecified Selector]]}}}} | ||
+ | <br clear="all"> | ||
+ | ==Results== | ||
+ | ''If you chose {{{option1}}}{{#if:{{{comment1|}}}| <small>({{{comment1}}})</small>}}:''<br> | ||
+ | {{#ifeq:{{{image1|}}}|!||{{blackbox|{{{image1}}}}}}} | ||
+ | '''<big>{{{result1}}}</big>'''<br> | ||
+ | {{{desc1}}} | ||
+ | <br clear="all"> | ||
+ | ---- | ||
+ | ''If you chose {{{option2}}}{{#if:{{{comment2|}}}| <small>({{{comment2}}})</small>}}:''<br> | ||
+ | {{#ifeq:{{{image2|}}}|!||{{blackbox|{{{image2}}}}}}} | ||
+ | '''<big>{{{result2}}}</big>'''<br> | ||
+ | {{{desc2}}} | ||
+ | <br clear="all"> | ||
+ | {{#if:{{{option3|}}}|---- | ||
+ | ''If you chose {{{option3}}}{{#if:{{{comment3|}}}| <small>({{{comment3}}})</small>}}:''<br> | ||
+ | {{#ifeq:{{{image3|}}}|!||{{blackbox|{{{image3}}}}}}} | ||
+ | '''<big>{{{result3}}}</big>'''<br> | ||
+ | {{{desc3}}} | ||
+ | <br clear="all"> | ||
+ | }} | ||
+ | {{#if:{{{option4|}}}|---- | ||
+ | ''If you chose {{{option4}}}{{#if:{{{comment4|}}}| <small>({{{comment4}}})</small>}}:''<br> | ||
+ | {{#ifeq:{{{image4|}}}|!||{{blackbox|{{{image4}}}}}}} | ||
+ | '''<big>{{{result4}}}</big>'''<br> | ||
+ | {{{desc4}}} | ||
+ | <br clear="all"> | ||
+ | }} | ||
+ | {{#if:{{{option5|}}}|---- | ||
+ | ''If you chose {{{option5}}}{{#if:{{{comment5|}}}| <small>({{{comment5}}})</small>}}:''<br> | ||
+ | {{#ifeq:{{{image5|}}}|!||{{blackbox|{{{image5}}}}}}} | ||
+ | '''<big>{{{result5}}}</big>'''<br> | ||
+ | {{{desc5}}} | ||
+ | <br clear="all"> | ||
+ | }} | ||
+ | ==Location(s)== | ||
+ | {{#if:{{{loc1|}}}|*[[{{{loc1}}}]]<br>|''Unspecified''[[Category:Incomplete]]}} | ||
+ | {{#if:{{{loc2|}}}|*[[{{{loc2}}}]]<br>}} | ||
+ | {{#if:{{{loc3|}}}|*[[{{{loc3}}}]]}} | ||
+ | [[Category:Noncombat Adventures]][[Category:Choice Adventures]]</includeonly><noinclude>__NOTOC__ | ||
==Instructions== | ==Instructions== | ||
This is a test template for use in testing template code before pushing it live onto the wiki. To test template code, insert it between the "includeonly" tags. The template can then be called with <nowiki>{{test|list of parameters}}</nowiki> on any other page to view the test results. | This is a test template for use in testing template code before pushing it live onto the wiki. To test template code, insert it between the "includeonly" tags. The template can then be called with <nowiki>{{test|list of parameters}}</nowiki> on any other page to view the test results. | ||
[[Category:Test Templates]]</noinclude> | [[Category:Test Templates]]</noinclude> |
Revision as of 00:52, 2 May 2010
Instructions
This is a test template for use in testing template code before pushing it live onto the wiki. To test template code, insert it between the "includeonly" tags. The template can then be called with {{test|list of parameters}} on any other page to view the test results.