Template:Alliance: Difference between revisions

From YATA Wiki
Jump to navigationJump to search
(Created page with "<includeonly> <infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption-image1"/> </image> <image source="image2"> <caption source="caption-image2"/> </image> <data source="Abbreviation"> <label>Abbreviation</label> </data> <data source="Type"> <label>Type</label> </data> <data source="headquarters"> <label>Headquarters</label> </data> <data source="founder...")
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<infobox>
{{infobox
  <title source="title1">
|templatestyles = Template:Infobox country/styles.css
    <default>{{PAGENAME}}</default>
| bodyclass = ib-country vcard
  </title>
| aboveclass = adr
  <image source="image1">
    <caption source="caption-image1"/>
  </image>
  <image source="image2">
    <caption source="caption-image2"/>
  </image>
  <data source="Abbreviation">
    <label>Abbreviation</label>
  </data>
  <data source="Type">
    <label>Type</label>
  </data>
  <data source="headquarters">
    <label>Headquarters</label>
  </data>
  <data source="founder(s)">
    <label>Founder(s)</label>
  </data>
  <data source="leader">
    <label>Leader</label>
  </data>
  <data source="members">
    <label>Member States</label>
  </data>
  <data source="observers">
    <label>Observer States</label>
  </data>
  <data source="Associates">
    <label>Associated States &amp; Groups</label>
  </data>
  <data source="former_members">
    <label>Former Members</label>
  </data>
  <group collapse="open">
    <header source="history">Historical Information</header>
    <data source="Founded">
      <label>Founded</label>
    </data>
    <data source="Dissolved">
      <label>Dissolved</label>
    </data>
  </group>
</infobox>
</includeonly>
<noinclude>
Example usage:
<pre>
{{Alliance
 
  | title1=Example


  | image1=Example
| subheader = {{#if:{{{life_span|}}} | {{{life_span}}} | {{#if:{{{year_start|}}}|{{{year_start}}}{{#if:{{{year_end|}}}|–{{{year_end}}} }} }} }}


  | caption-image1=Example
| above = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}{{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}


  | Abbreviation=Example
| label2    = Abbreviation
| data2      = {{{abbreviation|{{{abbreviation}}}}}}


  | Type=Example
| label3    = Type
| data3      = {{{type|{{{type}}}}}}


  | headquarters=Example
| label4    = Headquarters
| data4      = {{{headquarters|{{{headquarters}}}}}}


  | founder(s)=Example
| label5    = Founder(s)
| data5      = {{{founders|{{{founders}}}}}}


  | leader=Example
| label6    = Leader(s)
| data6      = {{{leaders|{{{leaders}}}}}}


  | members=Example
| label7    = Member States
| data7      = {{{member states|{{{member_states}}}}}}


  | observers=Example
| label8    = Observer States
| data8      = {{{observer states|{{{observer_states}}}}}}


  | Associates=Example
| label9    = Associated States & Groups
| data9      = {{{associated states and groups|{{{associated_states_and_groups}}}}}}


  | former_members=Example
| label10    = Former Members
| data10    = {{{former members|{{{former_members}}}}}}


   | history=Example
| header11   = Historical Information


  | Founded=Example
| label12    = Founded
| data12    = {{{founded|{{{founded}}}}}}


  | Dissolved=Example
| label13    = Dissolved
| data13    = {{{dissolved|{{{dissolved}}}}}}


| belowclass = mergedtoprow noprint
| below = {{#if:{{{navbar|}}}| {{navbar|{{{navbar|}}}}} }}
}}
}}
</pre>
</includeonly>
<noinclude>
{{documentation}}
<noinclude>
<templatedata>
<templatedata>
{"params":{"title1":{"suggested":true},"image1":{"suggested":true},"caption-image1":{"suggested":true},"image2":{"suggested":true},"caption-image2":{"suggested":true},"Abbreviation":{"suggested":true},"Type":{"suggested":true},"headquarters":{"suggested":true},"founder(s)":{"suggested":true},"leader":{"suggested":true},"members":{"suggested":true},"observers":{"suggested":true},"Associates":{"suggested":true},"former_members":{"suggested":true},"history":{"suggested":true},"Founded":{"suggested":true},"Dissolved":{"suggested":true}},"sets":[],"maps":{}}
{
"params": {
"name": {
"type": "string",
"required": true,
"suggested": true
},
"image1": {
"type": "wiki-file-name",
"suggested": true
},
"image2": {
"type": "wiki-file-name",
"suggested": true
},
"abbreviation": {
"type": "string",
"suggested": true
},
"type": {
"type": "string",
"suggested": true
},
"headquarters": {
"type": "string",
"suggested": true
},
"founders": {
"type": "string",
"suggested": true
},
"leaders": {
"type": "string",
"suggested": true
},
"member states": {
"type": "string",
"suggested": true
},
"observer states": {
"type": "string",
"suggested": true
},
"associated states and groups": {
"type": "string",
"suggested": true
},
"former members": {
"type": "string",
"suggested": true
},
"founded": {
"type": "string",
"suggested": true
},
"dissolved": {
"type": "string",
"suggested": true
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 12:50, 25 April 2024

}}} | image =

| label2 = Abbreviation | data2 = {{{abbreviation}}}

| label3 = Type | data3 = {{{type}}}

| label4 = Headquarters | data4 = {{{headquarters}}}

| label5 = Founder(s) | data5 = {{{founders}}}

| label6 = Leader(s) | data6 = {{{leaders}}}

| label7 = Member States | data7 = {{{member_states}}}

| label8 = Observer States | data8 = {{{observer_states}}}

| label9 = Associated States & Groups | data9 = {{{associated_states_and_groups}}}

| label10 = Former Members | data10 = {{{former_members}}}

| header11 = Historical Information

| label12 = Founded | data12 = {{{founded}}}

| label13 = Dissolved | data13 = {{{dissolved}}}

| belowclass = mergedtoprow noprint | below = }} </includeonly>

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

no description

Stringrequired
image1image1

no description

Filesuggested
image2image2

no description

Filesuggested
abbreviationabbreviation

no description

Stringsuggested
typetype

no description

Stringsuggested
headquartersheadquarters

no description

Stringsuggested
foundersfounders

no description

Stringsuggested
leadersleaders

no description

Stringsuggested
member statesmember states

no description

Stringsuggested
observer statesobserver states

no description

Stringsuggested
associated states and groupsassociated states and groups

no description

Stringsuggested
former membersformer members

no description

Stringsuggested
foundedfounded

no description

Stringsuggested
dissolveddissolved

no description

Stringsuggested