Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "Template:Permaculture element"

From Appropedia
Jump to: navigation, search
(Created permaculture element template.)
 
(Attempt #2 at quickfix separator.)
 
(10 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
<code><nowiki>
 
<code><nowiki>
{{Permaculture element
+
{{Permaculture element
| name = Chicken
+
| name = Chicken
| needs = Grain, Shelter
+
| needs = Grain, Shelter
| products = Manure, Food, Protein
+
| products = Manure, Food, Protein
| functions = Pest control
+
| functions = Pest control
}}
+
}}  
 
</nowiki></code>
 
</nowiki></code>
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| name="userboxes" id="userboxes" style="margin-left: 1em; margin-bottom: 0.5em; width: 248px; border: {{{bordercolor|#99B3FF}}} solid 1px; background-color: {{{backgroundcolor|#FFFFFF}}}; color: {{{textcolor|#000000}}}; {{{extra-css|}}}" align="{{{2|{{{align|right}}}}}}" <!-- Taken from  http://www.appropedia.org/Template:Userboxtop -->
+
{| name="userboxes" id="userboxes" style="margin-left: 1em; margin-bottom: 0.5em; width: 248px; text-align:center; border: {{{bordercolor|#99B3FF}}} solid 1px; background-color: {{{backgroundcolor|#FFFFFF}}}; color: {{{textcolor|#000000}}}; {{{extra-css|}}}" align="{{{2|{{{align|right}}}}}}" <!-- Taken from  http://www.appropedia.org/Template:Userboxtop -->
 
|-
 
|-
!<big>{{{1|{{{toptext|[[Permaculture|Permaculture element]]: {{{name|}}} }}}}}}</big>
+
!<b>[[Permaculture|Permaculture element]]</b>
 +
<big>{{{1|{{{toptext|{{{name|}}} }}}}}}</big>
 
|-
 
|-
 
! Needs / Inputs
 
! Needs / Inputs
 
|-
 
|-
| {{#arraymap:{{{needs|}}}|,|x|[[Has need=x]] }}
+
| {{#arraymap:{{{needs|}}}|,|x|[[Has need::x]] }}
 
|-
 
|-
 
! Products / Outputs
 
! Products / Outputs
 
|-
 
|-
| {{#arraymap:{{{products|}}}|,|x|[[Has product=x]] }}
+
| {{#arraymap:{{{products|}}}|,|x|[[Creates product::x]] }}
 
|-
 
|-
 
! Functions
 
! Functions
 
|-
 
|-
| {{#arraymap:{{{functions|}}}|,|x|[[Performs function=x]] }}
+
| {{#arraymap:{{{functions|}}}|,|x|[[Performs function::x]] }}
 
|-
 
|-
! Used in
+
|
 
|-
 
|-
| {{#ask: [[Category:Permaculture system]][[Uses element::{{{name|}}}]] | format=list }}
+
! <small>Need of</small>
 +
|-
 +
| {{#ask: [[Category:Permaculture element]][[Has need::{{{name|}}}]] | format=list | default=No data available. }}
 +
|-
 +
! <small>Product of</small>
 +
|-
 +
| {{#ask: [[Category:Permaculture element]][[Creates product::{{{name|}}}]] | format=list | default=No data available. }}
 +
|-
 +
! <small>Used in these systems</small>
 +
|-
 +
| {{#ask: [[Category:Permaculture system]][[Uses element::{{{name|}}}]] | format=list | default=No data available. }}
 +
|-
 +
|<div style="text-align:right">{{#formlink:form=Permaculture element data|link text=Edit this data|target={{PAGENAME}} }}</div>
 
|}
 
|}
 +
[[Category:Permaculture element]]
 
</includeonly>
 
</includeonly>

Latest revision as of 08:55, 5 June 2013

A template to be added to permaculture element pages to show a permaculture element box, and store the values as semantic data. The template can either be used with the Permaculture element form, or by using the following template syntax.

At present, it provides no visual element on the page.

{{Permaculture element | name = Chicken | needs = Grain, Shelter | products = Manure, Food, Protein | functions = Pest control }}