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.

Difference between revisions of "Template:MemberInfoBox"

From RoboWiki
Jump to navigation Jump to search
m (Fix spelling of "graduatedHighschool")
m (Add category of alumni to the expressions that add graduated hs to yes.)
Line 64: Line 64:
 
<!-- {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | {{#set:GraduatedHighschool=yes}} | {{#set:GraduatedHighschool=no}}}} -->
 
<!-- {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | {{#set:GraduatedHighschool=yes}} | {{#set:GraduatedHighschool=no}}}} -->
  
{{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | {{#set:GraduatedHighschool=yes}} |
+
{{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | {{#set:GraduatedHighschool=yes}} [[Category:Alumni]] |
{{#!: {{#if: {{{College|}}} | {{#set:GraduatedHighschool=yes}} | {{#set:GraduatedHighschool=no}} }}}}
+
{{#!: {{#if: {{{College|}}} | {{#set:GraduatedHighschool=yes}} [[Category:Alumni]] | {{#set:GraduatedHighschool=no}} }} }}
 
}}
 
}}
 
<!-- End Graduated High School -->
 
<!-- End Graduated High School -->
 
</includeonly>
 
</includeonly>

Revision as of 22:36, 27 April 2010

It should be called in the following format:

{{MemberInfoBox
|Image=
|Gender=
|MemberInYear=
|MentorInYear=
|College=
|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.