Template:Test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
</noinclude>{{#ifeq:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}<noinclude> | </noinclude>{{#ifeq:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}<noinclude> | ||
</noinclude>{{#ifeq:{{{caffeine|}}}|yes|<br>'''Contains caffeine ({{{caffeinefullness}}})'''{{#vardefine:consumable|yes}} | </noinclude>{{#ifeq:{{{caffeine|}}}|yes|<br>'''Contains caffeine ({{{caffeinefullness}}})'''[[Category:Caffeine]]}}{{#vardefine:consumable|{{#ifeq:{{{caffeine|}}}|yes|yes|no}}}}<noinclude> | ||
</noinclude>{{#ifeq:{{{sugar|}}}|yes|<br>'''Contains sugar ({{{sugarfullness}}})'''{{#vardefine:consumable|yes}} | </noinclude>{{#ifeq:{{{sugar|}}}|yes|<br>'''Contains sugar ({{{sugarfullness}}})'''[[Category:Sugar]]}}{{#vardefine:consumable|{{#ifeq:{{{sugar|}}}|yes|yes|#var:consumable}}}}<noinclude> | ||
</noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]|{{#ifeq:{{{returnable|}}}|yes|<br>'''Usable'''[[Category:Returnables]]}}}}<noinclude> | </noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]|{{#ifeq:{{{returnable|}}}|yes|<br>'''Usable'''[[Category:Returnables]]}}}}<noinclude> |
Revision as of 22:37, 19 June 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.