Actions

Template

Difference between revisions of "DisplayCharacterMatches"

From Tenipuri Info

m
m (im just trying)
Tag: Manual revert
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table class="wikitable fullwmobile" style="width:60%">
<noinclude>'''Template Notes:''' This is for displaying matches on character pages, using the following text:
 
<nowiki>{{DisplayCharacterMatches
|LastName=}}
</nowiki>
 
Put the character's last name after the =.
</noinclude>
<table style="width:60%;" class="wikitable fullwmobile" >
<tr><th>Tournament</th><th>Players</th><th>Score</th></tr><includeonly>{{#cargo_query:
<tr><th>Tournament</th><th>Players</th><th>Score</th></tr><includeonly>{{#cargo_query:
tables=MatchResults, Tournaments
tables=MatchResults, Tournaments
|fields=Tournament,Position,Players1,Players2,Score,TournamentName,torder
|join on=MatchResults.Tournament=Tournaments.TournamentName
|where=Players1 REGEXP "{{{LastName|}}}" OR Players2 REGEXP "{{{LastName|}}}", Tournaments TournamentName=MatchResults Tournament
|fields=Tournament,Position,Players1,Players2,Score,Winner,TournamentName,torder
|where=Players1 REGEXP "{{{LastName|}}}" OR Players2 REGEXP "{{{LastName|}}}"
|named args=yes
|named args=yes
|format=template
|format=template
|template=Match Summary Row 2
|template=Match Summary Row 2
|order by=torder ASC, _rowID
|order by=torder,MatchResults._ID
}}</includeonly>
}}</includeonly>
</table>
</table>

Latest revision as of 19:04, 24 September 2021

Template Notes: This is for displaying matches on character pages, using the following text:

{{DisplayCharacterMatches
|LastName=}}

Put the character's last name after the =.

TournamentPlayersScore