Template:Infobox treaty: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="infobox" style="border: 1px solid #aaaaaa; background-color: #f9f9f9; width: 300px; padding: 10px; font-size: 90%;"> | <div class="infobox" style="border: 1px solid #aaaaaa; background-color: #f9f9f9; width: 300px; padding: 10px; font-size: 90%;"> | ||
<div style="font-size: 125%; font-weight: bold; text-align: center;">{{{name|{{PAGENAME}}}}}</div> | <div style="font-size: 125%; font-weight: bold; text-align: center;">{{{name|{{PAGENAME}}}}}</div> | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
<div style="text-align: center; margin: 5px; padding: 5px | <div style="text-align: center; margin: 5px; padding: 5px;"> | ||
[[File:{{{image}}}| | [[File:{{{image}}}|frameless|upright=1.2|alt={{{imagealt|}}}|{{{caption|}}}]] | ||
</div> | </div> | ||
}} | }} | ||
<table class="infobox" style="width: 100%; border-collapse: collapse;"> | |||
{{#if: {{{type|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Type</th> | |||
<td style="padding: 5px;">{{{type}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{date_signed|}}}| | |||
<tr> | |||
|- | <th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Signed</th> | ||
<td style="padding: 5px;">{{{date_signed}}}</td> | |||
</tr> | |||
| | }} | ||
{{#if: {{{location|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Location</th> | |||
<td style="padding: 5px;">{{{location}}}</td> | |||
|} | </tr> | ||
< | }} | ||
</div>[[Category:Treaties]][[Category:Diplomacy]]</includeonly><noinclude> | |||
{{#if: {{{date_effective|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Effective</th> | |||
<td style="padding: 5px;">{{{date_effective}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{condition|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Condition</th> | |||
<td style="padding: 5px;">{{{condition}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{expiry|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Expiry</th> | |||
<td style="padding: 5px;">{{{expiry}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{signatories|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Signatories</th> | |||
<td style="padding: 5px;">{{{signatories}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{parties|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Parties</th> | |||
<td style="padding: 5px;">{{{parties}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{depository|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Depository</th> | |||
<td style="padding: 5px;">{{{depository}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{language|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Language(s)</th> | |||
<td style="padding: 5px;">{{{language}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{purpose|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Purpose</th> | |||
<td style="padding: 5px;">{{{purpose}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{notes|}}}| | |||
<tr> | |||
<th style="background-color: #ccccff; width: 30%; padding: 5px; text-align: left;">Notes</th> | |||
<td style="padding: 5px;">{{{notes}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
[[Category:Treaties]] | |||
[[Category:Diplomacy]]</includeonly><noinclude> | |||
{{Documentation | {{Documentation | ||
|content= | |content= | ||
This template is designed to create an infobox for treaties and agreements within the world of Micras. It is flexible and can accommodate various types of legal documents between multiple entities. | This template is designed to create an infobox for treaties and agreements within the world of Micras. It is flexible and can accommodate various types of legal documents between multiple entities. | ||
Line 40: | Line 114: | ||
| name = Name of the treaty or agreement | | name = Name of the treaty or agreement | ||
| image = Filename of the image (e.g., Treaty.png) | | image = Filename of the image (e.g., Treaty.png) | ||
| | | imagealt = Alternative text for the image | ||
| caption = Caption for the image | | caption = Caption for the image | ||
| type = Type of document (e.g., Peace treaty, Trade agreement) | | type = Type of document (e.g., Peace treaty, Trade agreement) | ||
Line 46: | Line 120: | ||
| location = Location where the treaty was signed | | location = Location where the treaty was signed | ||
| date_effective= Date when the treaty comes into effect | | date_effective= Date when the treaty comes into effect | ||
| condition = Conditions required for the treaty to take effect | |||
| expiry = Expiry date of the treaty, if applicable | |||
| signatories = List of the signatory parties | |||
| parties = Parties involved in the treaty | | parties = Parties involved in the treaty | ||
| depository = Entity or country responsible for holding the treaty's original documents | |||
| language = Languages in which the treaty was written | | language = Languages in which the treaty was written | ||
| purpose = Brief description of the treaty's purpose | | purpose = Brief description of the treaty's purpose | ||
| | | notes = Additional notes or comments regarding the treaty | ||
}} | }} | ||
</pre> | </pre> | ||
Line 57: | Line 135: | ||
| name = Treaty of Example | | name = Treaty of Example | ||
| image = ExampleTreaty.jpg | | image = ExampleTreaty.jpg | ||
| | | imagealt = Signing of the Treaty of Example | ||
| caption = Signing ceremony of the Treaty of Example | | caption = Signing ceremony of the Treaty of Example | ||
| type = Peace Treaty | | type = Peace Treaty | ||
Line 63: | Line 141: | ||
| location = Example City, Example Nation | | location = Example City, Example Nation | ||
| date_effective= January 1, 1701 AN | | date_effective= January 1, 1701 AN | ||
| condition = Ratification by all parties | |||
| expiry = January 1, 1800 AN | |||
| signatories = [[Nation1]], [[Nation2]], [[Nation3]] | |||
| parties = [[Nation1]], [[Nation2]] | | parties = [[Nation1]], [[Nation2]] | ||
| depository = Example Depository | |||
| language = English, French | | language = English, French | ||
| purpose = To end the war between Nation1 and Nation2 | | purpose = To end the war between Nation1 and Nation2 | ||
| | | notes = This treaty set the foundation for future diplomatic relations. | ||
}} | }} | ||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> |
Revision as of 07:13, 3 November 2024
This template is designed to create an infobox for treaties and agreements within the world of Micras. It is flexible and can accommodate various types of legal documents between multiple entities.
Usage
{{Infobox treaty | name = Name of the treaty or agreement | image = Filename of the image (e.g., Treaty.png) | imagealt = Alternative text for the image | caption = Caption for the image | type = Type of document (e.g., Peace treaty, Trade agreement) | date_signed = Date when the treaty was signed | location = Location where the treaty was signed | date_effective= Date when the treaty comes into effect | condition = Conditions required for the treaty to take effect | expiry = Expiry date of the treaty, if applicable | signatories = List of the signatory parties | parties = Parties involved in the treaty | depository = Entity or country responsible for holding the treaty's original documents | language = Languages in which the treaty was written | purpose = Brief description of the treaty's purpose | notes = Additional notes or comments regarding the treaty }}
Example
Treaty of Example
Type | Peace Treaty |
---|---|
Signed | January 1, 1700 AN |
Location | Example City, Example Nation |
Effective | January 1, 1701 AN |
Condition | Ratification by all parties |
Expiry | January 1, 1800 AN |
Signatories | Nation1, Nation2, Nation3 |
Parties | Nation1, Nation2 |
Depository | Example Depository |
Language(s) | English, French |
Purpose | To end the war between Nation1 and Nation2 |
Notes | This treaty set the foundation for future diplomatic relations. |
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Subpages of this template. |