m (Add margins; fix orphaned includeonly)
(Made portable)
Tag: sourceedit
Line 1: Line 1:
  +
<includeonly><infobox>
<includeonly><div class="container-with-margins" style="float:right; max-width:50%; clear:right;">
 
  +
<title>
{| class="wikitable" style="margin:0;"
 
  +
<default>{{#replace:{{PAGENAME}}|(Civ5)|}}</default>
|+<big><big>'''{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}}}}'''</big></big>
 
  +
</title>
! colspan="2"| {{#if: {{{image|}}}
 
  +
<image>
| {{#ifexist:Image:{{{image}}} | [[Image:{{{image}}}|180px|center]] | {{#ifexist:Image:{{{image}}}.png| [[Image:{{{image}}}.png|180px|center]] | Could not find "[[:Image:{{{image}}}]]" or "[[:Image:{{{image}}}.png]]"! }} }}
 
  +
<default>{{PortableInfoboxPageImage}}</default>
| {{pageimage}}<br/>}}[[List of wonders in Civ5|World wonder]] {{#if: {{{era|}}}|of the [[{{{era}}} era (Civ5)|{{{era}}} era]]}} in ''[[Civilization V]]''{{#if: {{{expires|}}} |. <br/>[[Obsolete]] with the discovery of [[{{{expires}}}]].}}<br/>{{#if: {{{game|}}} | '''Introduced in''' ''[[{{{game}}}]]''<br/> | <!--Vanilla--> }}
 
  +
<caption>
|-
 
  +
<default>
!{{production5}}
 
 
{{PortableInfoBoxUploadImage}}[[List of wonders in Civ5|World wonder]] {{#if: {{{era|}}}|of the [[{{{era}}} era (Civ5)|{{{era}}} era]]}} in ''[[Civilization V]]''{{#if: {{{expires|}}} |. <br/>[[Obsolete]] with the discovery of [[{{{expires}}}]].}}<br/>{{#if: {{{game|}}} | '''Introduced in''' ''[[{{{game}}}]]''<br/> | <!--Vanilla--> }}</default>
|{{ #if: {{{cost|}}} | {{{cost}}} | N/A }}
 
  +
</caption>
|-
 
  +
</image>
!{{culture5}}
 
  +
<data source="cost">
|<nowiki></nowiki>
 
  +
<label>Production cost</label>
{{ #if: {{{culture|}}} | {{{culture}}} | N/A}}
 
  +
<format>{{{production}}} {{Production5}}</format>
|-
 
  +
</data>
!Technology
 
  +
<data source="culture">
|{{ #if: {{{reqtech|}}} | {{PageIcon5|{{{reqtech}}}}}}}
 
  +
<label>Culture</label>
|-
 
  +
<format>{{{culture}}} {{culture5}}</format>
!{{GreatPeople5}}
 
  +
</data>
|{{ #if: {{{gpp|}}} | {{{gpp}}} }} {{ #if: {{{gpt|}}} | [[Great {{{gpt}}} (Civ5)|Great {{{gpt}}}]] points}}
 
  +
<data source="gpp">
|-
 
 
<label>{{GreatPeople5}}</label>
!Effect
 
 
<format>{{ #if: {{{gpp|}}} | {{{gpp}}} }} {{ #if: {{{gpt|}}} | [[Great {{{gpt}}} (Civ5)|Great {{{gpt}}}]] points}}</format>
|<nowiki></nowiki>
 
  +
</data>
{{ #if: {{{effect|}}} | {{{effect}}} }}
 
  +
<data source="reqtech">
|}</div>
 
  +
<label>Technology</label>
{{BackArrow|List_of_wonders_in_Civ5|Back to the list of wonders}}{{#if: {{{quote|}}} | :''{{#ifeq: {{#sub:{{{quote}}}|0|1}} |"| |"}}{{{quote}}}{{#ifeq: {{#sub:{{{quote}}}|0|1}} |"| |"}}''
 
 
<format>{{#ifeq:{{{reqtech}}}|?|Unknown|{{PageIcon5|{{{reqtech}}}}}}}</format>
  +
</data>
  +
<data source="effect">
  +
<label>Effect</label>
  +
</data>
 
</infobox>{{BackArrow|List_of_wonders_in_Civ5|Back to the list of wonders}}{{#if: {{{quote|}}} | :''{{#ifeq: {{#sub:{{{quote}}}|0|1}} |"| |"}}{{{quote}}}{{#ifeq: {{#sub:{{{quote}}}|0|1}} |"| |"}}''
 
:–{{{quoted|Unknown}}} }}
 
:–{{{quoted|Unknown}}} }}
{{#if: {{NAMESPACE}} ||[[Category:Wonders (Civ5)]]}}</includeonly><noinclude>
+
{{#if: {{NAMESPACE}} ||[[Category:Wonders (Civ5)]]}}</includeonly><noinclude>{{documentation}}
 
[[Category:Civilopedia templates|Wonder]]</noinclude>
{{documentation}}
 
[[Category:Civilopedia templates|Wonder]]
 
</noinclude>
 

Revision as of 18:25, 20 October 2016

(view | edit | purge | history)

Template documentation (the template shown above may sometimes be hidden or invisible)
Description

This template renders an infobox about a Civ5 wonder.

Usage
  • gpt = Great person type, e.g. Merchant or Engineer
  • gpp = Great person points
{{wonder (Civ5)
|name = 
|game = 
|cost = 
|culture = 
|reqtech = 
|gpp =
|gpt = 
|quote = 
|quoted = 
|effect = 
}}
Example
{{wonder (Civ5)
|name = Angkor Wat
|image = Angkor Wat (Civ5).png
|quote = A wise quote about Angkor Wat
|quoted = Some notable person
|cost = 300
|culture = 1
|reqtech = Theology
|gpp = 1
|gpt = Engineer
|effect = [[Culture (Civ5)|]] cost of acquiring new tiles reduced by 75% in all cities
}}

Renders as:

BackArrowGreen.png Back to the list of wonders

"A wise quote about Angkor Wat"
–Some notable person

Community content is available under CC-BY-SA unless otherwise noted.