Difference between revisions of "Template:Discovery"

From Rollo
m
(revamp)
Line 1: Line 1:
{| class="roundy" style="float:right; text-align:center; width:33%; max-width:420px; background: #{{Flying color}}; border: 2px solid #{{Flying color dark}}; padding:2px;"
+
'''{{#replace:{{PAGENAME}}|(tech)|}}''' is a{{#ifeq:{{{phase|}}}|early|n}} {{{phase|mid}}} {{4X|{{#switch:{{{era|}}}
! colspan="2"| <big><big>{{#if:{{{name|}}}|{{{name}}}|{{#replace:{{PAGENAME}}|(tech)|<nowiki></nowiki>}}}}</big></big>
+
|1=agricultural
|-
+
|2=literate
| width="50%" class="roundy" style="background:#{{Flying color light}};" | '''Era'''
+
|3=post-classical
{| class="roundy" width="100%" style="background:#FFF;"
+
|4=industrial
| {{4X|{{{era|neolithic}}}}}
+
|5=information
|}
+
|6=near-future
| class="roundy" style="background:#{{Flying color light}};" | '''Knowledge'''
+
|7=far-future
{| class="roundy" width="100%" style="background:#FFF;"
+
|8=transcendence
| {{#ifeq:{{{know|}}}|0|0|{{#expr:({{{know|1}}}+2)^3}}}}
+
|={{{era|}}}}}}} {{4X|discovery}} in {{4X|4X}}. It can be {{4X|inspired}} if you {{4X|inspire}}.  While in the appropriate {{4X|era}}, it costs
|}
+
{{#switch: {{{science|}}}
|-
+
|F={{4X|formal science}}
| class="roundy" style="background:#{{Flying color light}};" | '''Requirements'''
+
|N={{4X|natural science}}
{| class="roundy" width="100%" style="background:#FFF;"
+
|S={{4X|social science}}
| {{{req|None}}}
+
|FN={{4X|formal}} and {{4X|natural science}}
|}
+
|FS={{4X|formal}} and {{4X|social science}}
| class="roundy" style="background:#{{Flying color light}};" | '''Prefaced Technology'''
+
|NS={{4X|natural}} and {{4X|social science}}
{| class="roundy" width="100%" style="background:#FFF;"
+
|FNS={{4X|forma}}, {{4X|natural}}, and {{4X|social}}
| {{{preface|None}}}
+
|=unknown science}} to research. {{{post|}}}
|}  
+
 
|-
+
{{{bonus|}}}
| colspan="2" class="roundy" style="background:#{{Flying color light}};" | '''Inspiration Trigger'''
+
 
{| class="roundy" width="100%" style="background:#FFF;"
+
{{Unlock}}<includeonly>[[Category:Technologies]] [[Category:{{{era|}}} era technologies]]</includeonly><noinclude>
| {{{inspire|None}}}
 
|}
 
|-
 
{{#if:{{{bonus|}}}|{{!}} colspan="2" class="roundy" style="background:#{{Flying color light}};{{!}} '''Bonus'''
 
{{{!}} class="roundy" width="100%" style="background:#FFF;"
 
{{!}} style="text-align:left;" {{!}}
 
{{{bonus|None}}}
 
{{!}}}
 
}}
 
{{#if:{{{notes|}}}|{{!}} colspan="2" class="roundy" style="background:#{{Flying color light}};" {{!}} '''Notes'''
 
{{{!}} class="roundy" width="100%" style="background:#FFF;"
 
{{!}} {{{notes|None}}}
 
{{!}}}
 
}}
 
|}
 
'''{{#replace:{{PAGENAME}}|(tech)|}}''' is a{{#ifeq:{{{era|}}}|ancient|n}}{{#ifeq:{{{era|}}}|industrial|n}} {{4X|{{{era|neolithic}}}}} {{4X|{{{1|tech}}}}} in {{4X|4X}}.
 
<includeonly>[[Category:Technologies]] [[Category:{{{era|}}} era technologies]]</includeonly><noinclude>
 
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
{{Tech Infobox
+
{{Discovery
|name= (leave blank to use page title)
+
|post=Text here goes after the automated blurb.  Can be omitted.
 +
|bonus=Blurb describing any bonus that doesn't fit into the standard (Unlock).  Can be omitted.
 +
|inspire=What inspires the discovery.  "It can be {{4X|inspired}} if you (x)".
 +
|era=1, 2, 3, 4, 5, 6, 7, 8
 +
|phase=early, mid, late
 +
|science=F, N, S, FN, FS, NS, FNS
 +
}}</pre>
  
 +
<pre>
 +
{{Discovery
 +
|bonus=
 +
|inspire=
 
|era=
 
|era=
|know=
+
|phase=early, mid, late
|inspire=
+
|science=F, N, S, FN, FS, NS, FNS
|req=
 
|preface=
 
 
 
|bonus=
 
|resource=
 
|development=
 
|act=
 
|worker=
 
 
 
|armor=
 
|chassis=
 
|payload=
 
|specialty=
 
|tool=
 
|weapon=
 
 
 
|stateproject=
 
|worldproject=
 
 
 
|notes=
 
 
}}</pre>
 
}}</pre>
  
[[Category:Infobox templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Revision as of 23:53, 24 March 2021

Discovery is a mid Template:4X Template:4X in Template:4X. It can be Template:4X if you Template:4X. While in the appropriate Template:4X, it costs unknown science to research.



Unlocked by Discovery

{{#dpl: debug=1
category=Unlocked by Discovery mode=userformat format=,¦- \n ¦ style="width:170px; "¦ [[%PAGE%¦²{#replace:%PAGE%¦4X:¦}²]],\n, tablerow=¦¦ %%\n

}}|}

Usage

{{Discovery
|post=Text here goes after the automated blurb.  Can be omitted.
|bonus=Blurb describing any bonus that doesn't fit into the standard (Unlock).  Can be omitted.
|inspire=What inspires the discovery.  "It can be {{4X|inspired}} if you (x)".
|era=1, 2, 3, 4, 5, 6, 7, 8
|phase=early, mid, late
|science=F, N, S, FN, FS, NS, FNS
}}
{{Discovery
|bonus=
|inspire=
|era=
|phase=early, mid, late
|science=F, N, S, FN, FS, NS, FNS
}}