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
(Remove use of property graduateHighschool and use Category:Alumni.) |
|||
(13 intermediate revisions by 3 users not shown) | |||
Line 8: | Line 8: | ||
|MentorInYear= | |MentorInYear= | ||
|College= | |College= | ||
+ | |WikiAccount= | ||
+ | |ForumAccount= | ||
|FreshmanInYear= | |FreshmanInYear= | ||
− | | | + | |SophomoreInYear= |
|JuniorInYear= | |JuniorInYear= | ||
|SeniorInYear= | |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. | 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]] | [[Category:Templates]] | ||
Line 44: | Line 53: | ||
}} | }} | ||
<!-- End Mentor Cells --> | <!-- End Mentor Cells --> | ||
+ | <!-- Begin Officer Positions --> | ||
+ | {{#if: {{{OfficerPosition|}}} | {{#!: | ||
+ | |- | ||
+ | ! Officer Position(s) Held | ||
+ | | {{#arraymap:{{{OfficerPosition|}}}|,|x|x}} | ||
+ | }} | ||
+ | }} | ||
+ | <!-- End Officer Positions --> | ||
<!-- Begin College Cells --> | <!-- Begin College Cells --> | ||
{{#if: {{{College|}}} | {{#!: | {{#if: {{{College|}}} | {{#!: | ||
Line 52: | Line 69: | ||
}} | }} | ||
<!-- End College Cells --> | <!-- 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 --> | <!-- Begin Years of High School --> | ||
{{#if: {{{FreshmanInYear|}}} | {{#set:Freshman in year={{{FreshmanInYear|}}}}} }} | {{#if: {{{FreshmanInYear|}}} | {{#set:Freshman in year={{{FreshmanInYear|}}}}} }} | ||
− | {{#if: {{{ | + | {{#if: {{{SophomoreInYear|}}} | {{#set:Sophomore in year={{{SophomoreInYear|}}}}} }} |
{{#if: {{{JuniorInYear|}}} | {{#set:Junior in year={{{JuniorInYear|}}}}} }} | {{#if: {{{JuniorInYear|}}} | {{#set:Junior in year={{{JuniorInYear|}}}}} }} | ||
{{#if: {{{SeniorInYear|}}} | {{#set:Senior in year={{{SeniorInYear|}}}}} }} | {{#if: {{{SeniorInYear|}}} | {{#set:Senior in year={{{SeniorInYear|}}}}} }} | ||
<!-- End Years of High School --> | <!-- End Years of High School --> | ||
− | |||
<!-- Begin Graduated High School --> | <!-- Begin Graduated High School --> | ||
<!-- {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | [[Category:Alumni]] }} --> | <!-- {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | [[Category:Alumni]] }} --> | ||
+ | {{#if: {{{SeniorInYear|}}} | {{#!: | ||
{{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | [[Category:Alumni]] | {{#!: {{#if: {{{College|}}} | [[Category:Alumni]] }} }} }} | {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | [[Category:Alumni]] | {{#!: {{#if: {{{College|}}} | [[Category:Alumni]] }} }} }} | ||
+ | }} }} | ||
<!-- End Graduated High School --> | <!-- 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