Template:Treaty infobox: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
(adjustments for blocs)
m (lc status)
Line 49: Line 49:
|}{{if ns|main|
|}{{if ns|main|
[[Category:{{#if:{{{game|}}}|{{#if:{{{signatories|}}}{{{formersignatories|}}}|Blocs|Treaties}} in {{{game}}}|{{#if:{{{signatories|}}}{{{formersignatories|}}}|Blocs|Treaties}}}}]]
[[Category:{{#if:{{{game|}}}|{{#if:{{{signatories|}}}{{{formersignatories|}}}|Blocs|Treaties}} in {{{game}}}|{{#if:{{{signatories|}}}{{{formersignatories|}}}|Blocs|Treaties}}}}]]
{{#switch:{{#if:{{{status|}}}|{{{status}}}|blank}}
{{#switch:{{lc:{{#if:{{{status|}}}|{{{status}}}|blank}}}}
   |active=[[Category:Active treaties]]
   |active=[[Category:Active treaties]]
   |defunct|canceled|cancelled|expired=[[Category:Defunct treaties]]
   |defunct|canceled|cancelled|expired=[[Category:Defunct treaties]]

Revision as of 08:59, 12 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.