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.)
 
m (Fixed error in property assignments, forgot to switch = to :: when changing from {{#set:-}} to - syntax)
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>
  
Line 20: Line 20:
 
! 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|[[Has product::x]] }}
 
|-
 
|-
 
! Functions
 
! Functions
 
|-
 
|-
| {{#arraymap:{{{functions|}}}|,|x|[[Performs function=x]] }}
+
| {{#arraymap:{{{functions|}}}|,|x|[[Performs function::x]] }}
 
|-
 
|-
 
! Used in
 
! Used in

Revision as of 12:54, 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 }}