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 | <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''' – ''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}}}}|'|'}}}}{{#vardefine:UpperTitle|{{#replace:{{uc:{{PAGENAME}}}}|'|'}}}}{{#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''' – ''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''' – ''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}}}}|'|'}}}}{{#vardefine:UpperTitle|{{#replace:{{uc:{{PAGENAME}}}}|'|'}}}}{{#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:
- FirstEd – 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 – language in which the item is written. It defaults to "original", so a value must be provided if the current item is a translation.