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
(Add note on forum usage.) |
(Add if statement for seniorinyear so the it doesn't break on mentor pages.) |
||
Line 87: | Line 87: | ||
<!-- 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> |
Revision as of 12:37, 28 April 2010
It should be called in the following format:
{{MemberInfoBox |Image= |Gender= |MemberInYear= |MentorInYear= |College= |WikiAccount= |ForumAccount= |FreshmanInYear= |SophmoreInYear= |JuniorInYear= |SeniorInYear= }}
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