Difference between revisions of "Template:Discovery"

From Rollo
 
(18 intermediate revisions by the same user not shown)
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 {{4X|discovery}} that can be revealed {{#switch:{{{phase|}}}
! colspan="2"| <big><big>{{#if:{{{name|}}}|{{{name}}}|{{#replace:{{PAGENAME}}|(tech)|<nowiki></nowiki>}}}}</big></big>
+
|early=early in the
|-
+
|late=late in the
| width="50%" class="roundy" style="background:#{{Flying color light}};" | '''Era'''
+
|end=at the end of the
{| class="roundy" width="100%" style="background:#FFF;"
+
|midway through the}}
| {{4X|{{{era|neolithic}}}}}
+
{{#switch:{{{era|}}}
|}
+
|1={{4X|agricultural}} [[Category:{{{phase|Mid}}} Agricultural era discoveries]]
| class="roundy" style="background:#{{Flying color light}};" | '''Knowledge'''
+
|2={{4X|literate}} [[Category:{{{phase|Mid}}} Literate era discoveries]]
{| class="roundy" width="100%" style="background:#FFF;"
+
|3={{4X|post-classical}} [[Category:{{{phase|Mid}}} Post-Classical era discoveries]]
| {{#ifeq:{{{know|}}}|0|0|{{#expr:({{{know|1}}}+2)^3}}}}
+
|4={{4X|industrial}} [[Category:{{{phase|Mid}}} Industrual era discoveries]]
|}
+
|5={{4X|information}} [[Category:{{{phase|Mid}}} Information era discoveries]]
|-
+
|6={{4X|near-future}} [[Category:{{{phase|Mid}}} Near-Future era discoveries]]
| class="roundy" style="background:#{{Flying color light}};" | '''Requirements'''
+
|7={{4X|far-future}} [[Category:{{{phase|Mid}}} Far-Future era discoveries]]
{| class="roundy" width="100%" style="background:#FFF;"
+
|8={{4X|transcendence}} [[Category:{{{phase|Mid}}} Transcendence era discoveries]]
| {{{req|None}}}
+
|={{{era|era}}}}} {{4X|era}}{{#switch: {{{science|}}}
|}
+
|F=, and costs {{4X|formal science}} to discover. [[Category:Formal discoveries]]
| class="roundy" style="background:#{{Flying color light}};" | '''Prefaced Technology'''
+
|N=, and costs {{4X|natural science}} to discover. [[Category:Natural discoveries]]
{| class="roundy" width="100%" style="background:#FFF;"
+
|S=, and costs {{4X|social science}} to discover. [[Category:Social discoveries]]
| {{{preface|None}}}
+
|FN=. This costs both {{4X|formal}} and {{4X|natural science}} to discover. [[Category:Formal-Natural discoveries]]
|}
+
|FS=. This costs both {{4X|formal}} and {{4X|social science}} to discover. [[Category:Formal-Social discoveries]]
|-
+
|NS=. This costs both {{4X|natural}} and {{4X|social science}} to discover. [[Category:Natural-Social discoveries]]
| colspan="2" class="roundy" style="background:#{{Flying color light}};" | '''Inspiration Trigger'''
+
|FNS=. This costs {{4X|formal}}, {{4X|natural}}, and {{4X|social}} to discover. [[Category:Diverse discoveries]]
{| class="roundy" width="100%" style="background:#FFF;"
+
|=.}} {{#if:{{{inspire|}}}|It can be {{4X|inspired}} if you {{{inspire|}}}.}} {{{post|}}}{{#if:{{{bonus|}}} {{#if:{{{bonus|}}}|[[Category:Discoveries with a bonus]]|[[Category:Discoveries without a bonus]]}} {{#if:{{{inspire|}}}|[[Category:Discoveries that can be inspired]]|[[Category:Discoveries that can't be inspired]]}}}}
| {{{inspire|None}}}
+
 
|}
+
{{{bonus|}}}
|-
+
{{Unlock}}<includeonly>[[Category:Discoveries]] </includeonly><noinclude>
{{#if:{{{bonus|}}}|{{!}} colspan="2" class="roundy" style="background:#{{Flying color light}};text-align:left;" {{!}} '''Bonus'''
 
{{{!}} class="roundy" width="100%" style="background:#FFF;"
 
{{!}}
 
{{{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)".  Can be omitted.
 +
|era=1, 2, 3, 4, 5, 6, 7, 8
 +
|phase=early, mid, late, end
 +
|science=F, N, S, FN, FS, NS, FNS
 +
}}</pre>
  
 +
<pre>
 +
{{Discovery
 +
|bonus=
 +
|inspire=
 
|era=
 
|era=
|know=
+
|phase=early, mid, late, end
|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>

Latest revision as of 18:37, 25 March 2021

Discovery is a Template:4X that can be revealed midway through the era Template:4X.



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)".  Can be omitted.
|era=1, 2, 3, 4, 5, 6, 7, 8
|phase=early, mid, late, end
|science=F, N, S, FN, FS, NS, FNS
}}
{{Discovery
|bonus=
|inspire=
|era=
|phase=early, mid, late, end
|science=F, N, S, FN, FS, NS, FNS
}}