Template:Infobox: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
(Undo revision 41936 by ArtiTice (talk))
Tags: Replaced Undo
 
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
{{infobox
{{documentation}}
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
| subheader = {{{subheader|}}}
| autoheaders = y

| image1 = {{#if:{{{image|}}}| [[File:{{{image}}}|frameless|alt={{{alt|}}}|border|upright=.6|]]}}
| caption1 = {{{caption|}}}

| image2 = {{#if:{{{image2|}}}| [[File:{{{image2}}}|frameless|alt={{{alt|}}}|border|upright=.6|]]}}
| caption2 = {{{caption2|}}}

| captionstyle =

| abovestyle = background:#eaecee;font-size:130%;padding:0.3em;
| headerstyle = background:#eaecee;

| header1 = General

| label2 = Location
| data2 = {{{location|}}}

| label3 = Demonym
| data3 = {{{demonym|}}}

| label4 = Activity level
| data4 = {{{activity_level|}}}

| label5 = Alliance
| data5 = {{{alliance|}}}

| label6 = Capital city
| data6 = {{{capital_city|}}}

| label7 = Settlements
| data7 = {{{settlements|}}}

| label8 = Territories
| data8 = {{{territories|}}}

| label9 = Currency
| data9 = {{{currency|}}}

| label10 = Area
| data10 = {{{area|}}}

| label11 = National Colors
| data11 = {{#if:{{{national_color|}}}|{{legend|{{{national_color}}}|{{{nat_color_desc|}}} }} }}
{{#if:{{{national_color_2|}}}|{{legend|{{{national_color_2}}}|{{{nat_color_desc_2|}}} }} }}
{{#if:{{{national_color_3|}}}|{{legend|{{{national_color_3}}}|{{{nat_color_desc_3|}}} }} }}
{{#if:{{{national_color_4|}}}|{{legend|{{{national_color_4}}}|{{{nat_color_desc_4|}}} }} }}

| header12 = Government

| label13 = Government
| data13 = {{{government_type|}}}

| label14 = Governing document
| data14 = {{{governing_document|}}}

| label15 = <div style="text-indent:-0.9em;margin-left:1.2em;font-weight:normal;">•&nbsp;{{{position_title1|}}}
| data15 = {{{position_name1|}}}

| label16 = <div style="text-indent:-0.9em;margin-left:1.2em;font-weight:normal;">•&nbsp;{{{position_title2|}}}
| data16 = {{{position_name2|}}}

| label17 = <div style="text-indent:-0.9em;margin-left:1.2em;font-weight:normal;">•&nbsp;{{{position_title3|}}}
| data17 = {{{position_name3|}}}

| label18 = <div style="text-indent:-0.9em;margin-left:1.2em;font-weight:normal;">•&nbsp;{{{position_title4|}}}
| data18 = {{{position_name4|}}}

| label19 = <div style="text-indent:-0.9em;margin-left:1.2em;font-weight:normal;">•&nbsp;{{{position_title5|}}}
| data19 = {{{position_name5|}}}

| label20 = <div style="text-indent:-0.9em;margin-left:1.2em;font-weight:normal;">•&nbsp;{{{position_title6|}}}
| data20 = {{{position_name6|}}}

| header25 = Formation

| label26 = Foundation date
| data26 = {{{foundation_date|}}}

| label27 = Foundation document
| data27 = {{{foundation_document|}}}

| label28 = {{{foundation_custom_title1|}}}
| data28 = {{{foundation_custom_value1|}}}

| label29 = Preceded by
| data29 = {{{preceded_by|}}}

| label30 = Succeeded by
| data30 = {{{succeeded_by|}}}

| header40 = Culture

| label41 = Language
| data41 = {{{language|}}}

| label42 = Religion
| data42 = {{{religion|}}}

| label43 = Ideology
| data43 = {{{ideology|}}}

| label44 = Motto
| data44 = {{{motto|}}}

| label45 = National anthem
| data45 = {{{national_anthem|}}}

| label46 = Mascot
| data46 = {{{mascot|}}}

| label48 = {{{culture_custom_title1|}}}
| data48 = {{{culture_custom_value1|}}}

| label49 = {{{culture_custom_title2|}}}
| data49 = {{{culture_custom_value2|}}}

| header60 = Links

| label61 = Website
| data61 = {{{website|}}}

| label62 = Subreddit
| data62 = {{{subreddit|}}}

| label63 = Discord
| data63 = {{{discord|}}}
}}
<includeonly>{{#ifeq: {{lc:{{{categories}}}}} | no ||
[[Category:Civilizations]]}}</includeonly>
<noinclude>
{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here -->
<templatedata>
{
"params": {
"name": {
"description": "Civilization name. Displays at top of infobox"
},
"subheader": {
"description": "Displays beneath civilization name. May be used for longer or alternate civilization name"
},
"image": {
"description": "Write the name of the flag only",
"example": "Flag.png",
"suggested": true
},
"alt": {},
"caption": {},
"image2": {},
"caption2": {},
"location": {
"description": "Coordinates in format `{{Coord|X|Z|R}}` where R is radius of ccmap view"
},
"demonym": {},
"activity_level": {
"description": "Inactive/Low/Medium/High (as of MONTH DAY YEAR)"
},
"alliance": {},
"capital_city": {},
"settlements": {},
"currency": {},
"territories": {},
"government_type": {},
"governing_document": {},
"position_title1": {},
"position_title2": {},
"position_title3": {},
"position_title4": {},
"position_title5": {},
"position_title6": {},
"position_name1": {},
"position_name2": {},
"position_name3": {},
"position_name4": {},
"position_name5": {},
"position_name6": {},
"foundation_date": {},
"foundation_document": {},
"foundation_custom_title1": {
"description": "Use for custom foundation titles such as annexed, invented, created, etc",
"example": "Annexed",
"type": "string"
},
"foundation_custom_value1": {
"description": "the date or document of when it was founded",
"example": "10 December 2019"
},
"preceded_by": {},
"succeeded_by": {},
"language": {
"label": "Spoken Languages",
"description": "Languages that are spoken in this civ",
"example": "English<br/>Spanish",
"type": "content",
"suggested": true
},
"religion": {},
"ideology": {},
"motto": {
"description": "\"MOTTO TEXT\""
},
"national_anthem": {},
"mascot": {},
"culture_custom_title1": {},
"culture_custom_title2": {},
"culture_custom_value1": {},
"culture_custom_value2": {},
"website": {},
"subreddit": {
"description": "[https://reddit.com/r/SUBREDDIT/ /r/SUBREDDIT]"
},
"discord": {
"description": "[https://discord.gg/INVITECODE INVITECODE]"
},
"area": {
"label": "Area (preferably in km²)",
"description": "ask on civwiki for more info",
"example": "1 km² (as of 20 May 2020)"
},
"national_color": {
"label": "National Color",
"description": "The national color of the country",
"example": "#cf0000 or red or black",
"type": "string"
},
"nat_color_desc": {
"label": "National Color Description",
"description": "Used to describe the specific name of the national color",
"example": "Icenian Blue",
"type": "string"
},
"categories": {
"description": "set to no if Civilization category is not desired",
"example": "no"
},
"national_color_2": {},
"nat_color_desc_2": {},
"national_color_3": {},
"nat_color_desc_3": {},
"national_color_4": {},
"nat_color_desc_4": {}
},
"description": "Summarize information about a civilization."
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 00:49, 14 October 2021

Template documentation[view] [edit] [history] [purge]