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:TL"

From A Tale in the Desert
Jump to navigationJump to search
(This template sorts by the rank you hold in a tech. From that it passes on to Template:ORT)
 
m (adding storage improvements)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
Tech Level template
 
=Usage=
 
=Usage=
 
This template will be handed a tech & a variable (level).
 
This template will be handed a tech & a variable (level).
Line 8: Line 9:
 
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.
 
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).
+
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.
 
For now though, it shows all pyramid construction if you haven't learned all 7.
Line 50: Line 51:
 
|1={{ORT|{{{1}}} 2}}
 
|1={{ORT|{{{1}}} 2}}
 
|}}
 
|}}
|Ferry Construction={{#ifexpr: {{{2}}}>2 |{{ORT|{{{1}}} }}|}}
+
|Ferry Construction={{#ifexpr: {{{2}}}<2 |{{ORT|{{{1}}} 2}}|}}
|Pyramid Construction={{#ifexpr: {{{2}}}<7 |{{ORT|{{{1}}} - {{{3}}} }}|}}
 
 
|Obelisk Construction={{#switch: {{{2}}}|0={{ORT|{{{1}}} }}
 
|Obelisk Construction={{#switch: {{{2}}}|0={{ORT|{{{1}}} }}
 
{{ORT|{{{1}}} 2}}
 
{{ORT|{{{1}}} 2}}
Line 80: Line 80:
 
{{ORT|{{{1}}} 7}}
 
{{ORT|{{{1}}} 7}}
 
|6={{ORT|{{{1}}} 7}}
 
|6={{ORT|{{{1}}} 7}}
 +
|}}
 +
|Pyramid Construction={{#ifexpr: {{{2}}}<7 |{{ORT|{{{1}}} - {{{3}}} }}|}}
 +
|Storage Improvements={{#switch: {{{2}}}|0={{ORT|{{{1}}} }}
 +
{{ORT|{{{1}}} 2}}
 +
{{ORT|{{{1}}} 3}}
 +
|1={{ORT|{{{1}}} 2}}
 +
{{ORT|{{{1}}} 3}}
 +
|2={{ORT|{{{1}}} 3}}
 
|}}
 
|}}
 
|{{#ifexpr: {{{2}}}<1 |{{ORT|{{{1}}} }}| }}
 
|{{#ifexpr: {{{2}}}<1 |{{ORT|{{{1}}} }}| }}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 01:30, 12 April 2009

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.