The Wiki for Tale 4 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:BTL"

From A Tale in the Desert
Jump to navigationJump to search
 
Line 31: Line 31:
 
|4={{BORT|{{{1}}} 5}}
 
|4={{BORT|{{{1}}} 5}}
 
|}}
 
|}}
|Advanced Metallurgy={{#switch: {{{2}}}|0={{BORT|{{{1}}} }}
+
|Advanced Metallurgy={{#switch: {{{2}}}|0={{BORT|{{{1}}}}}
 
{{BORT|{{{1}}} 2}}
 
{{BORT|{{{1}}} 2}}
 
{{BORT|{{{1}}} 3}}
 
{{BORT|{{{1}}} 3}}
Line 47: Line 47:
 
|4={{BORT|{{{1}}} 5}}
 
|4={{BORT|{{{1}}} 5}}
 
|}}
 
|}}
|Chariot Repair={{#switch: {{{2}}}|0={{BORT|{{{1}}} }}
+
|Chariot Repair={{#switch: {{{2}}}|0={{BORT|{{{1}}}}}
 
{{BORT|{{{1}}} 2}}
 
{{BORT|{{{1}}} 2}}
 
|1={{BORT|{{{1}}} 2}}
 
|1={{BORT|{{{1}}} 2}}
 
|}}
 
|}}
 
|Ferry Construction={{#ifexpr: {{{2}}}<2 |{{BORT|{{{1}}} 2}}|}}
 
|Ferry Construction={{#ifexpr: {{{2}}}<2 |{{BORT|{{{1}}} 2}}|}}
|Obelisk Construction={{#switch: {{{2}}}|0={{BORT|{{{1}}} }}
+
|Obelisk Construction={{#switch: {{{2}}}|0={{BORT|{{{1}}}}}
 
{{BORT|{{{1}}} 2}}
 
{{BORT|{{{1}}} 2}}
 
{{BORT|{{{1}}} 3}}
 
{{BORT|{{{1}}} 3}}
Line 82: Line 82:
 
|}}
 
|}}
 
|Pyramid Construction={{#ifexpr: {{{2}}}<7 |{{BORT|{{{1}}} - {{{3}}} }}|}}
 
|Pyramid Construction={{#ifexpr: {{{2}}}<7 |{{BORT|{{{1}}} - {{{3}}} }}|}}
|Storage Improvements={{#switch: {{{2}}}|0={{BORT|{{{1}}} }}
+
|Storage Improvements={{#switch: {{{2}}}|0={{BORT|{{{1}}}}}
 
{{BORT|{{{1}}} 2}}
 
{{BORT|{{{1}}} 2}}
 
{{BORT|{{{1}}} 3}}
 
{{BORT|{{{1}}} 3}}
Line 89: Line 89:
 
|2={{BORT|{{{1}}} 3}}
 
|2={{BORT|{{{1}}} 3}}
 
|}}
 
|}}
|{{#ifexpr: {{{2}}}<1 |{{BORT|{{{1}}} }}| }}
+
|{{#ifexpr: {{{2}}}<1 |{{BORT|{{{1}}}}}| }}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 10:53, 4 March 2010

Tech Level template

Usage

This template will be handed a tech & a variable (level).

It's going to help determine what to do with techs that have more than 1 level to them.
IE: Obelisk Construction, Pyramid Construction, etc

Currently, the template/page that calls this template, does not weed out rank 0 techs (techs that you listed but haven't actually learned). I may change that though so that it doesn't bypass this level counting process here. Right now it's skipping this page if any number gets entered for most techs.

If you're looking into this template, you may notice that it's receiving 2 variables most of the time & 3 in the case of Pyramid Construction. At some point I might expand the calling template (and possibly this one) to handle cases where someone has opted to learn some of Pyramid Construction, but not all (though I can't imagine why you'd skip some of them when it's just a visit to a Uni to learn so if that's the case for you, it's up to you to remember which uni you didn't visit).

For now though, it shows all pyramid construction if you haven't learned all 7.