Template:Subject: Difference between revisions
Jump to navigation
Jump to search
David Mason (talk | contribs) No edit summary |
No edit summary |
||
| (58 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | <noinclude> | ||
| | |||
| | This is the Subject template. | ||
| | <pre> | ||
{{Subject | |||
|Source= | |||
|Contributor= | |||
|Description= | |||
|Link= | |||
|Start date= | |||
|End date= | |||
|Location= | |||
|Supplier= | |||
|Canadian dollar cost 2010= | |||
|Procurement Process= | |||
|Responsible person= | |||
|Responsible unit= | |||
}} | }} | ||
</pre> | |||
[[Category:Site components]] | |||
</noinclude> | |||
<includeonly> | |||
<h1>{{#show: {{PAGENAME}}|?Description}}</h1> | |||
<div style="float: left; width: 70%"> | |||
<table class="wikitable"> | |||
{{ #if: {{{Link|}}} | | |||
<tr> | |||
<td>Link</td> | |||
<td>{{#show: {{PAGENAME}}|?Link}}</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Source|}}} | | |||
<tr> | |||
<td>Source</td> | |||
<td>{{#arraymap:{{{Source|}}}|,|x|[[x]]}}</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Contributor|}}} | | |||
<tr> | |||
<td>Contributor</td> | |||
<td>{{#arraymap:{{{Contributor|}}}|,|x|[[x]]}}</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Start date|}}} | | |||
<tr> | |||
<td>Dates</td> | |||
<td>{{{Start date}}}{{ #if: {{{End date|}}} | | |||
{{SEP}} {{{End date}}} | |||
|}} | |||
</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Location|}}} | | |||
<tr> | |||
<td>Location</td> | |||
<td>[[{{{Location}}}]]</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Supplier|}}} | | |||
<tr> | |||
<td>Supplier</td> | |||
<td>[[{{{Supplier}}}]]</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Description of Activity|}}} | | |||
<tr> | |||
<td>Description of Activity</td> | |||
<td>{{{Description of Activity}}}</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Canadian dollar cost 2010|}}} | | |||
<tr> | |||
<td>Canadian dollar cost 2010</td> | |||
<td>${{{Canadian dollar cost 2010}}}</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Procurement Process|}}} | | |||
<tr> | |||
<td>Procurement Process</td> | |||
<td>[[{{{Procurement Process}}}]]</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Responsible person|}}} | | |||
<tr> | |||
<td>Responsible person</td> | |||
<td>[[{{{Responsible person}}}]]</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Responsible unit|}}} | | |||
<tr> | |||
<td>Responsible unit</td> | |||
<td>[[{{{Responsible unit}}}]]</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
<div style="float: right; width: 26%""> | |||
<table class="wikitable"> | |||
{{ #if: {{{Project|}}} | | |||
<tr> | |||
<td>Project</td> | |||
<td>{{#show: {{PAGENAME}}|?Project}}</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Topic|}}} | | |||
<tr> | |||
<td>Topic</td> | |||
<td>{{#show: {{PAGENAME}}|?Topic}}</td> | |||
</tr> | |||
}} | |||
{{ #if: {{{Position|}}} | | |||
<tr> | |||
<td>Position</td> | |||
<td>[[{{{Position}}}]]</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
<br class="cleared" /> | |||
<headertabs /> | |||
<div class="hidden"> | |||
{{ #if: {{{Source|}}} | |||
| {{#arraymap:{{{Source|}}}|,|x|{{ #set: Source=x}}}} | |||
}} | |||
{{ #if: {{{Contributor|}}} | |||
| {{#arraymap:{{{Contributor|}}}|,|x|{{ #set: Contributor=x}}}} | |||
}} | |||
{{ #if: {{{Description of Activity|}}} | | |||
{{ #set: Description of Activity={{{Description of Activity}}} }} | |||
}} | |||
{{ #if: {{{Supplier|}}} | | |||
{{ #set: Supplier={{{Supplier}}} }} | |||
}} | |||
{{ #if: {{{Description of Contract|}}} | | |||
{{ #set: Description of Contract={{{Description of Contract}}} }} | |||
}} | |||
{{ #if: {{{Description|}}} | | |||
{{ #set: Description={{{Description}}} }} | |||
| {{#set: Description={{PAGENAME}} }} | |||
}} | |||
{{ #if: {{{Canadian dollar cost 2010|}}} | | |||
{{ #set: Canadian dollar cost 2010={{{Canadian dollar cost 2010}}} }} | |||
| {{ #set: Canadian dollar cost 2010={{ #ask: [[Topic::{{PAGENAME}}]]|?Canadian dollar cost 2010|format=sum}} }} | |||
}} | |||
{{ #if: {{{Procurement Process|}}} | | |||
{{ #set: Procurement Process={{{Procurement Process}}} }} | |||
}} | |||
{{ #if: {{{Project|}}} | | |||
{{#arraymap:{{{Project|}}}|,|x|{{ #set: Project=x}}}} | |||
}} | |||
{{ #if: {{{Topic|}}} | | |||
{{#arraymap:{{{Topic|}}}|,|x|{{ #set: Topic=x}}}} | |||
}} | |||
{{ #if: {{{Position|}}} | |||
|{{ #set: Position={{{Position}}} }} | |||
|{{ #if: {{{Canadian dollar cost 2010|}}} | |||
| {{ #set: Position=Cost item}} | |||
| {{ #set: Position=Component}} | |||
}} | |||
}} | |||
{{ #if: {{{Link|}}} | | |||
{{ #set: Link={{{Link}}} }} | |||
}} | |||
{{ #if: {{{Responsible person|}}} | | |||
{{ #set: Responsible person={{{Responsible person}}} }} | |||
}} | |||
{{ #if: {{{Responsible unit|}}} | | |||
{{ #set: Responsible unit={{{Responsible unit}}} }} | |||
}} | |||
{{ #if: {{{Start date|}}} | | |||
{{ #set: Start date={{{Start date}}} }} | |||
}} | |||
{{ #if: {{{End date|}}} | | |||
{{ #set: End date={{{End date}}} }} | |||
}} | |||
{{ #if: {{{Location|}}} | | |||
{{ #set: Location={{{Location}}} }} | |||
{{ #set: GPS location={{ #geocode: {{{Location}}} }} }} | |||
}} | |||
| {{#arraymap:{{{Topic|}}}|,|x|{{ #set: {{{Position}}}=x}}}} | |||
{{PAGELINK}} | |||
</div> | |||
<br /> | |||
<span class="noticebox"> | |||
{{#formlink:form=Subject|link text=Add subject »|query string=Subject[Project]={{{Project}}}&Subject[Topic]={{PAGENAME}} }} | |||
</span> | |||
<br class="cleared" /> | |||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Supports]] | |||
|?Description | |||
|?Source | |||
|format=template | |||
|template=Subject topics | |||
|link=none | |||
|intro=<h2>Supported by</h2> | |||
|outro=<br class="cleared" /> | |||
}} | |||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Refutes]] | |||
|?Description | |||
|?Source | |||
|format=template | |||
|template=Subject topics | |||
|link=none | |||
|intro=<h2>Refuted by</h2> | |||
|outro=<br class="cleared" /> | |||
}} | |||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Mixed]] | |||
|?Description | |||
|?Source | |||
|format=template | |||
|template=Subject topics | |||
|link=none | |||
|intro=<h2>Mixed response</h2> | |||
|outro=<br class="cleared" /> | |||
}} | |||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Debatable]] | |||
|?Description | |||
|?Source | |||
|format=template | |||
|template=Subject topics | |||
|link=none | |||
|intro=<h2>Debates</h2> | |||
|outro=<br class="cleared" /> | |||
}} | |||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Component]] | |||
|?Description | |||
|?Source | |||
|format=template | |||
|template=Subject topics | |||
|link=none | |||
|intro=<h2>Components</h2> | |||
|outro=<br class="cleared" /> | |||
}} | |||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Cost item]] | |||
|?Description | |||
|?Canadian dollar cost 2010 | |||
|?Procurement Process | |||
|?Supplier | |||
|sort=Canadian dollar cost 2010 | |||
|order=desc | |||
|intro=<h2>Cost items</h2> | |||
|outro=<br class="cleared" /> | |||
}} | |||
{{ #if: {{{Procurement Process|}}} | |||
| {{ #if: {{{Canadian dollar cost 2010|}}} | |||
| | |||
| {{Todo|Missing Canadian dollar cost 2010}} | |||
}} | |||
}} | |||
__NOTOC__ | |||
[[Category:Subject]] | |||
</includeonly> | |||
Latest revision as of 13:35, 2 February 2011
This is the Subject template.
{{Subject
|Source=
|Contributor=
|Description=
|Link=
|Start date=
|End date=
|Location=
|Supplier=
|Canadian dollar cost 2010=
|Procurement Process=
|Responsible person=
|Responsible unit=
}}