Difference between revisions of "Template:Leadership"
Tag: Undo |
|||
Line 89: | Line 89: | ||
{{#vardefine:Website_2_name|Matthew Turk}} | {{#vardefine:Website_2_name|Matthew Turk}} | ||
{{#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}}}}}} |
Revision as of 09:24, 23 February 2023
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:
{{Leadership | Satellites = true }}
One downside is that you need to wrap any text that includes this template with nowrap if you want the coleads' names to appear inline with the text.
{{nowrap|{{Leadership|Satellites=true}}}}
Updating this page
To change the leadership template edit the source of this page. For "SUNet" you actually need to put the first part of the leadership member's email address that they _first_ used to register on slack. I.e., if they registered with a gmail first, and then changed to a Stanford email later, then you need to put the part before the @ of their original gmail account.