Template:Treaty infobox: Difference between revisions
Jump to navigation
Jump to search
m (more specific error) |
m (padding for bloc members) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="infobox {{#if:{{{game|}}}|{{{game}}}|othergame}}" | <includeonly>{| class="infobox {{#if:{{{game|}}}|{{{game}}}|othergame}}" | ||
! colspan="2" class="infobox-header" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ! colspan="2" class="infobox-header infobox-blue-bg" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
|- | |- | ||
| colspan="2" class="infobox-images" | | {{#if:{{{image|}}}| | ||
{{#if:{{{ | {{!}} colspan="2" class="infobox-images" {{!}} | ||
{{{ | [[File:{{{image}}}|300px|{{#if:{{{imagedesc|}}}|{{{imagedesc}}}|Treaty flag}}]]<br />{{#if:{{{imagedesc|}}}|{{{imagedesc}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} flag}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{signatory1|}}}{{{signatory2|}}}| | |||
{{!}} colspan="2" class="infobox-images" {{!}} | |||
{{gamepage|{{{signatory1}}}|game={{{game}}}|p=x}}<br />[[File:{{{flag1}}}|150px|{{{signatory1}}} flag]] | {{gamepage|{{{signatory1}}}|game={{{game}}}|p=x}}<br />[[File:{{{flag1}}}|150px|{{{signatory1}}} flag]] | ||
{{gamepage|{{{signatory2}}}|game={{{game}}}|p=x}}<br />[[File:{{{flag2}}}|150px|{{{signatory2}}} flag]] | {{gamepage|{{{signatory2}}}|game={{{game}}}|p=x}}<br />[[File:{{{flag2}}}|150px|{{{signatory2}}} flag]] | ||
{{!}}- | |||
}} | }} | ||
! Type | ! Type | ||
| {{{type}}} | | {{{type}}} | ||
|- | |- | ||
! Status | ! Status | ||
| {{{status}}} | | {{{status}}}{{#if:{{{statustext|}}}|<br />{{{statustext|}}}}} | ||
|- | |- | ||
! Signed | ! Signed | ||
Line 28: | Line 31: | ||
! Link | ! Link | ||
{{!}} {{{link}}} | {{!}} {{{link}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{signatories|}}}| | |||
! colspan="2" class="infobox-blue-bg" {{!}} Signatories | |||
{{!}}- | |||
{{!}} colspan="2" class="infobox-images" style="padding: 0.5em 0;" {{!}} | |||
{{{signatories}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{formersignatories|}}}| | |||
! colspan="2" class="infobox-blue-bg" {{!}} Former Signatories | |||
{{!}}- | |||
{{!}} colspan="2" class="infobox-images" style="padding: 0.5em 0;" {{!}} | |||
{{{formersignatories}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
|}{{if ns|main| | |}{{if ns|main| | ||
[[Category:{{#if:{{{game|}}}|Treaties in {{{game}}}|Treaties}}]] | [[Category:{{#if:{{{game|}}}|{{#if:{{{signatories|}}}{{{formersignatories|}}}|Blocs|Treaties}} in {{{game}}}|{{#if:{{{signatories|}}}{{{formersignatories|}}}|Blocs|Treaties}}}}]] | ||
{{#switch:{{lc:{{#if:{{{status|}}}|{{{status}}}|blank}}}} | |||
|active=[[Category:Active treaties]] | |||
|defunct|canceled|cancelled|expired=[[Category:Defunct treaties]] | |||
|superseded=[[Category:Superseded treaties]] | |||
|blank={{error|treaty status is required}} | |||
|#default={{error|invalid treaty status}} | |||
}}{{#if:{{{signatories|}}}{{{formersignatories|}}}|{{#if:{{{signatory1|}}}{{{signatory2|}}}|{{error|mixed infobox usage (signatories)}}}}}} | |||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 06:57, 18 July 2021
Documentation [edit]
This is an infobox for a treaty between two or more entities. See also {{flaglink}}
which can be used for the signatories (use format=large).
Parameters
- game - the game in which the treaty is/was effective. Leave blank if none or multiple.
- name - (optional) the name of the treaty; defaults to the page name.
- image - (optional) an image for the treaty if one exists, such as a flag or banner.
- imagedesc - (optional) a short description of the image. Defaults to "(treaty name) flag".
- signatory1 and signatory2 - for bilateral treaties, each of these should be the signatory name only.
- flag1 and flag2 - for bilateral treaties, each of these should be the signatory's flag name and extension only.
- signatories - only use this if there are more than two signatories. This is a freeform field, but usually you will want to use the same format as bilateral treaties.
- formersignatories - same as above to list former members of a multilateral treaty. For defunct treaties, all members should be listed here.
- type - the type of treaty.
- status - the current status of the treaty. Can be one of: Active, Defunct, Canceled, Expired, Superseded. Contact an administrator if other statuses are needed.
- statustext - (optional) any further explanation on the treaty's status.
- signed - the date the treaty was signed and/or came into effect.
- terminated - if applicable, the date the treaty ceased to apply or no longer had signatories.
- link - a link to the announcement of the treaty. Use
{{forumlink}}
if applicable, otherwise use an external link.
Skeleton
Bilteral
{{Treaty infobox |game = |signatory1 = |flag1 = |signatory2 = |flag2 = |type = |status = |signed = |terminated = |link = }}
Bloc
{{Treaty infobox |game = |image = |type = |status = |signed = |terminated = |link = |signatories = |formersignatories = }}
The above documentation is transcluded from Template:Treaty infobox/doc.