Template:BibliographicalItemTop: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude><div class="no-img">This template contains page variables used on item (monograph, paper, postcard etc.) pages in IRHB's Originators section. They are all computed automatically, except one optional parameter:
<noinclude><div class="no-img"><p>This template contains page variables used on item (monograph, paper, postcard etc.) pages in IRHB's Originators section. They are all computed automatically, except two optional parameters:</p>
* '''FirstEd''' &ndash;  ''title of item page for first edition of work. It defaults to the current page, so a value must be provided if the current item is a later edition or reprint.''</div></noinclude><includeonly>{{#vardefine:FirstEdition|{{#ifeq:{{{FirstEd|}}}||{{PAGENAME}}|{{{FirstEd}}}}}}}{{#vardefine:FirstUpper|{{#replace:{{uc:{{#var:FirstEdition}}}}|&#39;|'}}}}{{#vardefine:UpperTitle|{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}}}{{#vardefine:Originator|{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}| }}+1}}}}{{#vardefine:Year|{{#replace:{{#sub:{{#explode:{{PAGENAME}}| |-1}}|0|4}}|x|}}}}{{#vardefine:Letter|{{#sub:{{PAGENAME}}|0|1}}}}</includeonly>
* '''FirstEd''' &ndash;  ''title of item page for first edition of work. It defaults to the current page, so a value must be provided if the current item is a later edition or reprint.''
* '''Language''' &ndash;  ''language in which the item is written. It defaults to "original", so a value must be provided if the current item is a translation.''</div></noinclude><includeonly>{{#vardefine:FirstEdition|{{#ifeq:{{{FirstEd|}}}||{{PAGENAME}}|{{{FirstEd}}}}}}}{{#vardefine:FirstUpper|{{#replace:{{uc:{{#var:FirstEdition}}}}|&#39;|'}}}}{{#vardefine:UpperTitle|{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}}}{{#vardefine:Originator|{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}| }}+1}}}}{{#vardefine:Year|{{#replace:{{#sub:{{#explode:{{PAGENAME}}| |-1}}|0|4}}|x|}}}}{{#vardefine:Letter|{{#sub:{{PAGENAME}}|0|1}}}}{{#vardefine:Language|{{#ifeq:{{{Language|}}}||original|{{{Language}}}}}}}</includeonly>

Revision as of 18:42, 25 November 2020

This template contains page variables used on item (monograph, paper, postcard etc.) pages in IRHB's Originators section. They are all computed automatically, except two optional parameters:

  • FirstEdtitle of item page for first edition of work. It defaults to the current page, so a value must be provided if the current item is a later edition or reprint.
  • Languagelanguage in which the item is written. It defaults to "original", so a value must be provided if the current item is a translation.