Difference between revisions of "Template:DNB/prescript/doc"

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
m (ce;)
imported>WOSlinker
m (change source to syntaxhighlight)
 
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
<source lang="moin">{{DNB/prescript
+
<syntaxhighlight lang="moin">{{DNB/prescript
 
|noicon = {{{no-icon|{{{noicon|}}}}}}
 
|noicon = {{{no-icon|{{{noicon|}}}}}}
 
|wstitle = {{{wstitle|}}}
 
|wstitle = {{{wstitle|}}}
 
|prescript = {{{prescript|}}}
 
|prescript = {{{prescript|}}}
 
|inline = {{{inline|}}}
 
|inline = {{{inline|}}}
}}</source>
+
}}</syntaxhighlight>
  
 
{{red|'''TODO:'''}} at this writing, this template still in experimental stage; examples below use ~/sandbox templates
 
{{red|'''TODO:'''}} at this writing, this template still in experimental stage; examples below use ~/sandbox templates

Latest revision as of 13:04, 7 July 2020

This is a support template for the Dictionary of National Biography attribution templates {{DNB}}, {{DNBSupp}}, {{DNB12}}, and {{DNBIE}}. Not to be used stand-alone.

Usage

{{DNB/prescript
|noicon = {{{no-icon|{{{noicon|}}}}}}
|wstitle = {{{wstitle|}}}
|prescript = {{{prescript|}}}
|inline = {{{inline|}}}
}}

TODO: at this writing, this template still in experimental stage; examples below use ~/sandbox templates

parameters
|noicon= – any assigned value hides the leading Wikisource or public domain icon
|wstitle= – when |noicon= does not have a value, the template renders with the leading Wikisource icon; default public domain icon else – not to be used on {{DNBIE}} which is not on Wikisource
|prescript= – overrides the template's default prescript text; the template's prescript text cannot be 'turned off'; to render the citation portion without prescript text, use the equivalent {{cite DNB}}, {{DNBSupp}}, {{DNB12}}, or {{DNBIE}} template
{{DNB |prescript=Alternate prescript text:&#32; |wstitle=Abbadie, Jacques}}
12px Alternate prescript text: "Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900.
|prescript= – ignored; template uses the prescript text selected by |inline=
{{DNB |prescript= |wstitle=Abbadie, Jacques}}
12px This article incorporates text from a publication now in the public domain"Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900.
|inline= – select one or the other of the two variants of the prescript text:
|inline=y:
{{DNB |inline=y |wstitle=Abbadie, Jacques}}
12px One or more of the preceding sentences incorporates text from a publication now in the public domain"Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900.
|inline= or omitted:
{{DNB |inline= |wstitle=Abbadie, Jacques}}
12px This article incorporates text from a publication now in the public domain"Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900.
{{DNB |wstitle=Abbadie, Jacques}}
12px This article incorporates text from a publication now in the public domain"Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900.