Difference between revisions of "Member"
From ACES
Line 3: | Line 3: | ||
{{#cargo_declare:_table=Member|Name=String|Email=Email|Title=String|Cv=File|Type=String (allowed values=Supervisor,Postdoctoral,PhD,Master.Undergraduate,Alumni)|Photo=File}} | {{#cargo_declare:_table=Member|Name=String|Email=Email|Title=String|Cv=File|Type=String (allowed values=Supervisor,Postdoctoral,PhD,Master.Undergraduate,Alumni)|Photo=File}} | ||
</noinclude><includeonly>{{#cargo_store:_table=Member}} | </noinclude><includeonly>{{#cargo_store:_table=Member}} | ||
{{# | <div class="avatar"><!-- | ||
--><div class="avatar-img">{{#ifexist:File:{{{Photo}}}|[[File:{{{Photo}}}]]|[[File:Portrait Placeholder.png]]}}</div><!-- | |||
--><div class="avatar-text"><!-- | |||
-->{{#if:{{{Name|}}}|<span class="avatar-name">{{{Name}}}</span>}}<!-- | |||
-->{{#if:{{{Email|}}}|<span class="avatar-email">[mailto:{{{Email}}} <span class="material-icons">mail_outline</span>]</span>}}<!-- | |||
-->{{#if:{{{Cv|}}}|<span class="avatar-cv">[[:File:{{{Cv}}}]]</span>}}<!-- | |||
-->{{#if:{{{Title|}}}|<span class="avatar-title">{{{Title}}}</span>}}<!-- | |||
--></div><!-- | |||
--></div></includeonly><noinclude> | |||
== Example == | |||
{{Member | |||
|Name=Farinaz Koushanfar | |||
|Role=Faculty | |||
|Email=farinaz@ucsd.edu | |||
|Photo=Farinaz.jpg | |||
}} | |||
</noinclude> |
Revision as of 01:47, 15 September 2021
This is the "Member" template.
It should be called in the following format:
{{Member |Name= |Email= |Title= |Cv= |Type= |Photo= }}
Edit the page to see the template text.
This template defines the table "Member". View table.