Template:Loadpersonaldata: Difference between revisions

From Dharmaraja College Archives
Jump to navigation Jump to search
(Created page with "{{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}} {{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}} {{#vardefine:FindSNo|{{#sub:{{PAGENAME}}|{{#var:LastColnNex...")
 
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOEDITSECTION__
{{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}}
{{#vardefine:LastColnPos|{{#rpos:{{PAGENAME}}|:}}}}
{{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}}
{{#vardefine:LastColnNextPos|{{#expr:{{#var:LastColnPos}}+1}}}}
{{#vardefine:FindSNo|{{#sub:{{PAGENAME}}|{{#var:LastColnNextPos}}}}}}
{{#vardefine:FindSNo|{{#sub:{{PAGENAME}}|{{#var:LastColnNextPos}}}}}}
{{#vardefine:Year|{{#expr: {{#sub:{{PAGENAME}}|-4|4}} }} }}
{{#vardefine:From|'{{#var:Year}}/01/01'}}
{{#vardefine:To|'{{#var:Year}}/12/31'}}
{{#get_db_data:
{{#get_db_data:
|server=drck-db
|db=drck-db
|from=wikiaffilations
|from=wikiaffilations
|where=(AffiliationGroupID='1') and (AffilatedFrom>={{#var:From}} ) and (AffilatedFrom<={{#var:To}})
|where=(SNo='{{#var:FindSNo}}')  
|order by=LastName ASC
|order by=LastName ASC
|data=SNo=SNo,LastName=LastName,Initials=Initials, Photo=Photo,FirstName=FirstName, ID=ID, Title=Title, Photo=Photo, AffilatedFrom=AffilatedFrom,AffilationTo=AffilationTo
|data=SNo=SNo,LastName=LastName,Initials=Initials, Photo=Photo,FirstName=FirstName, ID=ID, Title=Title, Photo=Photo, AffilatedFrom=AffilatedFrom,AffilationTo=AffilationTo
}}
}}
{| class="wikitable"
{| class="wikitable"
! Name
{{#for_external_table:<nowiki/>
! Admitted On
! Photo{{#for_external_table:<nowiki/>
{{!}}-
{{!}}-
{{!}} [[{{{LastName}}} {{{Initials}}} (SNo:{{{SNo}}})|{{{Title}}} {{{LastName}}} {{{Initials}}} ( {{{FirstName}}})]]
{{!}} {{{FirstName}}} {{{LastName}}}
{{!}} {{{AffilatedFrom}}}
{{!}} {{{Photo}}}
{{!}} {{{Photo}}}
}}
}}
|}
|}

Latest revision as of 06:46, 3 June 2024