You are an anonymous user who can't edit RoboWiki.
Log in if you already have an account. If you would like to become an editor for the wiki, request an account.
Log in if you already have an account. If you would like to become an editor for the wiki, request an account.
Difference between revisions of "Template:MemberInfoBox"
Jump to navigation
Jump to search
(Created page with '<noinclude> This is the "Member" template. It should be called in the following format: <pre> {{Member |Gender= |MemberInYear= |MentorInYear= }} </pre> Edit the page to see the t…') |
|||
(45 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | |||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
− | {{ | + | {{MemberInfoBox |
+ | |Image= | ||
|Gender= | |Gender= | ||
|MemberInYear= | |MemberInYear= | ||
|MentorInYear= | |MentorInYear= | ||
+ | |College= | ||
+ | |WikiAccount= | ||
+ | |ForumAccount= | ||
+ | |FreshmanInYear= | ||
+ | |SophomoreInYear= | ||
+ | |JuniorInYear= | ||
+ | |SeniorInYear= | ||
+ | |OfficerPosition= | ||
}} | }} | ||
</pre> | </pre> | ||
− | + | This template adds a info-box style div to an article. The info-box will contain any of the information listed above along with taking care of any of the SMW entries for the properties that exist. | |
+ | |||
+ | ==Notes on Forum Account== | ||
+ | The forum accout requires the the user id of the forum user. | ||
+ | |||
+ | For example, user [http://www.prhsrobotics.com/team/forum/memberlist.php?mode=viewprofile&u=2 Tanner] on the forums has a user id of 2 seen by the '''u=2''' in the url: | ||
+ | <nowiki>http://www.prhsrobotics.com/team/forum/memberlist.php?mode=viewprofile&u=2</nowiki> | ||
+ | |||
+ | [[Category:Templates]] | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {| style="width: | + | {| style="width: 25em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;" |
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{PAGENAME}}</big> | ! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{PAGENAME}}</big> | ||
+ | |- | ||
+ | | align="center" colspan="2" |{{#ifexist: Image:{{{Image|}}} | [[Image:{{{Image|}}}|frameless]] | [[Media:{{{Image|}}}|Upload {{{Image|}}}]]}} | ||
+ | |- | ||
+ | ! Name | ||
+ | | {{PAGENAME}} | ||
|- | |- | ||
! Gender | ! Gender | ||
− | | | + | | {{ucfirst: {{{Gender|}}}}} {{#set:Gender={{lcfirst: {{{Gender|}}}}}}} |
+ | <!-- Begin Member Cells--> | ||
+ | {{#if: {{{MemberInYear|}}} | {{#!: | ||
|- | |- | ||
! Member in Year(s) | ! Member in Year(s) | ||
| {{#arraymap:{{{MemberInYear|}}}|,|x|[[Member of robotics in year::x]]}} | | {{#arraymap:{{{MemberInYear|}}}|,|x|[[Member of robotics in year::x]]}} | ||
+ | }} | ||
+ | }} | ||
+ | <!-- End Member Cells --> | ||
+ | <!-- Begin Mentor Cells --> | ||
+ | {{#if: {{{MentorInYear|}}} | {{#!: | ||
|- | |- | ||
! Mentor in Year(s) | ! Mentor in Year(s) | ||
| {{#arraymap:{{{MentorInYear|}}}|,|x|[[Mentor in year::x]]}} | | {{#arraymap:{{{MentorInYear|}}}|,|x|[[Mentor in year::x]]}} | ||
+ | }} | ||
+ | }} | ||
+ | <!-- End Mentor Cells --> | ||
+ | <!-- Begin Officer Positions --> | ||
+ | {{#if: {{{OfficerPosition|}}} | {{#!: | ||
+ | |- | ||
+ | ! Officer Position(s) Held | ||
+ | | {{#arraymap:{{{OfficerPosition|}}}|,|x|x}} | ||
+ | }} | ||
+ | }} | ||
+ | <!-- End Officer Positions --> | ||
+ | <!-- Begin College Cells --> | ||
+ | {{#if: {{{College|}}} | {{#!: | ||
+ | |- | ||
+ | ! College | ||
+ | | {{#arraymap:{{{College|}}}|,|x|[[college::x]]}} | ||
+ | }} | ||
+ | }} | ||
+ | <!-- End College Cells --> | ||
+ | <!-- Begin Wiki Account --> | ||
+ | {{#if: {{{WikiAccount|}}} | {{#!: | ||
+ | |- | ||
+ | ! RoboWiki Account | ||
+ | | {{WikiUser|{{{WikiAccount|}}}}} | ||
+ | }} | ||
+ | }} | ||
+ | <!-- End Wiki Account --> | ||
+ | <!-- Begin Forum Account --> | ||
+ | {{#if: {{{ForumAccount|}}} | {{#!: | ||
+ | |- | ||
+ | ! RoboLion Forum Account | ||
+ | | [http://www.prhsrobotics.com/team/forum/memberlist.php?mode=viewprofile&u={{{ForumAccount|}}} {{PAGENAME}}] | ||
+ | }} | ||
+ | }} | ||
+ | <!-- End Forum Account --> | ||
|} | |} | ||
− | + | <!-- Begin Years of High School --> | |
− | [[Category:Category: | + | {{#if: {{{FreshmanInYear|}}} | {{#set:Freshman in year={{{FreshmanInYear|}}}}} }} |
+ | {{#if: {{{SophomoreInYear|}}} | {{#set:Sophomore in year={{{SophomoreInYear|}}}}} }} | ||
+ | {{#if: {{{JuniorInYear|}}} | {{#set:Junior in year={{{JuniorInYear|}}}}} }} | ||
+ | {{#if: {{{SeniorInYear|}}} | {{#set:Senior in year={{{SeniorInYear|}}}}} }} | ||
+ | <!-- End Years of High School --> | ||
+ | <!-- Begin Graduated High School --> | ||
+ | <!-- {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | [[Category:Alumni]] }} --> | ||
+ | {{#if: {{{SeniorInYear|}}} | {{#!: | ||
+ | {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | [[Category:Alumni]] | {{#!: {{#if: {{{College|}}} | [[Category:Alumni]] }} }} }} | ||
+ | }} }} | ||
+ | <!-- End Graduated High School --> | ||
</includeonly> | </includeonly> |
Latest revision as of 00:47, 6 December 2016
It should be called in the following format:
{{MemberInfoBox |Image= |Gender= |MemberInYear= |MentorInYear= |College= |WikiAccount= |ForumAccount= |FreshmanInYear= |SophomoreInYear= |JuniorInYear= |SeniorInYear= |OfficerPosition= }}
This template adds a info-box style div to an article. The info-box will contain any of the information listed above along with taking care of any of the SMW entries for the properties that exist.
Notes on Forum Account
The forum accout requires the the user id of the forum user.
For example, user Tanner on the forums has a user id of 2 seen by the u=2 in the url:
http://www.prhsrobotics.com/team/forum/memberlist.php?mode=viewprofile&u=2