You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:ShowArgs: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(a new debugging template)
 
(expand to be able to show 8 arguments; 5 is often not enough)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|* 1={{{1}}}|* no arguments}}
{{#if:{{{1|}}}|1={{{1}}}|''no arguments''}}{{#if:{{{2|}}}|<nowiki>;</nowiki> 2={{{2}}}|}}{{#if:{{{3|}}}|<nowiki>;</nowiki> 3={{{3}}}|}}{{#if:{{{4|}}}|<nowiki>;</nowiki> 4={{{4}}}|}}{{#if:{{{5|}}}|<nowiki>;</nowiki> 5={{{5}}}|}}{{#if:{{{6|}}}|<nowiki>;</nowiki> 6={{{6}}}|}}{{#if:{{{7|}}}|<nowiki>;</nowiki> 7={{{7}}}|}}{{#if:{{{8|}}}|<nowiki>;</nowiki> 8={{{8}}}|}}<noinclude>
{{#if:{{{2|}}}|* 2={{{2}}}|<nowiki></nowiki>}}
{{#if:{{{3|}}}|* 3={{{3}}}|<nowiki></nowiki>}}
{{#if:{{{4|}}}|* 4={{{4}}}|<nowiki></nowiki>}}
{{#if:{{{5|}}}|* 5={{{5}}}|<nowiki></nowiki>}}
<noinclude>
----
----
{{Template
{{Template
Line 10: Line 5:
|Type=Formatting
|Type=Formatting
|Sub=No
|Sub=No
|Designer=callforjudgement}}This template shows its arguments in a bulleted list. Its purpose is to enable testing of complex nested template chains, via allowing a template call to be changed to {{tl|ShowArgs}} to see what its arguments are.
|Designer=callforjudgement}}This template shows a list of its arguments and their indexes. Its purpose is to enable testing of complex nested template chains, via allowing a template call to be changed to {{tl|ShowArgs}} to see what its arguments are.
</noinclude>
</noinclude>

Latest revision as of 21:30, 30 May 2018

no arguments


Name:
  • ShowArgs
Type:
Sub-Template:
  • No
Designer:

This template shows a list of its arguments and their indexes. Its purpose is to enable testing of complex nested template chains, via allowing a template call to be changed to {{ShowArgs}} to see what its arguments are.