A Wiki in the Desert
Log in

Difference between revisions of "Template:SeedFlax/doc"

From A Wiki in the Desert
(Created page with "== Usage: == For easier insertion of a table row in the flax crossbreeds table. After the <code><nowiki>{{SeedFlaxHeader|</nowiki></code> at the start of the table, you can...")
 
 
Line 3: Line 3:
 
For easier insertion of a table row in the flax crossbreeds table.
 
For easier insertion of a table row in the flax crossbreeds table.
  
After the <code><nowiki>{{SeedFlaxHeader|</nowiki></code> at the start of the table, you can put <code><nowiki>{{SeedFlax|Name|Flax|Rotten|Seeds|Weed|Water|Pollution}}</nowiki></code> on new lines before the final <code><nowiki>}}</nowiki></code> and it will automatically insert the row in the table with the calculations for beds per 1000 flax etc completed. Pollution resistance note is optional.
+
After the <code><nowiki>{{SeedFlaxHeader|</nowiki></code> at the start of the table, you can put <code><nowiki>{{SeedFlax|Name|Flax|Rotten|Seeds|Weed|Water}}</nowiki></code> on new lines before the final <code><nowiki>}}</nowiki></code> and it will automatically insert the row in the table with the calculations for beds per 1000 flax etc completed.
  
 
For example:
 
For example:
Line 13: Line 13:
 
{|{table} border="1" cellspacing="0" cellpadding="5" class="wikitable"
 
{|{table} border="1" cellspacing="0" cellpadding="5" class="wikitable"
 
|-align="center"
 
|-align="center"
| Old Egypt || 1 || 0 || 1 || 2 || 0 || 1000 || 200 || 5400 || 1000 || 200 || 5400 || High
+
| Old Egypt || 1 || 0 || 1 || 2 || 0 || 1000 || 200 || 5400 || 1000 || 200 || 5400
 
|-align="center"
 
|-align="center"
| Nile Green || 2 || 0 || 1 || 1 || 1 || 500 || 100 || 2700 || 500 || 100 || 2700 || Low
+
| Nile Green || 2 || 0 || 1 || 1 || 1 || 500 || 100 || 2700 || 500 || 100 || 2700
 
|-
 
|-
 
|}
 
|}

Latest revision as of 15:31, 12 August 2023

Usage:

For easier insertion of a table row in the flax crossbreeds table.

After the {{SeedFlaxHeader| at the start of the table, you can put {{SeedFlax|Name|Flax|Rotten|Seeds|Weed|Water}} on new lines before the final }} and it will automatically insert the row in the table with the calculations for beds per 1000 flax etc completed.

For example:

{{SeedFlaxHeader|
{{SeedFlax|Old Egypt|1|0|1|2|0|High}}
{{SeedFlax|Nile Green|2|0|1|1|1|Low}}
}}

Will insert the following rows into that spot in the table (header not shown below for clarity):

Old Egypt 1 0 1 2 0 1000 200 5400 1000 200 5400
Nile Green 2 0 1 1 1 500 100 2700 500 100 2700

Which will of course adapt to the rest of the table formatting specified for that table in the SeedFlaxHeader template.

To link directly to a flax seed in the table, replace spaces in the flax name with underscore _ and the # symbol with .23 as such:

[[New_Crosses#Flax_Ariella_.234]] to link to the seed with the name Ariella #4