A Wiki in the Desert
Log in

Difference between revisions of "Template:Technology"

From A Wiki in the Desert
(Created a new Technology template)
 
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
| ibclass = {{#switch: {{{discipline|}}} | Architecture = ib-architecture | Art and Music = ib-art-and-music | Harmony = ib-harmony | Leadership = ib-leadership | The Human Body = ib-the-human-body | Thought = ib-thought | Worship = ib-worship }}
+
| ibclass = {{#switch: {{{discipline|}}} | Architecture = ib-architecture | Art and Music = ib-art-and-music | Harmony = ib-harmony | Leadership = ib-leadership | Natural Philosophy = ib-natural-philosophy | The Human Body = ib-the-human-body | Thought = ib-thought | Worship = ib-worship }}
 
| ibname  = {{{name|{{PAGENAME}}}}}
 
| ibname  = {{{name|{{PAGENAME}}}}}
| ibtype  = {{#if: {{{discipline|}}} | {{#ifeq: {{{discipline|}}} | Special | Special Technology | Discipline of {{{discipline}}} Technology }} }}
+
| ibtype  = {{#if: {{{discipline|}}} | {{#ifeq: {{{discipline|}}} | Special | Technology - Special | Technology - {{{discipline}}} }}{{#set: Is of discipline={{{discipline|}}}}} }}
| image  = {{#if: {{{image|}}} | {{{image|}}} }}
+
| image  = {{#if: {{{image|}}} | {{{image|}}}{{#set: Has image=File:{{{image|}}}}} }}
 +
| icon    = {{#if: {{{icon|}}} | {{{icon|}}} }}
  
 
| content =  
 
| content =  
{{ #if:{{{level|}}} |
 
{{#invoke:Infobox|row|Level Required|{{{level|}}} }}
 
}}
 
 
{{ #if:{{{lessons|}}} |
 
{{#invoke:Infobox|row|Lessons to Teach|{{{lessons|}}} }}
 
}}
 
  
 
{{ #ifeq: {{#expr: {{#if:{{{prereq-research|}}}|1|0}} or {{#if:{{{prereq-materials|}}}|1|0}} or {{#if:{{{required-by|}}}|1|0}} }} | 1 | <tr><th class="ibtype">Related Technologies</th></tr> }}
 
{{ #ifeq: {{#expr: {{#if:{{{prereq-research|}}}|1|0}} or {{#if:{{{prereq-materials|}}}|1|0}} or {{#if:{{{required-by|}}}|1|0}} }} | 1 | <tr><th class="ibtype">Related Technologies</th></tr> }}
Line 39: Line 33:
 
     <table class="ib-factions">
 
     <table class="ib-factions">
 
       <tr>
 
       <tr>
         <td>{{ #ifeq: {{lc:{{{hyksos|}}}}}  | yes | [[File:Hyksos Logo large.png|60px|link=Research/Hyksos]]    | [[File:Hyksos Logo large - Greyscale - 30.png|60px|link=Research/Hyksos]] }}</td>
+
         <td>{{ #ifeq: {{lc:{{{hyksos|}}}}}  | yes | [[File:Hyksos Logo large.png|60px|link=Hyksos:Research]]    | [[File:Hyksos Logo large - Greyscale.png|60px|link=Hyksos:Research]] }}{{#set: Has hyksos researched={{lc:{{{hyksos|no}}}}}}}</td>
         <td>{{ #ifeq: {{lc:{{{kush|}}}}}    | yes | [[File:Kush Logo large.png|60px|link=Research/Kush]]        | [[File:Kush Logo large - Greyscale - 30.png|60px|link=Research/Kush]] }}</td>
+
         <td>{{ #ifeq: {{lc:{{{kush|}}}}}    | yes | [[File:Kush Logo large.png|60px|link=Kush:Research]]        | [[File:Kush Logo large - Greyscale.png|60px|link=Kush:Research]] }}{{#set: Has kush researched={{lc:{{{kush |no}}}}}}}</td>
         <td>{{ #ifeq: {{lc:{{{meshwesh|}}}}} | yes | [[File:Meshwesh Logo large.png|60px|link=Research/Meshwesh]] | [[File:Meshwesh Logo large - Greyscale - 30.png|60px|link=Research/Meshwesh]] }}</td>
+
         <td>{{ #ifeq: {{lc:{{{meshwesh|}}}}} | yes | [[File:Meshwesh Logo large.png|60px|link=Meshwesh:Research]] | [[File:Meshwesh Logo large - Greyscale.png|60px|link=Meshwesh:Research]] }}{{#set: Has meshwesh researched={{lc:{{{meshwesh |no}}}}}}}</td>
 
       </tr>
 
       </tr>
 
     </table>
 
     </table>
Line 51: Line 45:
 
{{#if: {{{discipline|}}} | {{#ifeq: {{{discipline|}}} | Special | | [[Category:{{{discipline}}}]] }} }}
 
{{#if: {{{discipline|}}} | {{#ifeq: {{{discipline|}}} | Special | | [[Category:{{{discipline}}}]] }} }}
 
{{#if: {{{discipline|}}} | {{#ifeq: {{{discipline|}}} | Special | [[Category:Technologies/{{{discipline}}}]] | [[Category:Technologies/{{{discipline}}}]] }} }}
 
{{#if: {{{discipline|}}} | {{#ifeq: {{{discipline|}}} | Special | [[Category:Technologies/{{{discipline}}}]] | [[Category:Technologies/{{{discipline}}}]] }} }}
[[Category:Technologies/Level {{{level}}}]]</includeonly><noinclude>
+
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Infoboxes|Technology]]
 
[[Category:Infoboxes|Technology]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:07, 19 May 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
Masonry
(Technology - Architecture)
Related Technologies
Research Prerequisites
Required By
Factions Researched
Hyksos Logo large.png Kush Logo large.png Meshwesh Logo large.png
{{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?)