|
|
| Line 1: |
Line 1: |
| <includeonly>
| |
| __NOTOC__ | | __NOTOC__ |
| <templatestyles src="Job_Announcement/style.css"/> | | <templatestyles src="Job_Announcement/style.css"/> |
| <div id="job-div"> | | <div class="collapsible-container"> |
| {{#if:{{{image|}}}|<div style="float: right">[[File:{{{image}}}|200px]]</div>|}}
| | <input type="checkbox" id="collapsible1" class="collapsible-checkbox"> |
| <h2>{{{title}}}</h2>
| | <label for="collapsible1" class="collapsible-label">Click to expand/collapse</label> |
| {{{short_text}}}
| | <div class="collapsible-content"> |
| <hr/>
| | <p>This is the hidden content that will be revealed when the div is expanded.</p> |
| <table>
| | <p>You can put any content here - text, images, lists, etc.</p> |
| <tr>
| | </div> |
| <td class="td-left">Job type:</td>
| |
| <td class="td-right">{{{type}}}</td>
| |
| </tr> | |
| <tr>
| |
| <td class="td-left">Job location:</td>
| |
| <td class="td-right">{{{location}}}</td>
| |
| </tr> | |
| <tr> | |
| <td class="td-left">Deadline:</td>
| |
| <td class="td-right">{{{deadline_year}}}-{{{deadline_month}}}-{{{deadline_day}}}</td> | |
| </tr> | |
| {{ #if: {{{salary_start|}}} |
| |
| <tr> | |
| <td class="td-left">Salary:</td>
| |
| <td class="td-right">{{{salary_start}}}{{ #if: {{{salary_end}}} | – {{{salary_end|}}} |}} {{{salary_currency}}}</td>
| |
| </tr> | |
| |}}
| |
| </table>
| |
| </div> | | </div> |
| {{ #if: {{NAMESPACE}} | |
| |
| [[Category:Job Announcement {{ #switch: {{{type}}}
| |
| | PhD Student=PhD Student
| |
| | Postdoc=Postdoc
| |
| | Faculty=Faculty
| |
| | Internship=Internship
| |
| | Industry=Industry
| |
| | Technologist=Technologist
| |
| | #default=Other
| |
| }}]] [[Category:Job Announcement ending {{{deadline_year}}}-{{{deadline_month}}}-{{{deadline_day}}}]]|}}
| |
| </includeonly>
| |
| <noinclude>
| |
| {{Job Announcement
| |
| | image=ESMRMB-logo.png
| |
| | title=Sample announcement
| |
| | short_text=Exciting opportunity!
| |
| | type=PhD Student
| |
| | location=Switzerland
| |
| | deadline_year=2025
| |
| | deadline_month=01
| |
| | deadline_day=01
| |
| | salary_start=40'000
| |
| | salary_end=50'000
| |
| | salary_currency=CHF
| |
| }}
| |
| == Usage ==
| |
|
| |
| This template is used to give a homogeneous look and feel to job announcement, and to automatically characterize them correctly. The following is an example of usage:
| |
| <pre>
| |
| {{Job Announcement
| |
| | image=ESMRMB-logo.png
| |
| | title=Sample announcement
| |
| | short_text=Exciting opportunity!
| |
| | type=PhD Student
| |
| | location=Switzerland
| |
| | deadline_year=2025
| |
| | deadline_month=01
| |
| | deadline_day=01
| |
| | salary_start=40'000
| |
| | salary_end=50'000
| |
| | salary_currency=CHF
| |
| }}
| |
| </pre>
| |
| === Important settings ===
| |
| The '''type''' needs to be one of the following (capitalization is important) for correct categorization of the announcement:
| |
| *PhD Student
| |
| *Postdoc
| |
| *Faculty
| |
| *Internship
| |
| *Industry
| |
| *Technologist
| |
|
| |
| To add more categories, please leave a message in the [[Template talk:Job Announcement|talk page]]. An administrator will make the appropriate changes.
| |
|
| |
| The '''salary''' settings are optional. If the salary is not a bracket (i.e. it is fixed) just define '''salary_start''' and '''salary_currency'''. '''salary_currency''' needs to be always defined when a salary is indicated.
| |
| [[Category:Templates]]
| |
| </noinclude>
| |
<input type="checkbox" id="collapsible1" class="collapsible-checkbox">
<label for="collapsible1" class="collapsible-label">Click to expand/collapse</label>
This is the hidden content that will be revealed when the div is expanded.
You can put any content here - text, images, lists, etc.