Difference between revisions of "Template:Historical currencies of a country"
Jump to navigation
Jump to search
imported>Sardanaphalus (updating link, +category) |
imported>Sardanaphalus (formatting, trying to debug) |
||
Line 1: | Line 1: | ||
{{Navbox | {{Navbox | ||
− | | name = {{{my_name<noinclude>|{{PAGENAME}}</noinclude>}}} | + | |name = {{{my_name<noinclude>|{{PAGENAME}}</noinclude>}}} |
− | | title = | + | |title = [[Image:{{{flag_image}}}|30px|{{{flag_image_alt}}}]] Historical [[Currency|currencies]] of {{{country}}} |
− | | state = {{{state<includeonly>|expanded</includeonly>}}} | + | |state = {{{state<includeonly>|expanded</includeonly>}}} |
− | | list1 = | + | |list1 = |
− | <table style="background:none; text-align:center;" cellpadding="4" align="center"> | + | <table style="background:none; text-align:center;" cellpadding="4" align="center"> |
− | <tr> | + | <tr> |
− | <td>{{{1}}}</td> | + | <td>{{{1}}}</td> |
− | <td style="border-left:1px #aaa solid;">{{{2}}}</td> | + | <td style="border-left:1px #aaa solid;">{{{2}}}</td><!-- |
− | <td style="border-left:1px #aaa solid;">{{{3}}}</td>}} {{#if: {{{4|}}} | | + | -->{{#if:{{{3|}}} |<td style="border-left:1px #aaa solid;">{{{3}}}</td>}}<!-- |
− | <td style="border-left:1px #aaa solid;">{{{4}}}</td>}} {{#if: {{{5|}}} | | + | -->{{#if:{{{4|}}} |<td style="border-left:1px #aaa solid;">{{{4}}}</td>}}<!-- |
− | <td style="border-left:1px #aaa solid;">{{{5}}}</td>}} {{#if: {{{6|}}} | | + | -->{{#if:{{{5|}}} |<td style="border-left:1px #aaa solid;">{{{5}}}</td>}}<!-- |
− | <td style="border-left:1px #aaa solid;">{{{6}}}</td>}} {{#if: {{{7|}}} | | + | -->{{#if:{{{6|}}} |<td style="border-left:1px #aaa solid;">{{{6}}}</td>}}<!-- |
− | <td style="border-left:1px #aaa solid;">{{{7}}}</td>}} {{#if: {{{8|}}} | | + | -->{{#if:{{{7|}}} |<td style="border-left:1px #aaa solid;">{{{7}}}</td>}}<!-- |
− | <td style="border-left:1px #aaa solid;">{{{8}}}</td>}} {{#if: {{{9|}}} | | + | -->{{#if:{{{8|}}} |<td style="border-left:1px #aaa solid;">{{{8}}}</td>}}<!-- |
− | <td style="border-left:1px #aaa solid;">{{{9}}}</td>}} {{#if: {{{10|}}} | | + | -->{{#if:{{{9|}}} |<td style="border-left:1px #aaa solid;">{{{9}}}</td>}}<!-- |
− | <td style="border-left:1px #aaa solid;">{{{10}}}</td>}} | + | -->{{#if:{{{10|}}} |<td style="border-left:1px #aaa solid;">{{{10}}}</td>}} |
− | </tr> | + | </tr> |
− | </table> | + | </table> |
− | |||
}}<noinclude> | }}<noinclude> | ||
+ | <br/><hr/> | ||
{{intricate template}} | {{intricate template}} | ||
{{Numismatic navigational template notice|expanded}} | {{Numismatic navigational template notice|expanded}} | ||
Line 26: | Line 26: | ||
This is the root template for all templates that follow the format "Historical currencies of ''a country''", where ''a country'' is a country/territory. See templates on [[Special:Whatlinkshere/{{FULLPAGENAME}}|What links here]] for real example. | This is the root template for all templates that follow the format "Historical currencies of ''a country''", where ''a country'' is a country/territory. See templates on [[Special:Whatlinkshere/{{FULLPAGENAME}}|What links here]] for real example. | ||
− | == | + | == Instructions == |
− | + | ||
+ | Parameters: | ||
* '''country:''' The country. Format appropriate wiki link such as <nowiki>"the [[Netherlands]]", "the [[United Kingdom|U.K.]]</nowiki> | * '''country:''' The country. Format appropriate wiki link such as <nowiki>"the [[Netherlands]]", "the [[United Kingdom|U.K.]]</nowiki> | ||
* '''flag_image:''' File name of the flag. Do not include "Image". | * '''flag_image:''' File name of the flag. Do not include "Image". | ||
Line 38: | Line 39: | ||
:* It is recommended to make a navigational box if there are 5 or more articles. This template only supports up to 10 articles. | :* It is recommended to make a navigational box if there are 5 or more articles. This template only supports up to 10 articles. | ||
− | ==Example== | + | == Example code == |
− | |||
+ | Here is a copy (which could be a stale copy) of the code for [[Template:Historical currencies of Argentina]]: | ||
<pre> | <pre> | ||
{{Historical currencies of a country | {{Historical currencies of a country | ||
Line 53: | Line 54: | ||
|[[Argentine austral|Austral]]<br/>1985–1991 | |[[Argentine austral|Austral]]<br/>1985–1991 | ||
|[[Argentine peso|Peso]]<br/>1992–''present'' | |[[Argentine peso|Peso]]<br/>1992–''present'' | ||
− | }} | + | }} |
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Revision as of 12:02, 18 August 2008
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Template:Numismatic navigational template notice
This is the root template for all templates that follow the format "Historical currencies of a country", where a country is a country/territory. See templates on What links here for real example.
Instructions
Parameters:
- country: The country. Format appropriate wiki link such as "the [[Netherlands]]", "the [[United Kingdom|U.K.]]
- flag_image: File name of the flag. Do not include "Image".
- flag_image_alt: The alternative image tag when mouse over.
- my_name: Name of the template that transcludes this.
- state: See above
- The rest is the list of currencies to be displayed. The following style is recommended
- [[Actual article name (no redirect)|currency name without the national adjective]]<br/>start year-end year
- Normally, the end year of a period is the start year of the next, unless the end date is December 31 of a year.
- It is recommended to make a navigational box if there are 5 or more articles. This template only supports up to 10 articles.
Example code
Here is a copy (which could be a stale copy) of the code for Template:Historical currencies of Argentina:
{{Historical currencies of a country |country = [[Argentina]] |flag_image = Flag of Argentina.svg |flag_image_alt = Flag of Argentina |my_name = Historical currencies of Argentina |[[Argentine real|Real]]<br/>1813–1881 |[[Argentine peso moneda nacional|Peso moneda nacional]]<br/>1881–1969 |[[Argentine peso ley|Peso ley]]<br/>1970–1983 |[[Argentine peso argentino|Peso argentino]]<br/>1983–1985 |[[Argentine austral|Austral]]<br/>1985–1991 |[[Argentine peso|Peso]]<br/>1992–''present'' }}