The Wiki for Tale 7 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "Template:SeedFlax"

From ATITD7
Jump to navigationJump to search
Line 1: Line 1:
<!-- {{SeedName|Ariella|4}} -->
+
<includeonly>|-
 +
! {{{1}}} || {{{2}}} || {{{3}}} || {{{4}}} || {{{5}}} || {{{6}}} || {{#expr:(1000/({{{2}}}+{{{3}}}))round2}} || {{#expr:((1000/({{{2}}}+{{{3}}}))/({{{4}}}*5))round2}} || {{#expr:(((1000/({{{2}}}+{{{3}}}))*({{{5}}}+{{{6}}}+2))+(((1000/({{{2}}}+{{{3}}}))/({{{4}}}*5))*7))round2}} || {{#expr:(1000/{{{2}}})round2}} || {{#expr:((1000/{{{2}}})/({{{4}}}*5))round2}} || {{#expr:(((1000/{{{2}}})*({{{5}}}+{{{6}}}+2))+(((1000/{{{2}}})/({{{4}}}*5))*7))round2}}</includeonly><noinclude>
 +
== Usage: ==
  
 +
For easier insertion of a table row in the flax crossbreeds table.
  
<noinclude>{| style = 'border-spacing: 0; border: 1px solid black; border-top: none; width: 24em; margin: 0 auto' |
+
After the SeedFlaxHeader 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 <nowiki>}}</nowiki> and it will automatically insert the row in the table with the calculations for beds per 1000 flax etc completed.
</noinclude>|-
+
 
| rowspan = '2' style = 'border-top: 1px solid black; padding: 0.2em 0.5em; line-height: 1.2; width: 100%' |[[{{{1|None}}}]]
+
For example:<br>
| style = 'border-top: 1px solid black' |
+
<code><nowiki>! {{SeedFlax|Old Egypt|1|0|1|2|0}}</nowiki></code><br>
| style = 'border-top: 1px solid black; padding: 0.2em 0.25em; line-height: 1.2; text-align: right' |<div style='min-width: 3em'>{{{2|7777}}}</div>
+
Will insert the following row into that spot in the table:<br>
| style = 'border-top: 1px solid black; padding: 0.2em 0.25em; line-height: 1.2; text-align: center' |/
+
{|{table} border="1" cellspacing="0" cellpadding="5" class="wikitable"
| style = 'border-top: 1px solid black; padding: 0.2em 0.25em; line-height: 1.2; text-align: right' |<div style='min-width: 3em'>{{{3|10000}}}</div>
 
| style = 'border-top: 1px solid black; padding: 0.2em 0.25em; line-height: 1.2; text-align: right' |<div style='min-width: 3em'>({{#expr: {{{3|10000}}} - {{{2|7777}}} }})</div>
 
 
|-
 
|-
| style = 'font-size: 70%; line-height: 1.2; text-align: right' | <strong>{{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}%</strong>
+
! Old Egypt || 1 || 0 || 1 || 2 || 0 || 1000 || 200 || 5400 || 1000 || 200 || 5400
| colspan = '4' style = 'padding: 0.2em 0.25em' |<div style='width: 98%; min-width: 12em; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}%; background: {{#ifeq: {{{2|7777}}} | {{{3|10000}}} | #99ff55 | #fb9 }}'></div></div><noinclude>
+
|-
|}</noinclude><NOINCLUDE>[[Category: Template]] {{DEFAULTSORT:{{PAGENAME}}}}</noinclude>
+
|}
 +
Which will of course adapt to the rest of the table formatting specified for that table on that page.
 +
 
 +
[[Category: Template]] {{DEFAULTSORT:PAGENAME}}
 +
</noinclude>

Revision as of 03:23, 12 December 2015

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:
! {{SeedFlax|Old Egypt|1|0|1|2|0}}
Will insert the following row into that spot in the table:

Old Egypt 1 0 1 2 0 1000 200 5400 1000 200 5400

Which will of course adapt to the rest of the table formatting specified for that table on that page.