Template:Subject: Difference between revisions
Jump to navigation
Jump to search
David Mason (talk | contribs) No edit summary |
No edit summary |
||
(21 intermediate revisions by 4 users not shown) | |||
Line 5: | Line 5: | ||
{{Subject | {{Subject | ||
|Source= | |Source= | ||
|Contributor= | |||
|Description= | |Description= | ||
|Link= | |Link= | ||
Line 17: | Line 18: | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Site components]] | [[Category:Site components]] | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<h1>{{#show: {{PAGENAME}}|?Description}}</h1> | |||
<div style="float: left; width: 70%"> | <div style="float: left; width: 70%"> | ||
<table class="wikitable"> | <table class="wikitable"> | ||
Line 32: | Line 34: | ||
<tr> | <tr> | ||
<td>Source</td> | <td>Source</td> | ||
<td>{{# | <td>{{#arraymap:{{{Source|}}}|,|x|[[x]]}}</td> | ||
</tr> | |||
}} | |||
{{ #if: {{{Contributor|}}} | | |||
<tr> | |||
<td>Contributor</td> | |||
<td>{{#arraymap:{{{Contributor|}}}|,|x|[[x]]}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
Line 39: | Line 47: | ||
<td>Dates</td> | <td>Dates</td> | ||
<td>{{{Start date}}}{{ #if: {{{End date|}}} | | <td>{{{Start date}}}{{ #if: {{{End date|}}} | | ||
{{SEP}} {{{End date}}} | |||
|}} | |}} | ||
</td> | </td> | ||
Line 115: | Line 123: | ||
<div class="hidden"> | <div class="hidden"> | ||
{{ #if: {{{Source|}}} | {{ #if: {{{Source|}}} | ||
| {{#arraymap:{{{Source|}}}|,|x|{{ #set: Source={{{ | | {{#arraymap:{{{Source|}}}|,|x|{{ #set: Source=x}}}} | ||
}} | |||
{{ #if: {{{Contributor|}}} | |||
| {{#arraymap:{{{Contributor|}}}|,|x|{{ #set: Contributor=x}}}} | |||
}} | }} | ||
{{ #if: {{{Description of Activity|}}} | | {{ #if: {{{Description of Activity|}}} | | ||
Line 132: | Line 143: | ||
{{ #if: {{{Canadian dollar cost 2010|}}} | | {{ #if: {{{Canadian dollar cost 2010|}}} | | ||
{{ #set: Canadian dollar cost 2010={{{Canadian dollar cost 2010}}} }} | {{ #set: Canadian dollar cost 2010={{{Canadian dollar cost 2010}}} }} | ||
| {{ #set: Canadian dollar cost 2010={{ #ask: [[Topic::{{PAGENAME}} | | {{ #set: Canadian dollar cost 2010={{ #ask: [[Topic::{{PAGENAME}}]]|?Canadian dollar cost 2010|format=sum}} }} | ||
}} | }} | ||
{{ #if: {{{Procurement Process|}}} | | {{ #if: {{{Procurement Process|}}} | | ||
Line 143: | Line 154: | ||
{{#arraymap:{{{Topic|}}}|,|x|{{ #set: Topic=x}}}} | {{#arraymap:{{{Topic|}}}|,|x|{{ #set: Topic=x}}}} | ||
}} | }} | ||
{{ #if: {{{Position|}}} | | {{ #if: {{{Position|}}} | ||
{{ #set: Position={{{Position}}} }} | |{{ #set: Position={{{Position}}} }} | ||
| {{ #set: Position=Component}} | |{{ #if: {{{Canadian dollar cost 2010|}}} | ||
| {{ #set: Position=Cost item}} | |||
| {{ #set: Position=Component}} | |||
}} | |||
}} | }} | ||
{{ #if: {{{Link|}}} | | {{ #if: {{{Link|}}} | | ||
Line 166: | Line 180: | ||
{{ #set: GPS location={{ #geocode: {{{Location}}} }} }} | {{ #set: GPS location={{ #geocode: {{{Location}}} }} }} | ||
}} | }} | ||
| {{#arraymap:{{{Topic|}}}|,|x|{{ #set: {{{Position}}}=x}}}} | |||
{{PAGELINK}} | {{PAGELINK}} | ||
</div> | </div> | ||
Line 171: | Line 186: | ||
<br /> | <br /> | ||
<span class="noticebox"> | <span class="noticebox"> | ||
{{#formlink:form=Subject|link text=Add subject »|query string=Subject[Project]={{{Project}}}&Subject[Topic]={{PAGENAME}} | {{#formlink:form=Subject|link text=Add subject »|query string=Subject[Project]={{{Project}}}&Subject[Topic]={{PAGENAME}} }} | ||
</span> | </span> | ||
<br class="cleared" /> | <br class="cleared" /> | ||
Line 177: | Line 192: | ||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Supports]] | {{ #ask: [[Topic::{{PAGENAME}}]][[Position::Supports]] | ||
|?Description | |?Description | ||
|?Source | |||
|format=template | |format=template | ||
|template=Subject topics | |template=Subject topics | ||
Line 182: | Line 198: | ||
|intro=<h2>Supported by</h2> | |intro=<h2>Supported by</h2> | ||
|outro=<br class="cleared" /> | |outro=<br class="cleared" /> | ||
}}{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Refutes]] | }} | ||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Refutes]] | |||
|?Description | |?Description | ||
|?Source | |||
|format=template | |format=template | ||
|template=Subject topics | |template=Subject topics | ||
Line 189: | Line 207: | ||
|intro=<h2>Refuted by</h2> | |intro=<h2>Refuted by</h2> | ||
|outro=<br class="cleared" /> | |outro=<br class="cleared" /> | ||
}}{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Mixed]] | }} | ||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Mixed]] | |||
|?Description | |?Description | ||
|?Source | |?Source | ||
|intro=<h2>Mixed</h2> | |format=template | ||
|template=Subject topics | |||
|link=none | |||
|intro=<h2>Mixed response</h2> | |||
|outro=<br class="cleared" /> | |outro=<br class="cleared" /> | ||
}}{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Debatable]] | }} | ||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Debatable]] | |||
|?Description | |?Description | ||
|?Source | |||
|format=template | |format=template | ||
|template=Subject topics | |template=Subject topics | ||
Line 202: | Line 226: | ||
|outro=<br class="cleared" /> | |outro=<br class="cleared" /> | ||
}} | }} | ||
{{ #ask: [[Topic::{{PAGENAME}}]][[Position::Component]] | |||
{{ #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 | |?Description | ||
|?Canadian dollar cost 2010 | |?Canadian dollar cost 2010 | ||
Line 209: | Line 241: | ||
|?Supplier | |?Supplier | ||
|sort=Canadian dollar cost 2010 | |sort=Canadian dollar cost 2010 | ||
|intro=<h2>Cost | |order=desc | ||
|intro=<h2>Cost items</h2> | |||
|outro=<br class="cleared" /> | |outro=<br class="cleared" /> | ||
}} | |||
{{ #if: {{{Procurement Process|}}} | |||
| {{ #if: {{{Canadian dollar cost 2010|}}} | |||
| | |||
| {{Todo|Missing Canadian dollar cost 2010}} | |||
}} | |||
}} | }} | ||
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= }}