Difference between revisions of "Template:Leadership"

From Stanford SSI Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<onlyinclude>{{nowrap|{{#vardefine:President_1_sunet|aabdalla}}
+
<onlyinclude>
 +
{{nowrap|{{#vardefine:President_1_sunet|aabdalla}}
 
{{#vardefine:President_1_name|Ahmed Abdalla}}
 
{{#vardefine:President_1_name|Ahmed Abdalla}}
 
{{#vardefine:President_2_sunet|mfharris}}
 
{{#vardefine:President_2_sunet|mfharris}}
Line 31: Line 32:
 
{{#vardefine:Satellites_2_sunet|ianchang}}
 
{{#vardefine:Satellites_2_sunet|ianchang}}
 
{{#vardefine:Satellites_2_name|Ian Chang}}
 
{{#vardefine:Satellites_2_name|Ian Chang}}
 
+
{{#if:{{{Presidents|}}}|{{slack-user|sunet-id = {{#var:President_1_sunet}}|display-name = {{#var:President_1_name}}}} and {{slack-user|sunet-id={{#var:President_1_sunet}}|display-name={{#var:President_1_name}}}}}}
{{#if:{{{Presidents|}}}|Presidents, {{slack-user|sunet-id = {{#var:President_1_sunet}}|display-name = {{#var:President_1_name}}}} and {{slack-user|sunet-id={{#var:President_1_sunet}}|display-name={{#var:President_1_name}}}}}}
+
{{#if:{{{Balloons|}}}|{{slack-user|sunet-id = {{#var:Balloons_1_sunet}}|display-name = {{#var:Balloons_1_name}}}} and {{slack-user|sunet-id={{#var:Balloons_2_sunet}}|display-name={{#var:Balloons_2_name}}}}}}
{{#if:{{{Balloons|}}}|Balloons Leads, {{slack-user|sunet-id = {{#var:Balloons_1_sunet}}|display-name = {{#var:Balloons_1_name}}}} and {{slack-user|sunet-id={{#var:Balloons_2_sunet}}|display-name={{#var:Balloons_2_name}}}}}}
+
{{#if:{{{Biology|}}}|{{slack-user|sunet-id = {{#var:Biology_1_sunet}}|display-name = {{#var:Biology_1_name}}}} and {{slack-user|sunet-id={{#var:Biology_2_sunet}}|display-name={{#var:Biology_2_name}}}}}}
{{#if:{{{Biology|}}}|Biology Leads, {{slack-user|sunet-id = {{#var:Biology_1_sunet}}|display-name = {{#var:Biology_1_name}}}} and {{slack-user|sunet-id={{#var:Biology_2_sunet}}|display-name={{#var:Biology_2_name}}}}}}
+
{{#if:{{{Mars|}}}|{{slack-user|sunet-id = {{#var:Mars_1_sunet}}|display-name = {{#var:Mars_1_name}}}} and {{slack-user|sunet-id={{#var:Mars_2_sunet}}|display-name={{#var:Mars_2_name}}}}}}
{{#if:{{{Mars|}}}|Mars Leads, {{slack-user|sunet-id = {{#var:Mars_1_sunet}}|display-name = {{#var:Mars_1_name}}}} and {{slack-user|sunet-id={{#var:Mars_2_sunet}}|display-name={{#var:Mars_2_name}}}}}}
+
{{#if:{{{Operations|}}}|{{slack-user|sunet-id = {{#var:Operations_1_sunet}}|display-name = {{#var:Operations_1_name}}}} and {{slack-user|sunet-id={{#var:Operations_2_sunet}}|display-name={{#var:Operations_2_name}}}}}}
{{#if:{{{Operations|}}}|Operations Leads, {{slack-user|sunet-id = {{#var:Operations_1_sunet}}|display-name = {{#var:Operations_1_name}}}} and {{slack-user|sunet-id={{#var:Operations_2_sunet}}|display-name={{#var:Operations_2_name}}}}}}
+
{{#if:{{{Policy|}}}|{{slack-user|sunet-id = {{#var:Policy_1_sunet}}|display-name = {{#var:Policy_1_name}}}} and {{slack-user|sunet-id={{#var:Policy_2_sunet}}|display-name={{#var:Policy_2_name}}}}}}
{{#if:{{{Policy|}}}|Policy Leads, {{slack-user|sunet-id = {{#var:Policy_1_sunet}}|display-name = {{#var:Policy_1_name}}}} and {{slack-user|sunet-id={{#var:Policy_2_sunet}}|display-name={{#var:Policy_2_name}}}}}}
+
{{#if:{{{Rockets|}}}|{{slack-user|sunet-id = {{#var:Rockets_1_sunet}}|display-name = {{#var:Rockets_1_name}}}} and {{slack-user|sunet-id={{#var:Rockets_2_sunet}}|display-name={{#var:Rockets_2_name}}}}}}
{{#if:{{{Rockets|}}}|Rockets Leads, {{slack-user|sunet-id = {{#var:Rockets_1_sunet}}|display-name = {{#var:Rockets_1_name}}}} and {{slack-user|sunet-id={{#var:Rockets_2_sunet}}|display-name={{#var:Rockets_2_name}}}}}}
+
{{#if:{{{Satellites|}}}|{{slack-user|sunet-id = {{#var:Satellites_1_sunet}}|display-name = {{#var:Satellites_1_name}}}} and {{slack-user|sunet-id={{#var:Satellites_2_sunet}}|display-name={{#var:Satellites_2_name}}}}}}
{{#if:{{{Satellites|}}}|Satellites Leads, {{slack-user|sunet-id = {{#var:Satellites_1_sunet}}|display-name = {{#var:Satellites_1_name}}}} and {{slack-user|sunet-id={{#var:Satellites_2_sunet}}|display-name={{#var:Satellites_2_name}}}}}}
 
 
{{#if:{{{Everyone|}}}|
 
{{#if:{{{Everyone|}}}|
 
==Presidents==
 
==Presidents==
Line 56: Line 56:
 
:* {{slack-user|sunet-id = {{#var:Rockets_1_sunet}}|display-name = {{#var:Rockets_1_name}}}} and {{slack-user|sunet-id={{#var:Rockets_2_sunet}}|display-name={{#var:Rockets_2_name}}}}
 
:* {{slack-user|sunet-id = {{#var:Rockets_1_sunet}}|display-name = {{#var:Rockets_1_name}}}} and {{slack-user|sunet-id={{#var:Rockets_2_sunet}}|display-name={{#var:Rockets_2_name}}}}
 
==Satellites Leads==  
 
==Satellites Leads==  
:* {{slack-user|sunet-id = {{#var:Satellites_1_sunet}}|display-name = {{#var:Satellites_1_name}}}} and {{slack-user|sunet-id={{#var:Satellites_2_sunet}}|display-name={{#var:Satellites_2_name}}}}}}}}</onlyinclude>
+
:* {{slack-user|sunet-id = {{#var:Satellites_1_sunet}}|display-name = {{#var:Satellites_1_name}}}} and {{slack-user|sunet-id={{#var:Satellites_2_sunet}}|display-name={{#var:Satellites_2_name}}}}}}}}
 +
</onlyinclude>
 +
 
 
To use, copy the code below into the desired page, populating the fields that you wish to be displayed (with any text that you want) and feel free to leave the other fields blank or remove.
 
To use, copy the code below into the desired page, populating the fields that you wish to be displayed (with any text that you want) and feel free to leave the other fields blank or remove.
  
Line 72: Line 74:
 
}}</nowiki>
 
}}</nowiki>
  
An example of proper usage is shown here. Check out [[Leadership]] for a MediaWiki rendered version.
+
An example of proper usage is shown here:
  
 
  <nowiki>
 
  <nowiki>
Line 87: Line 89:
 
}}</nowiki>
 
}}</nowiki>
  
or, if you only want the Satellites leads you could only define the Satellites field. Check out [[Satellites]] for an example of rendered MediaWiki.
+
or, if you only want the Satellites leads you could do:
  
 
  <nowiki>
 
  <nowiki>

Revision as of 06:54, 28 February 2021


To use, copy the code below into the desired page, populating the fields that you wish to be displayed (with any text that you want) and feel free to leave the other fields blank or remove.

{{Leadership
| Everyone = 
| Presidents = 
| Balloons = 
| Biology = 
| Mars = 
| Operations = 
| Policy = 
| Rockets = 
| Satellites = 
}}

An example of proper usage is shown here:

{{Leadership
| Everyone = true
| Presidents = 
| Balloons = 
| Biology = 
| Mars = 
| Operations = 
| Policy = 
| Rockets = 
| Satellites = 
}}

or, if you only want the Satellites leads you could do:

{{ssi-online-resource 
| Satellites = true
}}