Template:Historical Dictionary of Switzerland/doc
This is a documentation subpage for Template:Historical Dictionary of Switzerland. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 4,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
- HDS ID (P902) (see uses)
- Lexicon istoric retic ID (P886) (see uses)
Function
[edit]In articles pertaining to the history of Switzerland, to link to the corresponding online Historical Dictionary of Switzerland (HDS) article, usually under the "References" or "External links" heading.
As the HDS is being edited in the three official languages of Switzerland, the template contains links to the German, French and Italian versions of the HDS article. Some articles may not yet be available in all languages, but they are supposed to eventually be. Dead links in one or two languages are therefore no cause for concern.
Usage
[edit]{{HDS|ID|AlternateName|author=|date=|rm=}}
where ID is the ID number of the HDS article. The ID number is apparent in the URL of the HDS article, for example http://www.hls-dhs-dss.ch/textes/d/D16654.php.
The following parameters are optional:
- AlternateName: If used, this parameter must immediately follow the ID. When used, this name will appear at the beginning of the link. Otherwise, the article name will appear.
- author=: When used, and supplied with the author of the HDS article, it will prefix the reference with their name. This may be linked to an article about the author if you wish.
- date=:When supplied with the date of the HDS article in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17, it appends version information to the reference. The date text must not be wikilinked.
- rm=: The ID number of the equivalent entry in the Lexicon Istoric Retic (LIR; http://www.e-lir.ch). The LIR ID is not the same as the HDS ID. It can be derived from the LIR URL as follows: http://www.e-lir.ch/index.php?id=450&t_articles_id=1407. When used, this parameter makes a link to the LIR article appear in the reference, in the following form: "... in Romansh, German, French, ...".
- if a Romansh article is available, but no German/French/Italian, ID should be 0, but rm= should be used.
Examples
[edit]- When used in the article Adrian von Bubenberg, {{HDS|16654}} results in
- Adrian von Bubenberg in German, French and Italian in the online Historical Dictionary of Switzerland.
- In any article, {{HDS|16654|Adrian de Bubenberg}} results in
- Adrian de Bubenberg in German, French and Italian in the online Historical Dictionary of Switzerland.
- Using the author: {{HDS|16654|Adrian de Bubenberg|author=Wälchli, KF}} results in
- Wälchli, KF: Adrian de Bubenberg in German, French and Italian in the online Historical Dictionary of Switzerland.
- Using the date: {{HDS|16654|Adrian de Bubenberg|date=2004-11-02}} results in
- Adrian de Bubenberg in German, French and Italian in the online Historical Dictionary of Switzerland, 2004-11-02.
- When used in the article Martino Bovollino, {{HDS|16765|rm=384}} results in
- Martino Bovollino in Romansh, German, French and Italian in the online Historical Dictionary of Switzerland.
- With an ID of 0: {{HDS|0|Rom|rm=2639}} results in
- Rom in Romansh in the online Lexicon Istoric Retic.
Tracking categories
[edit]- Category:HDS different on Wikidata – pages using template where
{{{1}}}
is different than Wikidata:Property:P902 - Category:HDS not on Wikidata – pages using template with
{{{1}}}
defined but missing Wikidata:Property:P902 - Category:LIR different on Wikidata – pages using template where
{{{rm}}}
is different than Wikidata:Property:P886 - Category:LIR not on Wikidata – pages using template with
{{{rm}}}
defined but missing Wikidata:Property:P886 - Category:Pages with errors in Template:HDS (0)
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | 1 | The ID string in the URL that identifies the article. | Unknown | optional |
Alternative name | 2 | For if the name of the article is not the page name of the Wikipedia article it is used on. | Unknown | optional |
Author name | author | The author of the article, if known. | Unknown | optional |
Date | date | Date the article was published. | Unknown | optional |
Lexicon Istoric Retic ID | rm | If present, the ID of the equivalent article in the Romansh dictionary Lexicon Istoric Retic. | Unknown | optional |