Template:Organisation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
(Created page with "<templatestyles src="Organisation/styles.css" /> <includeonly>{{Infobox/begin}} {{Infobox/Header|title={{PAGENAME}}|subtitle={{{full_title}}}}} {{Infobox/Illustration|file=...")
 
No edit summary
 
(31 intermediate revisions by 3 users not shown)
Line 2: Line 2:
   
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
{{Infobox/Header|title={{PAGENAME}}|subtitle={{{full_title}}}}}
+
{{Infobox/Header|title={{#if:{{{abbreviation|}}}|{{{abbreviation|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{full_title|}}}|{{{full_title|}}}|}}}}
{{Infobox/Illustration|file=[[File:{{{flag}}}|300px]]|caption=Flag}}
+
{{Infobox/Dual Illustration|left_file={{#if:{{{flag|}}}|[[File:{{{flag}}}]]|}}|left_caption={{#if:{{{flag|}}}|Flag|}}|right_file={{#if:{{{emblem|}}}|[[File:{{{emblem}}}]]|}}|right_caption={{#if:{{{emblem|}}}|Emblem|}}}}
{{Infobox/Illustration|file=[[File:{{{emblem}}}|300px]]|caption=Emblem}}
+
{{Infobox/Illustration|file={{#if:{{{map|}}}|[[File:{{{map}}}]]|}}|caption={{{map_caption|}}}}}
{{Infobox/Illustration|file=[[File:{{{map}}}|300px]]|caption={{{map_caption}}}}
+
{{Infobox/Item|key=Founded|value={{{est_date|}}}}}
{{Infobox/Item|key=Founded|value={{{est_date}}}}}
+
{{Infobox/Item|key=Dissolved|value={{{dis_date|}}}}}
{{Infobox/Item|key=Dissolved|value={{{dis_date}}}}}
+
{{Infobox/Item|key=Type|value={{{type|}}}}}
{{Infobox/Item|key=Type|value={{{type}}}}}
+
{{Infobox/Item|key=Branch|value={{{branch|}}}}}
{{Infobox/Item|key=Headquarters|value={{{location}}}}}
+
{{Infobox/Item|key=Part Of|value={{{part_of|}}}}}
{{Infobox/Item|key=Membership|value={{{members}}}}}
+
{{Infobox/Item|key=Motto|value={{{motto|}}}}}
{{Infobox/Item|key={{{leader_title}}}|value={{{leader}}}}}
+
{{Infobox/Item|key=Headquarters|value={{{location|}}}}}
  +
{{Infobox/Item|key=Membership|value={{{members|}}}}}
  +
{{Infobox/Item|key={{{leader_title|}}}|value={{{leader|}}}}}
  +
{{Infobox/Item|key=Engagements|value={{{engagements|}}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
   
 
<noinclude>
 
<noinclude>
  +
Generic template for Organizations (Arms, state services, alliances, etc). Use [[Template:Corporation]] for private corporate entities.
  +
  +
== Usage ==
 
{{Organisation
 
{{Organisation
  +
|abbreviation = [FON]
 
|full_title = [Full Org Name]
 
|full_title = [Full Org Name]
 
|flag = KP dark.png|emblem = KP dark.png
 
|flag = KP dark.png|emblem = KP dark.png
Line 22: Line 29:
 
|dis_date = [date]
 
|dis_date = [date]
 
|type = [military/trade/etc]
 
|type = [military/trade/etc]
  +
|motto = [motto]
 
|location = [headquarters location]
 
|location = [headquarters location]
 
|members = [members list]
 
|members = [members list]
 
|leader_title = [leader title]|leader = [most recent leader]
 
|leader_title = [leader title]|leader = [most recent leader]
 
}}
 
}}
  +
<pre>
  +
{{Organisation
  +
|abbreviation = [FON]
  +
|full_title = [Full Org Name]
  +
|flag = KP dark.png|emblem = KP dark.png
  +
|map = KP dark.png|map_caption = [member states]
  +
|est_date = [date]
  +
|dis_date = [date]
  +
|type = [military/trade/etc]
  +
|motto = [motto]
  +
|location = [headquarters location]
  +
|members = [members list]
  +
|leader_title = [leader title]|leader = [most recent leader]
  +
}}
  +
</pre>
  +
  +
== Sub-template components ==
  +
* [[Template:Organisation/Navy|<code><nowiki>{{Organisation/Navy|...}}</nowiki></code>]] : Section for navies and maritime organisations such as coast guards, etc.
  +
* [[Template:Organisation/Air Force|<code><nowiki>{{Organisation/Air Force|...}}</nowiki></code>]] : Section for air forces and air corps. Use [[Template:Corporation]] + [[Template:Corporation/Airline]] for airlines.
   
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
[[Category:Templates]]
 
[[Category:Templates]]
   
  +
{{clr}}
   
  +
== TemplateData ==
</templatedata>
 
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
"full_title": {},
+
"full_title": {
"flag": {},
+
"label": "Name",
  +
"description": "The full organisational name",
"emblem": {},
 
"map": {},
+
"type": "string",
"map_caption": {},
+
"required": true
"est_date": {},
+
},
"dis_date": {},
+
"flag": {
"type": {},
+
"label": "Flag",
  +
"example": "filename.extension",
"location": {},
 
"members": {},
+
"type": "wiki-file-name",
"leader_title": {},
+
"suggested": true,
  +
"description": "Flag or large form logo"
"leader": {}
 
}
+
},
  +
"emblem": {
  +
"label": "Emblem",
  +
"example": "filename.extension",
  +
"type": "wiki-file-name",
  +
"required": true,
  +
"description": "Emblem or insigna",
  +
"suggested": true
  +
},
  +
"map": {
  +
"label": "Map",
  +
"description": "Map of the locations used",
  +
"type": "wiki-file-name"
  +
},
  +
"map_caption": {
  +
"label": "Map caption",
  +
"type": "string",
  +
"description": "Caption for the map, if provided"
  +
},
  +
"est_date": {
  +
"label": "Date of Establishment",
  +
"example": "11th September, 2001",
  +
"type": "date",
  +
"required": true,
  +
"description": "Date at which the organization was first established"
  +
},
  +
"dis_date": {
  +
"label": "Date of Dissolution",
  +
"type": "date",
  +
"suggested": true,
  +
"example": "11th September, 2001",
  +
"description": "Date at which the org. was disbanded, if any. If recreated several times, use <br> in this field"
  +
},
  +
"motto": {
  +
"suggested": true,
  +
"type": "string",
  +
"label": "Motto",
  +
"description": "Motto or slogan"
  +
},
  +
"location": {
  +
"label": "Location",
  +
"description": "Location of the headquarters or main area of activity",
  +
"suggested": true,
  +
"type": "string"
  +
},
  +
"members": {
  +
"label": "Member States",
  +
"description": "List of member nations, if applicable",
  +
"example": "[[country]]</br>[[country]]",
  +
"type": "string",
  +
"suggested": true
  +
},
  +
"leader_title": {
  +
"label": "Leader Title",
  +
"description": "Title used for the leader",
  +
"example": "President, Commander, CEO",
  +
"type": "string",
  +
"suggested": true
  +
},
  +
"leader": {
  +
"label": "Leader Name",
  +
"description": "Identity of the Leader",
  +
"suggested": true,
  +
"type": "string"
  +
},
  +
"abbreviation": {
  +
"label": "Abbreviated Name",
  +
"description": "Name or acronym more commonly used",
  +
"type": "string",
  +
"required": true
  +
},
  +
"type": {
  +
"aliases": [
  +
"general_nature"
  +
],
  +
"description": "Type/Nature of the Organisation",
  +
"example": "Alliance, Federal Agency, Unit, Navy, etc",
  +
"suggested": true,
  +
"type": "string",
  +
"label": "Type"
  +
},
  +
"branch": {
  +
"label": "Branch",
  +
"description": "Branch or Arm this organization is part of, if applicable",
  +
"example": "Zokesian Navy, Department of Paperclips",
  +
"type": "string"
  +
},
  +
"part_of": {
  +
"label": "Part of",
  +
"description": "Organization or state body this org. is a part of, if applicable",
  +
"example": "Commonwealth of Feguanesia, Globohomo Worldwide Inc.",
  +
"type": "wiki-page-name"
  +
},
  +
"engagements": {
  +
"label": "Engagements",
  +
"description": "Wars and battles this organization was involved in",
  +
"example": "Operation xxxx, Battle of Somewhere, War of the Great Heavens",
  +
"type": "string"
  +
}
  +
},
  +
"description": "Generic template for Organizations (Arms, state services, alliances, etc)",
  +
"paramOrder": [
  +
"full_title",
  +
"abbreviation",
  +
"flag",
  +
"emblem",
  +
"map",
  +
"map_caption",
  +
"est_date",
  +
"dis_date",
  +
"type",
  +
"branch",
  +
"part_of",
  +
"location",
  +
"motto",
  +
"leader_title",
  +
"leader",
  +
"members",
  +
"engagements"
  +
],
  +
"format": "block"
 
}
 
}
 
</templatedata>
 
</templatedata>

Latest revision as of 22:26, 9 February 2025



Generic template for Organizations (Arms, state services, alliances, etc). Use Template:Corporation for private corporate entities.

Usage

[FON]
[Full Org Name]
KP dark.png
Flag
KP dark.png
Emblem
KP dark.png
[member states]
Founded [date]
Dissolved [date]
Type [military/trade/etc]
Motto [motto]
Headquarters [headquarters location]
Membership [members list]
[leader title] [most recent leader]


{{Organisation
|abbreviation = [FON]
|full_title = [Full Org Name]
|flag = KP dark.png|emblem = KP dark.png
|map = KP dark.png|map_caption = [member states]
|est_date = [date]
|dis_date = [date]
|type = [military/trade/etc]
|motto = [motto]
|location = [headquarters location]
|members = [members list]
|leader_title = [leader title]|leader = [most recent leader]
}}

Sub-template components

TemplateData

Generic template for Organizations (Arms, state services, alliances, etc)

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namefull_title

The full organisational name

Stringrequired
Abbreviated Nameabbreviation

Name or acronym more commonly used

Stringrequired
Flagflag

Flag or large form logo

Example
filename.extension
Filesuggested
Emblememblem

Emblem or insigna

Example
filename.extension
Filerequired
Mapmap

Map of the locations used

Fileoptional
Map captionmap_caption

Caption for the map, if provided

Stringoptional
Date of Establishmentest_date

Date at which the organization was first established

Example
11th September, 2001
Daterequired
Date of Dissolutiondis_date

Date at which the org. was disbanded, if any. If recreated several times, use <br> in this field

Example
11th September, 2001
Datesuggested
Typetype general_nature

Type/Nature of the Organisation

Example
Alliance, Federal Agency, Unit, Navy, etc
Stringsuggested
Branchbranch

Branch or Arm this organization is part of, if applicable

Example
Zokesian Navy, Department of Paperclips
Stringoptional
Part ofpart_of

Organization or state body this org. is a part of, if applicable

Example
Commonwealth of Feguanesia, Globohomo Worldwide Inc.
Page nameoptional
Locationlocation

Location of the headquarters or main area of activity

Stringsuggested
Mottomotto

Motto or slogan

Stringsuggested
Leader Titleleader_title

Title used for the leader

Example
President, Commander, CEO
Stringsuggested
Leader Nameleader

Identity of the Leader

Stringsuggested
Member Statesmembers

List of member nations, if applicable

Example
[[country]]</br>[[country]]
Stringsuggested
Engagementsengagements

Wars and battles this organization was involved in

Example
Operation xxxx, Battle of Somewhere, War of the Great Heavens
Stringoptional