Difference between revisions of "Template:Leadership"

From Stanford SSI Wiki
Jump to navigation Jump to search
Line 90: Line 90:
 
{{#vardefine:Current}}
 
{{#vardefine:Current}}
  
{{#if:{{{Presidents|}}}|{{#vardefine|Current|President}}{{slack-user|sunet-id = {{#var:{{#var:Current}}_1_sunet}}|display-name = {{#var:{{#var:Current}}_1_name}}}} and {{slack-user|sunet-id={{#var:{{#var:Current}}_2_sunet}}|display-name={{#var:{{#var:Current}}_2_name}}}}}}
+
{{#if:{{{Presidents|}}}|{{#vardefine:Current|President}}{{slack-user|sunet-id = {{#var:{{#var:Current}}_1_sunet}}|display-name = {{#var:{{#var:Current}}_1_name}}}} and {{slack-user|sunet-id={{#var:{{#var:Current}}_2_sunet}}|display-name={{#var:{{#var:Current}}_2_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|}}}|{{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|}}}|{{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}}}}}}

Revision as of 03:37, 1 March 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
}}