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
(Add a bit of intro and add category templates to this.)
(Try to update algorithm to be a bit smarter.)
Line 62: Line 62:
  
 
<!-- Begin Graduated High School -->
 
<!-- Begin Graduated High School -->
{{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | {{#set:GraduatedHighschool=yes}} | {{#set:GraduatedHighschool=no}}}}
+
<!-- {{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | {{#set:GraduatedHighschool=yes}} | {{#set:GraduatedHighschool=no}}}} -->
 +
 
 +
{{#ifexpr: {{{SeniorInYear|}}} < {{CURRENTYEAR}} | {{#set:GraduatedHighschool=yes}} |
 +
{{#!: {{#if: {{{College|}}} | {{#set:GraduatedHighSchool=yes}} | {{#set:GraduatedHighSchool=no}}}}
 +
}}
 
<1-- End Graduated High School -->
 
<1-- End Graduated High School -->
 
</includeonly>
 
</includeonly>

Revision as of 12:39, 26 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.