Difference between revisions of "Template:Teammates"

From QBWiki
Jump to navigation Jump to search
m
 
Line 11: Line 11:
 
|{{#ifeq:{{#var:i}}|{{#var:nameindex}}||[[{{{ {{#var:i}} }}}]]{{#ifeq:{{#expr:{{#var:i}}+1+{{#ifexpr:{{#var:i}}>{{#var:nameindex}}|1|0}}}}|{{#var:count}}|<nowiki>, and </nowiki>|{{#ifexpr:{{#var:i}}+1<{{#var:count}}|<nowiki>, </nowiki>}}}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
 
|{{#ifeq:{{#var:i}}|{{#var:nameindex}}||[[{{{ {{#var:i}} }}}]]{{#ifeq:{{#expr:{{#var:i}}+1+{{#ifexpr:{{#var:i}}>{{#var:nameindex}}|1|0}}}}|{{#var:count}}|<nowiki>, and </nowiki>|{{#ifexpr:{{#var:i}}+1<{{#var:count}}|<nowiki>, </nowiki>}}}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
 
}}}}}}</includeonly><noinclude>
 
}}}}}}</includeonly><noinclude>
For conveniently including repeating a list of teammates of, say, a nationals-winning team, on each members player page. Automatically removes entries whose value matches the current page name.
+
For conveniently including repeating a list of teammates of, say, a nationals-winning team, on each member's player page. Automatically removes entries whose value matches the current page name.
  
 
<pre>
 
<pre>

Latest revision as of 21:33, 2 April 2022

For conveniently including repeating a list of teammates of, say, a nationals-winning team, on each member's player page. Automatically removes entries whose value matches the current page name.

Along with teammates 
{{Teammates|first1 last1|Teammates|first3 last3|first4 last4}}, "Teammates" won a fictional championship together.

Along with teammates first1 last1, first3 last3, and first4 last4, "Teammates" won a fictional championship together.