Template:Yearsofteams: Difference between revisions
Jump to navigation
Jump to search
Kamalanath (talk | contribs) No edit summary |
Kamalanath (talk | contribs) No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
*Note: Use template <nowiki> {{Loadteamdata}}</nowiki> for these pages | |||
{{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}} | {{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}} | ||
{{#vardefine: | {{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}} | ||
{{#vardefine: | {{#vardefine:FindTeamTypeName|{{#sub:{{PAGENAME}}|{{#var:LastColnNextPos}}}}}} | ||
{{#vardefine:LeftStringFromColn|{{#sub:{{PAGENAME}}|0|{{#var:LastColnPos}}}}}} | |||
{{#vardefine:FindTeamName|{{#var:LeftStringFromColn}}}} | |||
{{#get_db_data: | {{#get_db_data: | ||
|server=drck-db | |server=drck-db | ||
|from=wikiyearsofteams | |from=wikiyearsofteams | ||
|where=(TeamTypeName='{{#var: | |where=(TeamTypeName='{{#var:FindTeamTypeName}}') and (TeamName='{{#var:FindTeamName}}') | ||
|order by=Year DESC | |order by=Year DESC | ||
|data=Year=Year,TeamTypeName=TeamTypeName,TeamName=TeamName,TeamTypePageName=TeamTypePageName,TeamPhoto=TeamPhoto, | |data=Year=Year,TeamTypeName=TeamTypeName,TeamName=TeamName,TeamTypePageName=TeamTypePageName,TeamPhoto=TeamPhoto,PhotoTh=PhotoTh | ||
}} | }} | ||
{| class="wikitable" | {| class="wikitable" | ||
! | ! Year | ||
! Photo | |||
{{#for_external_table:<nowiki/> | {{#for_external_table:<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}} [[{{PAGENAME}}:{{{Year}}}|{{{Year}}}]] | {{!}} [[{{PAGENAME}}:{{{Year}}}|{{{Year}}}]] | ||
{{!}} {{{ | {{!}} {{{PhotoTh}}} | ||
}} | }} | ||
|} | |} |
Latest revision as of 05:25, 21 June 2024
- Note: Use template {{Loadteamdata}} for these pages
Year | Photo |
---|