Template:TeamPastPerformances: Difference between revisions

Content added Content deleted
(Add no_rank parameter)
(Add exclude_hunt and only_hunt parameters. Workshop subteams functionality for a later time.)
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
|fields=hd.start_date=Date,lb.hunt=Hunt,
|fields=hd.start_date=Date,lb.hunt=Hunt,
{{#if:{{{no_rank|}}}||IF(lb.rank < 0, 'Host', lb.rank)=Rank,}}
{{#if:{{{no_rank|}}}||IF(lb.rank < 0, 'Host', lb.rank)=Rank,}}
CONCAT(IF(lb.alias IS NULL, '', CONCAT('as ', lb.team)), ' ', IF(lb.comment IS NULL, '', lb.comment))=Notes
CONCAT(IF(lb.alias IS NULL OR lb.team='{{{team|{{PAGENAME}}}}}', '', CONCAT('as ', lb.team, ' ')),
|where=(lb.team='{{{team|{{PAGENAME}}}}}' OR lb.alias='{{{team|{{PAGENAME}}}}}') AND lb.rank <= {{{max_rank|30}}}
<!-- IF(lb.alias != {{{team|{{PAGENAME}}}}} AND lb.team != lb.alias != {{{team|{{PAGENAME}}}}}, 'Joint team', ''), -->
<!-- IF(lb.subteams = '', '', CONCAT('with ', lb.subteams, ' ')), -->
IF(lb.comment IS NULL, '', CONCAT('(',lb.comment,')')))=Notes
|where=(lb.team='{{{team|{{PAGENAME}}}}}' OR lb.alias='{{{team|{{PAGENAME}}}}}' <!-- OR lb.subteams HOLDS '{{{team|{{PAGENAME}}}}}' -->)
AND lb.rank <= {{{max_rank|30}}}
{{#if:{{{exclude_hunt|}}}| AND hd.franchise != '{{{exclude_hunt|}}}'|}}
{{#if:{{{only_hunt|}}}| AND hd.franchise = '{{{only_hunt|}}}'|}}
|order by=hd.start_date DESC
|order by=hd.start_date DESC
|format=table
|format=table

Latest revision as of 17:40, 3 October 2022

No results