Template

Difference between revisions of "Member"

From ACES

 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{#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>{{#cargo_declare:_table=Member
</noinclude><includeonly>{{#cargo_store:_table=Member}}
|Name=String
|Email=Email
|TitleText=String
|Cv=File
|Role=String (allowed values=Supervisor,Postdoctoral,PhD,Master,Undergraduate,Alumni,Visiting Scholar)
|Photo=File
}}</noinclude><includeonly>{{#if:{{{demo|}}}||{{#cargo_store:_table=Member|TitleText={{{Title|}}}}}}}
<div class="avatar"><!--
<div class="avatar"><!--
--><div class="avatar-img">{{#ifexist:File:{{{Photo}}}|[[File:{{{Photo}}}]]|[[File:Portrait Placeholder.png]]}}</div><!--
--><div class="avatar-img avatar-row">{{#ifexist:File:{{{Photo}}}|[[File:{{{Photo}}}]]|[[File:Portrait Placeholder.png]]}}</div><!--
--><div class="avatar-text"><!--
--><div class="avatar-row"><div class="avatar-text"><!--
-->{{#if:{{{Name|}}}|<span class="avatar-name">{{{Name}}}</span>}}<!--
-->{{#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:{{{Email|}}}|<span class="avatar-email">[mailto:{{{Email}}} <span class="material-icons-outlined">mail_outline</span>]</span>}}<!--
-->{{#if:{{{Cv|}}}|<span class="avatar-cv">[[:File:{{{Cv}}}]]</span>}}<!--
-->{{#if:{{{Website|}}}|<span class="avatar-website">[{{{Website}}} <span class="material-icons-outlined">public</span>]</span>}}<!--
-->{{#if:{{{Title|}}}|<span class="avatar-title">{{{Title}}}</span>}}<!--
-->{{#if:{{{Cv|}}}|<span class="avatar-cv">[{{fullurl:File:{{{Cv}}}}} <span class="material-icons-outlined">contact_page</span>]</span>}}<!--
--></div><!--
-->{{#if:{{{Title|}}}|<span class="avatar-title avatar-row">{{{Title}}}</span>}}<!--
--></div><!--
--></div><!--
--></div></includeonly><noinclude>
--></div></includeonly><noinclude>
Line 41: Line 49:
"description": "The member's title",
"description": "The member's title",
"example": "Principal Coordinator"
"example": "Principal Coordinator"
},
"Role": {
"description": "The member's role. Allowed values: Supervisor, Postdoctoral, PhD, Master, Undergraduate, Alumni, Visiting Scholar",
"type": "string",
"suggested": true
},
"demo": {
"description": "Only set to 1 for demo use"
},
"Website": {
"description": "The personal website for the member",
"suggested": true
}
}
},
},
Line 48: Line 68:
"Photo",
"Photo",
"Email",
"Email",
"Cv"
"Website",
"Cv",
"Role",
"demo"
],
],
"format": "block",
"format": "block",
Line 61: Line 84:
|Email=farinaz@ucsd.edu
|Email=farinaz@ucsd.edu
|Photo=Farinaz.jpg
|Photo=Farinaz.jpg
|Cv=Farinaz.jpg
|Title=Principal Coordinator
|demo=1
}}</noinclude>
}}</noinclude>

Latest revision as of 15:53, 24 September 2021

This template defines the table "Member". View table.

This template add an member in the research group.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
NameName

The name of the member

Example
Farinaz Koushanfar
Stringrequired
TitleTitle

The member's title

Example
Principal Coordinator
Stringsuggested
PhotoPhoto

The file name (with file extension) of a photo of the member. You can save the page and then upload the photo via the red link generated.

Example
Farinaz.jpg
Filesuggested
EmailEmail

The working email address of the member

Example
farinaz@ucsd.edu
Stringsuggested
WebsiteWebsite

The personal website for the member

Unknownsuggested
CvCv

The CV file(with file extension, which is usually ".pdf") of the member. You can save the page and then upload the file via the red link generated.

Filesuggested
RoleRole

The member's role. Allowed values: Supervisor, Postdoctoral, PhD, Master, Undergraduate, Alumni, Visiting Scholar

Stringsuggested
demodemo

Only set to 1 for demo use

Unknownoptional

Example[edit source]

Farinaz.jpg
Farinaz Koushanfarmail_outlinecontact_page
Principal Coordinator