Template

Job: Difference between revisions

No edit summary
 
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Jobs" template.
{{#template_params:
Description
|Posted
|Closes
|News
|RSS_pubdate
}}
<!--
This is the "Job" template.
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Jobs
{{Job
|Description=
|Description=
|From date=
|Posted=
|To date=
|Closes=
|Active=
|News=
|RSS_pubdate=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Jobs|Description=Wikitext|From_date=Date|To_date=Date|Active=Boolean}}
//-->
</noinclude><includeonly>{{#cargo_store:_table=Jobs|Description={{{Description|}}}|From_date={{{From date|}}}|To_date={{{To date|}}}|Active={{{Active|}}} }}{| class="wikitable"
{{#cargo_declare:_table=Jobs
! Description
|Description=Wikitext (size=2000)
| {{{Description|}}}
|Posted=Start date
|-
|Closes=End date
! From date
}}{{#cargo_attach:
| {{{From date|}}}
_table = News
|-
}}
! To date
</noinclude><includeonly>{{#ifeq: {{{News|}}} |Yes| {{#cargo_store:_table=News
| {{{To date|}}}
|Which_table=Jobs
|-
|RSS_pubdate={{{RSS pubdate|}}} }} }}{{#cargo_store:
! Active
_table=Jobs
| {{{Active|}}}
|Description={{{Description|}}}
|}
|Posted={{{Posted|}}}
|Closes={{{Closes|}}}  
}}<!--page starts--><div class="row">
<div class="medium-8 columns">
{{{Description|}}}
</div><!--first column-->
<div class="medium-4 columns" style="border-left:1px solid black; padding-left:10px">
{{database header|JOBS}}
<p>{{#ifexpr: {{#time: xNU }} > {{#time: xNU | {{{Closes|}}} }} | ''Please note that this advert has expired.'' }}</p>
<p>'''Posted:''' {{#time: j/n/y | {{{Posted|}}} }}</p>
<p>'''Closes:''' {{#time: j/n/y | {{{Closes|}}} }}</p>
<p>''All job vacancies can be viewed on the [[Jobs]] page.''</p>
<p>''Please quote reference MHLO in all applications :-)''</p>
</div>


[[Category:Jobs]]
[[Category:Jobs]]
</includeonly>
</includeonly>

Latest revision as of 08:30, 9 May 2021

This is the "Job" template.

It should be called in the following format:

{{Job
|Description=
|Posted=
|Closes=
|News=
|RSS_pubdate=
}}

Edit the page to see the template text.

This template defines the table "Jobs". View table.This template adds rows to the table "News", which is declared by the template News. View table.