Difference between revisions of "Template:Technology"
From A Wiki in the Desert
(4 intermediate revisions by the same user not shown) | |||
Line 29: | Line 29: | ||
<tr><th class="ibtype">Research</th></tr> | <tr><th class="ibtype">Research</th></tr> | ||
− | + | {{#set: Is progressing={{lc:{{{inprogress|no}}}}}}}{{#set: Has completed={{lc:{{{complete|no}}}}}}} | |
− | {{# | + | {{#invoke:Infobox|row|Status|{{ #ifeq: {{lc:{{{complete|}}}}}|yes|Completed |
− | {{#invoke:Infobox|row| | + | |{{ #ifeq: {{lc:{{{inprogress|}}}}}|yes| In Progress | Not Started }} |
+ | }}}} | ||
<tr><th class="ibtype">Time</th></tr> | <tr><th class="ibtype">Time</th></tr> | ||
− | {{#if: {{{started|}}|{{#if: {{{ended|}}}|{{#invoke:Infobox|row|Total | + | {{#invoke:Infobox|row|Expected|{{#if: {{{time|}}}|{{#time: H:i|{{{time}}}}}|Unknown}}}} |
+ | {{#if: {{{started|}}|{{#if: {{{ended|}}}|{{#invoke:Infobox|row|Total | ||
|{{#time: H:i:s|@{{#expr:{{#time: U | {{#time: c | {{{ended}}}}}}} - {{#time: U | {{#time: c | {{{started}}}}}}}}}}} | |{{#time: H:i:s|@{{#expr:{{#time: U | {{#time: c | {{{ended}}}}}}} - {{#time: U | {{#time: c | {{{started}}}}}}}}}}} | ||
}}}}}} | }}}}}} |
Latest revision as of 02:01, 6 June 2021
Template documentation (for the above template, sometimes hidden or invisible)
{{Technology}} is for use in any article about an in-game "technology". All parameters are optional and can be left blank, though it is preferred to include as many as possible; if undefined, these optional parameters will not appear as part of the template. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size.
Template
{{Technology | name = | discipline = | image = | icon = | prereq-research = | prereq-materials = | required-by = | hyksos = | kush = | meshwesh = }}
Usage
- name
- The name of the technology.
- discipline (optional)
- The discipline associated with the technology (e.g. Architecture, Thought, etc.). For technologies not learned at a school such as Planning Application, use "Special".
- image (optional)
- File name of an image for the technology. Should generally be the official in-game technology "icon". The recommended size is 256 pixels wide by 160 pixels high.
- icon (optional)
- The icon used to represent the skill in-game.
- prereq-research (optional)
- The technologies that must be researched before this technology becomes available at universities.
- prereq-materials (optional)
- The technologies that must be researched before the materials required by this technology can be acquired or crafted.
- required-by (optional)
- The technologies that list this technology as a prerequisite.
- hyksos (optional)
- If Hyksos has completed research of this technology, should be set to "Yes", otherwise "No".
- kush (optional)
- If Kush has completed research of this technology, should be set to "Yes", otherwise "No".
- meshwesh (optional)
- If Meshwesh has completed research of this technology, should be set to "Yes", otherwise "No".
Example
Masonry | |||
---|---|---|---|
(Technology - Architecture) | |||
Related Technologies | |||
Research Prerequisites | |||
Required By | |||
Factions Researched | |||
|
{{Technology | name = Masonry | discipline = Architecture | image = Masonry.png | icon = | prereq-research = * [[Stonework 2]] | prereq-materials = | required-by = * [[Crystal Acoustics]] * [[Gearbox Design]] | hyksos = Yes | kush = Yes | meshwesh = Yes }}
Visit Template:Technology/doc to edit this text! (How does this work?)