Difference between revisions of "Template:Test"

From The Shartak Wiki
Jump to navigationJump to search
m (Created as a sandbox for templates.)
 
 
(35 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{ #if: {{{1|}}} | y | n }}</includeonly><noinclude>This template is used only for testing purposes.
+
<includeonly>{{
 +
#ifeq: {{{1|}}}|||{{
 +
  #ifeq: {{{2|}}}||[http://www.shartak.com/profile.cgi?id={{{1}}} ''{{{1}}}'']|[http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]}}
 +
}}</includeonly><noinclude>This template is used only for testing purposes.
 +
 
 +
<!--{{
 +
#ifeq: {{{1|}}}|||{{
 +
  #ifeq: {{{2| }}}"|" "|[http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]|[http://www.shartak.com/profile.cgi?id={{{1}}} ''{{{1}}}'']
 +
  }}
 +
}}-->
 +
 
 +
{| border="1" cellpadding="5" cellspacing="1" style="border: solid 1px #ccc; border-collapse: collapse; background-color: #f9f9f9;"
 +
|-bgcolor="#ddd"
 +
!Input !! Output
 +
|-
 +
|<nowiki>{{test}}</nowiki> || {{test}}
 +
|-
 +
|<nowiki>{{test|2445}}</nowiki> || {{test|2445}}
 +
|-
 +
|<nowiki>{{test|2445|Elembis}}</nowiki> || {{test|2445|Elembis}}
 +
|}
  
{{test}}
 
{{test|1}}
 
  
 
[[Category:Templates|Test]]</noinclude>
 
[[Category:Templates|Test]]</noinclude>

Latest revision as of 22:57, 3 September 2008

This template is used only for testing purposes.


Input Output
{{test}}
{{test|2445}} 2445
{{test|2445|Elembis}} Elembis