Difference between revisions of "Template:HDS"

From blackwiki
Jump to navigation Jump to search
imported>Docu
m
imported>Leyo
(EC: not equal, changed cat)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{#if: {{{author|}}}
 
{{#if: {{{author|}}}
 
     | {{{author}}}: 
 
     | {{{author}}}: 
}}''{{{2|{{PAGENAME}}}}}'' {{#ifeq:{{{1}}}|0|in [http://www.e-lir.ch/e-LIR___Lexicon.{{{rm}}}.450.0.html <span title="{{{2|{{PAGENAME}}}}} in Romansh">Romansh</span>] in the online ''[[Lexicon Istoric Retic]]''|in {{#if: {{{rm|}}}|[http://www.e-lir.ch/e-LIR___Lexicon.{{{rm}}}.450.0.html <span title="{{{2|{{PAGENAME}}}}} in Romansh">Romansh</span>],}} [http://www.hls-dhs-dss.ch/textes/d/D{{{1}}}.php <span title="{{{2|{{PAGENAME}}}}} in German">German</span>], [http://www.hls-dhs-dss.ch/textes/f/F{{{1}}}.php <span title="{{{2|{{PAGENAME}}}}} in French">French</span>] and [http://www.hls-dhs-dss.ch/textes/i/I{{{1}}}.php <span title="{{{2|{{PAGENAME}}}}} in Italian">Italian</span>] in the online ''[[Historical Dictionary of Switzerland]]''}}{{#if: {{{date|}}}|,&#32;{{{date}}} }}.<noinclude>
+
}}''{{{2|{{PAGENAME}}}}}'' {{#ifeq:{{{1}}}|0|in [http://www.e-lir.ch/e-LIR___Lexicon.{{{rm}}}.450.0.html <span title="{{{2|{{PAGENAME}}}}} in Romansh">Romansh</span>] in the online ''[[Lexicon Istoric Retic]]''|in {{#if: {{{rm|}}}|[http://www.e-lir.ch/e-LIR___Lexicon.{{{rm}}}.450.0.html <span title="{{{2|{{PAGENAME}}}}} in Romansh">Romansh</span>],}} [http://www.hls-dhs-dss.ch/textes/d/D{{{1}}}.php <span title="{{{2|{{PAGENAME}}}}} in German">German</span>], [http://www.hls-dhs-dss.ch/textes/f/F{{{1}}}.php <span title="{{{2|{{PAGENAME}}}}} in French">French</span>] and [http://www.hls-dhs-dss.ch/textes/i/I{{{1}}}.php <span title="{{{2|{{PAGENAME}}}}} in Italian">Italian</span>] in the online ''[[Historical Dictionary of Switzerland]]''}}{{#if: {{{date|}}}|,&#32;{{{date}}} }}.<includeonly><!-- tracking categories to compare with Wikidata
{{Documentation}}
+
-->{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories.
</noinclude><includeonly><!-- tracking categories to compare with Wikidata -->
+
-->{{#if:{{#property:P902}}
{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories. -->
 
{{#if:{{#property:P902}}
 
 
  | {{#ifeq:{{{1|}}}|0|
 
  | {{#ifeq:{{{1|}}}|0|
 
   | {{#ifeq:{{#property:P902}}|{{{1|}}}
 
   | {{#ifeq:{{#property:P902}}|{{{1|}}}
     | <!-- same ID: We want to end up here
+
     |<!-- same ID: We want to end up here
 
  -->| [[Category:HDS different on Wikidata]] <!-- Figure out the best link  
 
  -->| [[Category:HDS different on Wikidata]] <!-- Figure out the best link  
 
-->}}<!--  
 
-->}}<!--  
Line 14: Line 12:
 
-->| [[Category:HDS not on Wikidata]] <!-- These we still need to import -->
 
-->| [[Category:HDS not on Wikidata]] <!-- These we still need to import -->
 
  }}
 
  }}
}}</includeonly><includeonly><!-- tracking categories to compare with Wikidata -->
+
}}<!-- tracking categories to compare with Wikidata  
{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories. -->
+
-->{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories. -->
 
   {{#ifeq:{{{rm|}}}||  | {{#ifeq:{{#property:P886}}|{{{rm|}}}
 
   {{#ifeq:{{{rm|}}}||  | {{#ifeq:{{#property:P886}}|{{{rm|}}}
   |  same ID
+
   |  <!-- same ID -->
 
   | {{#if:{{#property:P886}}|[[Category:LIR different on Wikidata]] <!-- Figure out the best link -->
 
   | {{#if:{{#property:P886}}|[[Category:LIR different on Wikidata]] <!-- Figure out the best link -->
 
     |[[Category:LIR not on Wikidata]] <!-- missing on Wikidata-->
 
     |[[Category:LIR not on Wikidata]] <!-- missing on Wikidata-->
Line 23: Line 21:
 
  -->}}<!--  
 
  -->}}<!--  
 
  -->}}<!--  
 
  -->}}<!--  
-->}}</includeonly>
+
-->}}<!--
 +
 
 +
Parameter maintenance:
 +
 
 +
-->{{#invoke:TemplatePar|valid|1|n
 +
|cat= Pages with errors in Template:HDS
 +
|errNS= 0
 +
|template= [[Template:HDS]]
 +
}}<!--
 +
-->{{#invoke:TemplatePar|check
 +
|all= 1=
 +
|opt= 2= author= date= rm=
 +
|cat= Pages with errors in Template:HDS
 +
|errNS= 0
 +
|template= [[Template:HDS]]
 +
}}</includeonly><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 21:34, 15 July 2018

HDS in German, French and Italian in the online Historical Dictionary of Switzerland.

Template documentation[view] [edit] [history] [purge]

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