Difference between revisions of "Template:Recent tournament results page row"

From QBWiki
Jump to navigation Jump to search
m
(change the results rows to separate mirrors into a list rather than concatenate them into a comma-delimited natural language string)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine: i|2}}*'''{{{1}}}'''{{#if:{{{2|}}}|@ {{{2}}}}} {{{m1}}}{{ssl|{{{l1|no stats}}}}}{{#while:
+
{{#vardefine: i|2}}*'''{{{1}}}''' {{#if:{{{2|}}}|@ {{{2}}}}}{{#if:{{{m2|}}}|
<!---->|{{#if:{{{m{{#expr:{{#var:i}}+1}}|}}}|true}}
+
# {{{m1}}}{{ssl|{{{l1|no stats}}}}}|{{{m1}}}{{ssl|{{{l1|no stats}}}}}}}{{#while:
<!---->|, {{{m{{#var:i}}}}}{{ssl|{{{l{{#var:i}}|no stats}}}}}{{#vardefine: i|{{#expr:{{#var:i}}+1}}}}
+
<!---->|{{#if:{{{ m{{#var:i}}| }}}|true}}
}}{{#if:{{{m{{#var:i}}|}}}|{{#ifexpr:{{#var:i}}>2|,}}<nowiki> and </nowiki>{{{m{{#var:i}}}}}{{ssl|{{{l{{#var:i}}|no stats}}}}}}}<noinclude>
+
<!---->|<nowiki/>
 +
# {{{ m{{#var:i}} }}}{{ssl|{{{ l{{#var:i}}|no stats}}}}}{{Add|i|1}}}}<noinclude>
 
Row for use in [[Template:Recent tournament results page section]] and in turn [[Template:Recent tournament results page]]. Shortcut at [[Template:rtrp row]].
 
Row for use in [[Template:Recent tournament results page section]] and in turn [[Template:Recent tournament results page]]. Shortcut at [[Template:rtrp row]].
  
 
Examples:
 
Examples:
{{Recent tournament results page row|[[2011 ACF Fall]]|m1=s|l1=fake link}}
+
{|class="wikitable"
{{Recent tournament results page row|[[2014 ACF Nationals]]|m1=s|l1=fake link
+
!Input
 +
!Output
 +
|-
 +
|<pre>{{Recent tournament results page row|[[2011 ACF Fall]]|m1=s|l1=fake link}}</pre>
 +
|{{Recent tournament results page row|[[2011 ACF Fall]]|m1=s|l1=fake link}}
 +
|-
 +
|<pre>{{Recent tournament results page row|[[2014 ACF Nationals]]|m1=s|l1=fake link
 +
|m2=t}}</pre>
 +
|{{Recent tournament results page row|[[2014 ACF Nationals]]|m1=s|l1=fake link
 
|m2=t}}
 
|m2=t}}
{{Recent tournament results page row|[[2021 HSNCT]] @ online|m1=a
+
|-
 +
|<pre>{{Recent tournament results page row|[[2021 HSNCT]]|online|m1=a
 +
|m2=b|l2=fake link
 +
|m3=c|l3=fake link}}</pre>
 +
|{{Recent tournament results page row|[[2021 HSNCT]]|online|m1=a
 
|m2=b|l2=fake link
 
|m2=b|l2=fake link
 
|m3=c|l3=fake link}}
 
|m3=c|l3=fake link}}
{{Recent tournament results page row|[[2009 NSC]] @ purgatory|m1=q|l1=fake link
+
|-
 +
|<pre>{{Recent tournament results page row|[[2009 NSC]]|purgatory|m1=q|l1=fake link
 +
|m2=r|l2=fake link
 +
|m3=s
 +
|m4=t|l4=fake link}}</pre>
 +
|{{Recent tournament results page row|[[2009 NSC]]|purgatory|m1=q|l1=fake link
 
|m2=r|l2=fake link
 
|m2=r|l2=fake link
 
|m3=s
 
|m3=s
 
|m4=t|l4=fake link}}
 
|m4=t|l4=fake link}}
 +
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 21:47, 15 October 2022

  • {{{1}}} – {{{m1}}}[no stats]

Row for use in Template:Recent tournament results page section and in turn Template:Recent tournament results page. Shortcut at Template:rtrp row.

Examples:

Input Output
{{Recent tournament results page row|[[2011 ACF Fall]]|m1=s|l1=fake link}}
{{Recent tournament results page row|[[2014 ACF Nationals]]|m1=s|l1=fake link
|m2=t}}
  1. s[fake link]
  2. t[no stats]
{{Recent tournament results page row|[[2021 HSNCT]]|online|m1=a
|m2=b|l2=fake link
|m3=c|l3=fake link}}
  1. a[no stats]
  2. b[fake link]
  3. c[fake link]
{{Recent tournament results page row|[[2009 NSC]]|purgatory|m1=q|l1=fake link
|m2=r|l2=fake link
|m3=s
|m4=t|l4=fake link}}
  1. q[fake link]
  2. r[fake link]
  3. s[no stats]
  4. t[fake link]