Template:Yearsofteams: Difference between revisions

From Dharmaraja College Archives
Jump to navigation Jump to search
No edit summary
No edit summary
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{PAGENAME}}
*Note: Use template <nowiki> {{Loadteamdata}}</nowiki> for these pages
{{#rpos::|{{PAGENAME}}}}
 
 
{{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}}
{{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}}
{{#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='{{PAGENAME}}')
|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,
|data=Year=Year,TeamTypeName=TeamTypeName,TeamName=TeamName,TeamTypePageName=TeamTypePageName,TeamPhoto=TeamPhoto,PhotoTh=PhotoTh
}}
}}
{| class="wikitable"
{| class="wikitable"
! Team Name
! Year
! Photo
{{#for_external_table:<nowiki/>
{{#for_external_table:<nowiki/>
{{!}}-
{{!}}-
{{!}} [[{{{Year}}}|{{{Year}}}]]
{{!}} [[{{PAGENAME}}:{{{Year}}}|{{{Year}}}]]
{{!}} TeamName
{{!}} {{{PhotoTh}}}
{{!}} {{{TeamName}}}
{{!}} TeamTypeName
{{!}} {{{TeamTypeName}}}
{{!}} TeamTypePageName
{{!}} {{{TeamTypePageName}}}
}}
}}
|}
|}

Latest revision as of 05:25, 21 June 2024

  • Note: Use template {{Loadteamdata}} for these pages





Year Photo