Template:Teampage: Difference between revisions

From Dharmaraja College Archives
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}}
{{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}}
{{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}}
{{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}}
{{#vardefine:FindTeamTypeName|{{#sub:{{PAGENAME}}|{{#var:LastColnNextPos}}}}}}
{{#vardefine:FindTeamYear|{{#sub:{{PAGENAME}}|{{#var:LastColnNextPos}}}}}}


{{#vardefine:LeftStringFromColn|{{#sub:{{PAGENAME}}|0|{{#var:LastColnPos}}}}}}
{{#vardefine:LeftStringFromColn|{{#sub:{{PAGENAME}}|0|{{#var:LastColnPos}}}}}}
{{#vardefine:FindTeamName|{{#var:LeftStringFromColn}}}}


{{#vardefine:LastColnPos|{{#rpos:{{#var:LeftStringFromColn}}|:}}}}
{{#vardefine:LastColnPos|{{#rpos:{{#var:LeftStringFromColn}}|:}}}}
{{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}}
{{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}}
{{#vardefine:FindTeamYear|{{#sub:{{#var:LeftStringFromColn}}|{{#var:LastColnNextPos}}}}}}
{{#vardefine:FindTeamTypeName|{{#sub:{{#var:LeftStringFromColn}}|{{#var:LastColnNextPos}}}}}}


{{#vardefine:LeftStringFromColn|{{#sub:{{#var:LeftStringFromColn}}|0|{{#var:LastColnPos}}}}}}
{{#vardefine:FindTeamName|{{#var:LeftStringFromColn}}}}


{{#var:FindTeamTypeName}}
{{#var:FindTeamName}}
{{#var:FindTeamYear}}


{{#get_db_data:
{{#get_db_data:
|server=drck-db
|server=drck-db
|from=wikiyearsofteams
|from=wikiyearsofteams
|where=(TeamTypeName='{{#var:FindTeamTypeName}}') and (TeamName='{{#var:FindTeamName}}')
|where=(TeamTypeName='{{#var:FindTeamTypeName}}') and (TeamName='{{#var:FindTeamName}}') and (Year='{{#var:FindTeamYear}}')
|order by=Year DESC
|order by=Year DESC
|data=Year=Year,TeamTypeName=TeamTypeName,TeamName=TeamName,TeamTypePageName=TeamTypePageName,TeamPhoto=TeamPhoto,Photo=Photo
|data=Year=Year,TeamTypeName=TeamTypeName,TeamName=TeamName,TeamTypePageName=TeamTypePageName,TeamPhoto=TeamPhoto,Photo=Photo
}}
}}
{| class="wikitable"
{| class="wikitable"
! Team Name
{{#for_external_table:<nowiki/>
{{#for_external_table:<nowiki/>
{{!}}-
{{!}}-
{{!}} [[{{PAGENAME}}:{{{Year}}}|{{{Year}}}]]
{{!}} {{{Photo}}}
{{!}} {{{Photo}}}
}}
}}
|}
|}

Latest revision as of 06:41, 9 December 2023








The query SELECT Year,TeamTypeName,TeamName,TeamTypePageName,TeamPhoto,Photo FROM `wikiyearsofteams` WHERE (TeamTypeName='Teampag') and (TeamName='Teampa') and (Year='Teampage') ORDER BY Year DESC is invalid (Error 1054: Unknown column 'Photo' in 'field list' Function: EDConnectorRdbms::fetch Query: SELECT Year,TeamTypeName,TeamName,TeamTypePageName,TeamPhoto,Photo FROM `wikiyearsofteams` WHERE (TeamTypeName='Teampag') and (TeamName='Teampa') and (Year='Teampage') ORDER BY Year DESC ).