Difference between revisions of "Template:Infobox bilateral relations/doc"
Jump to navigation
Jump to search
imported>Zackmann08 (updating documentation) |
imported>WOSlinker (tag fix) |
||
| Line 26: | Line 26: | ||
#First, create the article that you need this template for. Let's use [[Canada–United States relations]] as an example. | #First, create the article that you need this template for. Let's use [[Canada–United States relations]] as an example. | ||
#Create a map using the following name: ''File:<first country name> <second country name> Locator.png'' (for example, [[:File:Canada USA Locator.png]]). (Differently named maps can be specified by using the "map=" parameter.) | #Create a map using the following name: ''File:<first country name> <second country name> Locator.png'' (for example, [[:File:Canada USA Locator.png]]). (Differently named maps can be specified by using the "map=" parameter.) | ||
| − | #<code>party1</code> is the first governing entity of the article (in this case, <code>Canada<code>) | + | #<code>party1</code> is the first governing entity of the article (in this case, <code>Canada</code>) |
| − | #<code>party2</code> is the second governing entity of the article (in this case, <code>USA<code>) | + | #<code>party2</code> is the second governing entity of the article (in this case, <code>USA</code>) |
#<code>map</code> is an optional named parameter. Using <code>map=''Filename.png''</code> will use a specific locator map named "Filename.png". (Default is "party1 party2 Locator.png".) | #<code>map</code> is an optional named parameter. Using <code>map=''Filename.png''</code> will use a specific locator map named "Filename.png". (Default is "party1 party2 Locator.png".) | ||
#<code>filetype</code> is an optional named parameter. For example, putting <code>filetype=svg</code> will use an SVG image under the same name, e.g. [[:File:Canada USA Locator.svg]]. (Default is "png".) | #<code>filetype</code> is an optional named parameter. For example, putting <code>filetype=svg</code> will use an SVG image under the same name, e.g. [[:File:Canada USA Locator.svg]]. (Default is "png".) | ||
Revision as of 11:40, 22 December 2017
| 40px | This is a documentation subpage for Template:Infobox bilateral relations. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Template:Parameter names example
Contents
Code
{{Infobox bilateral relations
| title = <!-- country1–country2 relations -->
| party1 = <!-- country1 -->
| party2 = <!-- country2 -->
| map =
| filetype =
| size =
| mission1 =
| mission2 =
| envoytitle1 =
| envoy1 =
| envoytitle2 =
| envoy2 =
}}
Usage
| x30px Canada |
x30px United States |
|---|---|
| Diplomatic mission | |
| Embassy of Canada, Washington, D.C. | Embassy of the United States, Ottawa |
| Envoy | |
| Ambassador Gary Doer | Ambassador Bruce Heyman |
- First, create the article that you need this template for. Let's use Canada–United States relations as an example.
- Create a map using the following name: File:<first country name> <second country name> Locator.png (for example, File:Canada USA Locator.png). (Differently named maps can be specified by using the "map=" parameter.)
party1is the first governing entity of the article (in this case,Canada)party2is the second governing entity of the article (in this case,USA)mapis an optional named parameter. Usingmap=Filename.pngwill use a specific locator map named "Filename.png". (Default is "party1 party2 Locator.png".)filetypeis an optional named parameter. For example, puttingfiletype=svgwill use an SVG image under the same name, e.g. File:Canada USA Locator.svg. (Default is "png".)sizeis an optional named parameter to specify the width of the template in pixels (default is "250px")mission1is an optional named parameter to specify the diplomatic mission of party1mission2is an optional named parameter to specify the diplomatic mission of party2envoytitle1is an optional named parameter to specify the title of the diplomatic envoy of party1envoy1is an optional named parameter to specify the name of the diplomatic envoy of party1envoytitle2is an optional named parameter to specify the title of the diplomatic envoy of party2envoy2is an optional named parameter to specify the name of the diplomatic envoy of party2flagvariant1is an optional named parameter to specify a flag variant supported by the corresponding Country data template for the first party.flagvariant2is 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
Microformat
Tracking category