Difference between revisions of "Template:Cite DGRC"

From blackwiki
Jump to navigation Jump to search
imported>PBS
m (PBS moved page Template:Diccionario Geográfico de la República de Chile entry to Template:Cite DGRC over redirect: In line with many other specialist citation templates see Category:Wikisource link templates)
imported>PBS
(remove letter= (done automatically with string manipulation) removed entry= as it is replaced with wstitle= leave refs= to be set as needed.)
Line 7: Line 7:
 
   title must be be specified: either with a title= url= pair
 
   title must be be specified: either with a title= url= pair
 
   or wstitle= to link to the article in wikisource.
 
   or wstitle= to link to the article in wikisource.
   year will default to 1905 if not set
+
   year will default to 1899 if not set
 
-->{{cite encyclopaedia
 
-->{{cite encyclopaedia
 
  |{{#if:{{{first|}}}|first |HIDE_PARAMETER}}={{{first|}}}  
 
  |{{#if:{{{first|}}}|first |HIDE_PARAMETER}}={{{first|}}}  
 
  |{{#if:{{{last|}}} |last |HIDE_PARAMETER}}={{{last|}}}  
 
  |{{#if:{{{last|}}} |last |HIDE_PARAMETER}}={{{last|}}}  
 
  
 
<!--Pre-set parameters that can be hidden with the short parameter (short=1) -->
 
<!--Pre-set parameters that can be hidden with the short parameter (short=1) -->
Line 25: Line 24:
  
 
  |title={{#if:{{{title|}}}|{{{title}}}|
 
  |title={{#if:{{{title|}}}|{{{title}}}|
  {{#if:{{{wstitle|{{{entry| {{{letter| }}} }}} }}}|[[s:es:Diccionario Geográfico de la República de Chile/{{#switch: {{Str left|{{{wstitle|}}}|1}}<!--Template:Str_left-->
+
  {{#if:{{{wstitle|}}}|[[s:es:Diccionario Geográfico de la República de Chile/{{#switch: {{Str left|{{{wstitle|}}}|1}}<!--Template:Str_left-->
 
   |C |c = {{#switch: {{Str left|{{{wstitle|}}}|2}}
 
   |C |c = {{#switch: {{Str left|{{{wstitle|}}}|2}}
 
         |Ch |ch =Ch
 
         |Ch |ch =Ch
Line 36: Line 35:
 
         }}  
 
         }}  
 
  ||#default={{Str left|{{{wstitle|}}}|1}}
 
  ||#default={{Str left|{{{wstitle|}}}|1}}
  }}#{{{wstitle|{{{entry|{{{letter| }}} }}} }}}|{{{display|{{{wstitle|{{{entry|{{{letter|}}} }}} }}} }}}]]|<sup><span style="color:red">article name needed</span></sup>}} }}
+
  }}#{{{wstitle|}}}|{{{display|{{{wstitle|}}} }}}]]|<sup><span style="color:red">article name needed</span></sup>}} }}
 
  |url={{#if:{{{title|}}}|{{{url|}}}|}}
 
  |url={{#if:{{{title|}}}|{{{url|}}}|}}
  
Line 44: Line 43:
 
  |{{#if:{{{page|}}}  |page  |HIDE_PARAMETER}}={{{page|}}}
 
  |{{#if:{{{page|}}}  |page  |HIDE_PARAMETER}}={{{page|}}}
 
  |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER}}={{{pages|}}}
 
  |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER}}={{{pages|}}}
  |refs={{{refs|harv}}}
+
  |{{#if:{{{refs|}}}  |refs  |HIDE_PARAMETER}}={{{refs|}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{doc}}
 
{{doc}}
 
[[fa:الگو:DGRC]]
 
[[fa:الگو:DGRC]]
 
[[tr:Şablon:DGRC]]</noinclude>
 
[[tr:Şablon:DGRC]]</noinclude>

Revision as of 15:55, 18 March 2013

12px Cienfuegos, Francisco Astaburuaga, ed. (1899). "article name needed". Diccionario Geográfico de la República de Chile (Geographic dictionary of the Republic of Chile) (in Spanish).

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

Usage

Add {{Cite DGRC|wstitle=name of the DGRC article}} to use it as source. It will automatically link to the entry in the Spanish Wikisource (if it exists).

If there is no entry in the Spanish Wikisource then:

  • {{Cite DGRC|title=name of the DGRC article|url=url}}

can be used to link to an external online source. If no such online source exists then the url can be left out.

Other optional parameters include:

  • volume=volume number
  • page=page number
  • pages=page range
  • ref=harv (see {{harv}})

A non standard parameter is:

  • display=display name this will replace the DGRC article name with an alternative (useful to replace long names, or names with a disambiguation extension).

See also

  • {{DGRC}} takes the same parameters as this template but displays an attribution string for use when text is copied and translated from the original with minimal alterations (see WP:PLAGIARISM)
  • {{DGRC poster}} for use in Further reading or External links sections. It places a Wikisource poster box (a graphical template) on the right hand side of the screen.

fa:الگو:DGRC tr:Şablon:DGRC