Difference between revisions of "Template:HDS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mattis
imported>Vanisaac
m (→‎Tracking categories: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(11 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 
 +
{{Tracks Wikidata|P902|P886}}
 +
 
 
== Function ==
 
== Function ==
 
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.
 
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.
Line 15: Line 18:
 
* ''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.
 
* ''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 his or her name. This may be linked to an article about the author if you wish.
+
* ''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, eg. ''2006-02-17'', it appends version information to the reference. The date text must not be wikilinked.
+
* ''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: ''<nowiki>http://www.e-lir.ch/index.php?id=450&t_articles_id=</nowiki>'''1407'''''. When used, this parameter makes a link to the LIR article appear in the reference, in the following form: "... in Romansh, German, French, ...".
 
* ''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: ''<nowiki>http://www.e-lir.ch/index.php?id=450&t_articles_id=</nowiki>'''1407'''''. When used, this parameter makes a link to the LIR article appear in the reference, in the following form: "... in Romansh, German, French, ...".
Line 42: Line 45:
 
** {{HDS|0|Rom|rm=2639}}
 
** {{HDS|0|Rom|rm=2639}}
  
<includeonly>
+
== Tracking categories ==
[[หมวดหมู่:แม่แบบอ้างอิง|HDS]]
+
* [[:Category:HDS different on Wikidata]] – pages using template where {{param|1}} is different than [[Wikidata:Property:P902]]
 +
* [[:Category:HDS not on Wikidata]] – pages using template with {{param|1}} defined but missing Wikidata:Property:P902
 +
* [[:Category:LIR different on Wikidata]] – pages using template where {{param|rm}} is different than [[Wikidata:Property:P886]]
 +
* [[:Category:LIR not on Wikidata]] – pages using template with {{param|rm}} defined but missing Wikidata:Property:P886
 +
* {{clc|Pages with errors in Template:HDS}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Specific-source templates|HDS]]
  
[[de:Vorlage:HLS]]
+
}}</includeonly>
[[en:Template:HDS/doc]]
 
[[fr:Modèle:DHS]]
 
[[it:Template:DSS]]
 
[[ja:Template:HDS]]
 
[[rm:Template:E-LIR]]
 
[[ru:Шаблон:HDS]]
 
</includeonly>
 

Latest revision as of 16:45, 25 April 2020

Template:Tracks Wikidata

Function

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

{{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

Tracking categories