Template:Infobox bilateral relations

Code


Usage

 * 1) First, create the article that you need this template for. Let's use Canada–United States relations as an example.
 * 2) Create a map using the following name: File: Locator.png (for example, File:Canada USA Locator.png). (Differently named maps can be specified by using the "map=" parameter.)
 * 3)  is the first governing entity of the article (in this case,  )
 * 4)  is the second governing entity of the article (in this case,  )
 * 5)  is an optional named parameter. Using   will use a specific locator map named "Filename.png". (Default is "party1 party2 Locator.png".)
 * 6)  is an optional named parameter. For example, putting   will use an SVG image under the same name, e.g. File:Canada USA Locator.svg. (Default is "png".)
 * 7)  is an optional named parameter to specify the width of the template in pixels (default is "250px")
 * 8)  is an optional named parameter to specify the diplomatic mission of party1
 * 9)  is an optional named parameter to specify the diplomatic mission of party2
 * 10)  is an optional named parameter to specify the title of the diplomatic envoy of party1
 * 11)  is an optional named parameter to specify the name of the diplomatic envoy of party1
 * 12)  is an optional named parameter to specify the title of the diplomatic envoy of party2
 * 13)  is an optional named parameter to specify the name of the diplomatic envoy of party2
 * 14)  is an optional named parameter to specify a flag variant supported by the corresponding Country data template for the first party.
 * 15)  is an optional named parameter to specify a flag variant supported by the corresponding Country data template for the second party.

Map
The template checks for the existence of a map. Articles for which a map does not exist are added to Category:Infobox bilateral relations usage without maps

SVG maps highlighting the relevant countries can be easily created using a text editor, without need of graphics software. Download File:BlankMap-World6.svg, and open the file in a text editor. Add the following code to the source, just before the tag: .xx {fill:#339933;} .yy {fill:#E08020;} Where xx and yy are the ISO 3166-1 alpha-2 country codes for party1 and party2, respectively. Save the file, rename it to the preferred name as described above, and upload the file.