Template:Infobox treaty/doc: Difference between revisions
m (1 revision imported) |
m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
{{Parameter names example | name | long_name | rep | image | image_size | border | alt | caption | type | context | date_drafted | date_signed | location_signed | date_sealed | date_effective | condition_effective | date_expiration | date_expiry | provisional_application | mediators | negotiators | original_signatories | signatories | parties | ratifiers | depositor | depositories | citations | language | languagesclass | languages | wikisource | wikisource1 | wikisource2 | wikisource3 | wikisource4 | wikisource5 | footnotes }} | {{Parameter names example | name | long_name | rep | image | image_size | border | alt | caption | type | context | date_drafted | date_signed | location_signed | date_sealed | date_ratified | date_effective | condition_effective | date_expiration | date_expiry | provisional_application | mediators | negotiators | original_signatories | signatories | parties | ratifiers | depositor | depositories | citations | language | languagesclass | languages | wikisource | wikisource1 | wikisource2 | wikisource3 | wikisource4 | wikisource5 | footnotes }} | ||
<pre style="overflow:auto; white-space:pre;"> | <pre style="overflow:auto; white-space:pre;"> | ||
Line 20: | Line 20: | ||
| location_signed = | | location_signed = | ||
| date_sealed = | | date_sealed = | ||
| date_ratified = <!-- If 3 or more, type 'Multiple dates' linking to a section or footnote --> | |||
| date_effective = | | date_effective = | ||
| condition_effective = | | condition_effective = | ||
Line 38: | Line 39: | ||
| languages = <!-- format this as a bullet list --> | | languages = <!-- format this as a bullet list --> | ||
| wikisource = <!-- OR: --> | | wikisource = <!-- OR: --> | ||
| wikisource1 = <!-- Up to 5 | | wikisource1 = <!-- Up to 5 wikisource variables may be specified --> | ||
| wikisource2 = | | wikisource2 = | ||
| wikisource3 = | | wikisource3 = | ||
Line 48: | Line 49: | ||
{{clear}} | {{clear}} | ||
==Example== | == Example == | ||
{{Infobox treaty | {{Infobox treaty | ||
| name = Treaty of Versailles | | name = Treaty of Versailles | ||
Line 61: | Line 62: | ||
| location_signed = [[Palace of Versailles|Versailles]], France | | location_signed = [[Palace of Versailles|Versailles]], France | ||
| date_sealed = | | date_sealed = | ||
| date_ratified = | |||
| date_effective = 10 January 1920 | | date_effective = 10 January 1920 | ||
| condition_effective = [[Ratification]] by Germany and three Principal Allied Powers | | condition_effective = [[Ratification]] by Germany and three Principal Allied Powers | ||
Line 91: | Line 93: | ||
| location_signed = [[Palace of Versailles|Versailles]], France | | location_signed = [[Palace of Versailles|Versailles]], France | ||
| date_sealed = | | date_sealed = | ||
| date_ratified = | |||
| date_effective = 10 January 1920 | | date_effective = 10 January 1920 | ||
| condition_effective = [[Ratification]] by Germany and three Principal Allied Powers | | condition_effective = [[Ratification]] by Germany and three Principal Allied Powers | ||
Line 120: | Line 123: | ||
{{Infobox treaty/TemplateData}} | {{Infobox treaty/TemplateData}} | ||
<includeonly>{{ | <includeonly>{{Sandbox other|| | ||
<!--Categories below this line, please; interwikis at Wikidata--> | <!--Categories below this line, please; interwikis at Wikidata--> | ||
[[Category:History and events infobox templates|Treaty]] | [[Category:History and events infobox templates|Treaty]] | ||
[[Category:Law infobox templates|Treaty]] | [[Category:Law infobox templates|Treaty]] | ||
[[Category:Embeddable templates]] | |||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 01:37, 18 November 2021
This is a documentation subpage for Template:Infobox treaty. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage
{{{long_name}}} | |
---|---|
{{{rep}}} | |
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright=1.35]] | |
Type | {{{type}}} |
Context | {{{context}}} |
Drafted | {{{date_drafted}}} |
Signed | {{{date_signed}}} |
Location | {{{location_signed}}} |
Sealed | {{{date_sealed}}} |
Ratified | {{{date_ratified}}} |
Effective | {{{date_effective}}} |
Condition | {{{condition_effective}}} |
Expiration | {{{date_expiration}}} |
Expiry | {{{date_expiry}}} |
Provisional application | {{{provisional_application}}} |
Mediators | {{{mediators}}} |
Negotiators | {{{negotiators}}} |
Original signatories | {{{original_signatories}}} |
Signatories | {{{signatories}}} |
Parties | {{{parties}}} |
Ratifiers | {{{ratifiers}}} |
Depositary | {{{depositor}}} |
Depositaries | {{{depositories}}} |
Citations | {{{citations}}} |
Language | {{{language}}} |
Languages | {{{languages}}} |
Full text | |
[[wikisource:{{{wikisource}}}|{{{wikisource}}}]] at Wikisource | |
Full text at Wikisource | |
| |
{{{footnotes}}} |
{{Infobox treaty | name = | long_name = | image = <!-- Example.png --> | image_size = <!-- 200px --> | alt = <!-- alt-text here for accessibility; see [[MOS:ACCESS]] --> | caption = <!-- Example caption for either image style --> | type = | context = | date_drafted = | date_signed = <!-- {{Start date|YYYY|MM|DD}} --> | location_signed = | date_sealed = | date_ratified = <!-- If 3 or more, type 'Multiple dates' linking to a section or footnote --> | date_effective = | condition_effective = | amendment = | date_expiration = <!-- {{End date|YYYY|MM|DD}} OR: --> | date_expiry = <!-- {{End date|YYYY|MM|DD}} --> | provisional_application = | mediators = <!-- format this as a bullet list --> | negotiators = <!-- format this as a bullet list --> | original_signatories = <!-- format this as a bullet list --> | signatories = <!-- format this as a bullet list --> | parties = <!-- format this as a bullet list --> | ratifiers = <!-- format this as a bullet list --> | depositor = <!-- OR: --> | depositories = <!-- format this as a bullet list --> | citations = <!-- format as XX [[Article on Treaty Series|TS]] YYY --> | language = <!-- OR: --> | languages = <!-- format this as a bullet list --> | wikisource = <!-- OR: --> | wikisource1 = <!-- Up to 5 wikisource variables may be specified --> | wikisource2 = | wikisource3 = | wikisource4 = | wikisource5 = | footnotes = }}
Example
Treaty of Peace between the Allied and Associated Powers and Germany | |
---|---|
Signed | 28 June 1919 |
Location | Versailles, France |
Effective | 10 January 1920 |
Condition | Ratification by Germany and three Principal Allied Powers |
Parties | |
Depositary | French Government |
Languages | |
Full text | |
Treaty of Versailles at Wikisource |
{{Infobox treaty | name = Treaty of Versailles | long_name = Treaty of Peace between the Allied and Associated Powers and Germany | image = Treaty of Versailles, English version.jpg | image_size = 180px | alt = | caption = Front page of the version in English | type = | date_drafted = | date_signed = {{Start date|1919|06|28|df=y}} | location_signed = [[Palace of Versailles|Versailles]], France | date_sealed = | date_ratified = | date_effective = 10 January 1920 | condition_effective = [[Ratification]] by Germany and three Principal Allied Powers | date_expiration = | negotiators = | parties = * {{flagicon|Germany|Weimar}} [[Weimar Republic|German Reich]] <hr/> * {{flag|British Empire}} * {{flagicon|France}} [[French Third Republic|France]] * {{flag|United States|1912}} | depositor = French Government | citations = | languages = * [[French language|French]] * [[English language|English]] | wikisource = Treaty of Versailles }}
Tracking category
Microformat
The HTML markup produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. Within the hCalendar is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Dates will only be included if you use {{Start date}} or {{End date}} (use the former for single dates, but do not use any of these if the date is before 1583 CE). {{End date}} requires that a time be specified, but display of this time may be suppressed by adding |nodate=yes
to the end.
To include a URL, use {{URL}}.
hCalendar uses HTML classes including:
- attendee
- dtend
- dtstart
- location
- summary
- url
- vevent
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Also, when giving coordinates, please don't be overly precise.
TemplateData
TemplateData for Infobox treaty
Provides a consistent layout for summary information about treaties and international agreements, to appear at the top right of article pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Short name of the treaty.
| Line | required |
Long name | long_name | The official long name of the treaty. | String | optional |
Image | image | Filename for an image to represent the treaty (without the “File:” prefix). | Page name | optional |
Image size | image_size image_width | Image width for “image”, eg “200px”.
| Line | optional |
Image alternative text | image_alt alt | Accessible alternative text for “image”. | String | optional |
Image border | border | Border for “image”. “yes” if a border should be applied to the image.
| String | optional |
Image caption | caption | Caption, either for “image” or for “rep”. If both parameters are supplied, the caption will appear twice. | Line | optional |
Treaty type | type | Type of the treaty. | Content | optional |
Treaty context | context | Historical context for the treaty. | Content | optional |
Date drafted | date_drafted | The date the treaty was drafted. | Line | optional |
Date signed | date_signed | The date the treaty was signed. Use the template “Start date” to provide this information. | Line | optional |
Location signed | location_signed | The location where the treaty was signed. This should usually include wikilinks. | Line | optional |
Date sealed | date_sealed | The date the treaty was sealed. | Line | optional |
Date effective | date_effective | The date the treaty came into effect. | Line | optional |
Condition effective | condition_effective | The conditions under which the treaty came into effect.
| Line | optional |
Date expired | date_expiry date_expiration | The date the treaty expired. Use the template “End date” to provide this information. | Line | optional |
Provisional application | provisional_application | Content | optional | |
Mediators | mediators | The people or countries who helped mediate the treaty. This should be formatted as a bullet list; flag icons might also be appropriate. | Content | optional |
Negotiators | negotiators | The people or countries who helped negotiate the treaty. This should be formatted as a bullet list; flag icons might also be appropriate. | Content | optional |
Original signatories | original_signatories | The people who *originally* signed the treaty. This should be formatted as a bullet list with flag icons. | Content | optional |
Signatories | signatories | The people who signed the treaty. This should be formatted as a bullet list with flag icons. | Content | optional |
Parties | parties | The countries who are/were party to the treaty. This should be formatted as a bullet list with flag icons. | Content | optional |
Ratifiers | ratifiers | The countries who ratified the treaty. This should be formatted as a bullet list with flag icons. | Content | optional |
Depositor | depositor | The depositor for the treaty, if there is only one. This should usually include wikilinks. | Line | optional |
Depositories | depositories | The depositories for the treaty, if there are more than one. This should be formatted as a bullet list and should usually include flag icons and wikilinks. | Content | optional |
Citations | citations | The citation(s) for the treaty. This should be a link to a Treaty series article, formatted as “XX [[Article on Treaty Series|TS]] YYY” | Line | optional |
Language | language | The language of the treaty text, if there is only one. This should usually include a wikilink. | Line | optional |
Languages | languages | The languages of the treaty text, if there is more than one. This should be formatted as a bullet list and should usually include wikilinks. | Content | optional |
Languages CSS class | languagesclass | The stylesheet class for the list of languages. Ordinarily, this should include “hlist” to allow for formatting an bullet list without bullets.
| Line | optional |
Wikisource link | wikisource | Link to the treaty text on Wikisource, if only one link is required. Use “wikisource1” to “wikisource5” if more than one link is required. | Page name | optional |
Wikisource link #1 | wikisource1 | Link to a treaty text on Wikisource, if more than one link is required. Use “wikisource” if only one link is required. | Page name | optional |
Wikisource link #2 | wikisource2 | Link to a treaty text on Wikisource, if more than one link is required. Use “wikisource” if only one link is required. | Page name | optional |
Wikisource link #3 | wikisource3 | Link to a treaty text on Wikisource, if more than one link is required. Use “wikisource” if only one link is required. | Page name | optional |
Wikisource link #4 | wikisource4 | Link to a treaty text on Wikisource, if more than one link is required. Use “wikisource” if only one link is required. | Page name | optional |
Wikisource link #5 | wikisource5 | Link to a treaty text on Wikisource, if more than one link is required. Use “wikisource” if only one link is required. | Page name | optional |
Footnotes | footnotes | Any footnotes, formatted if necessary. | Content | optional |