Difference between revisions of "Template:SetBibliographyItem"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
* <code><nowiki>|title=</nowiki></code> - the title of the resource. | * <code><nowiki>|title=</nowiki></code> - the title of the resource. | ||
* <code><nowiki>|year=</nowiki></code> - the year of first publication. | * <code><nowiki>|year=</nowiki></code> - the year of first publication. | ||
+ | * <code><nowiki>|cover=</nowiki></code> - the image of the cover for books and collections, and of the first page for articles (optional). | ||
* <code><nowiki>|publisher=</nowiki></code> - the name of the publishing company. | * <code><nowiki>|publisher=</nowiki></code> - the name of the publishing company. | ||
* <code><nowiki>|abstract=</nowiki></code> - the abstract or a short synopsis of the resource. | * <code><nowiki>|abstract=</nowiki></code> - the abstract or a short synopsis of the resource. | ||
Line 33: | Line 34: | ||
--><!-- set other properties so that they can be queried | --><!-- set other properties so that they can be queried | ||
--><!-- | --><!-- | ||
− | -->{{#set:Title={{{title|}}}|Resource Type={{{type|}}}|Year={{{year|}}}|Publisher={{{publisher|}}}|Abstract={{{abstract|}}}|ISBN={{{isbn|}}}|DOI={{{doi|}}}|URL={{{url|}}}|Collection={{{collection|}}}|Journal={{{journal|}}}|Volume={{{volume|}}}|Number={{{number|}}}|Pages={{{pages|}}}|}}<!-- | + | -->{{#set:Title={{{title|}}}|Resource Type={{{type|}}}|Year={{{year|}}}|Publisher={{{publisher|}}}|Cover Image={{{cover|}}}|Abstract={{{abstract|}}}|ISBN={{{isbn|}}}|DOI={{{doi|}}}|URL={{{url|}}}|Collection={{{collection|}}}|Journal={{{journal|}}}|Volume={{{volume|}}}|Number={{{number|}}}|Pages={{{pages|}}}|}}<!-- |
--><!-- | --><!-- | ||
--><!-- set the first page number to be able to order journal articles of the same issue or articles in the same collection by page numbers | --><!-- set the first page number to be able to order journal articles of the same issue or articles in the same collection by page numbers | ||
Line 39: | Line 40: | ||
-->{{#if: {{{pages|}}}|<!-- | -->{{#if: {{{pages|}}}|<!-- | ||
--><!-- | --><!-- | ||
− | -->{{# | + | -->{{#vardefine: varFirstPageNumber|{{ExtractFirstPageNumber|pages={{{pages|}}}|}}|}}<!-- |
− | |||
− | |||
− | |||
− | |||
--><!-- | --><!-- | ||
+ | -->{{#if: {{IsNumber|value={{var: varFirstPageNumber}}|}}<!-- | ||
+ | -->|<!-- | ||
+ | --><!-- regular number: store as is | ||
+ | -->{{#set:First Page={{#var: varFirstPageNumber}}|}}<!-- | ||
+ | --><!-- | ||
+ | -->|<!-- | ||
+ | --><!-- not a number: see if it is roman | ||
+ | -->{{#set:First Page=0|}}<!-- | ||
+ | --><!-- | ||
+ | -->}}<!-- if is number | ||
-->}}<!-- if pages given | -->}}<!-- if pages given | ||
--><!-- | --><!-- |
Latest revision as of 16:09, 28 December 2021
This template is used to define an individual bibliography entry in accord with the specifications of the #scite
parser. Items defined through this become part of the Semantic Cite mechanism used by this encyclopedia.
NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
Parameters:
|citation key=
- the citation key of this resource, e.g. "Barseghyan (2015)".|type=
- the type of the resource. Accepted values are: journal article, collection, book, collection article.|author=
- the author(s) of the resource. If multiple authors need to be specified, a comma delimited array can be passed here.|title=
- the title of the resource.|year=
- the year of first publication.|cover=
- the image of the cover for books and collections, and of the first page for articles (optional).|publisher=
- the name of the publishing company.|abstract=
- the abstract or a short synopsis of the resource.|isbn=
- the ISBN number of the publication.|hyperlinkurl=
- if the resource is online, the stable URL of the resource.|doi=
- the DOI of the resource, if available.|collection=
- if the resource is in a collection, then indicate the collection's Citation Key here, e.g. "Lakatos (1978)".|journal=
- if the resource is in a journal, the title of the journal.|volume=
- if the resource is in a journal, the volume of the journal issue.|number=
- if the resource is in a journal, the number of the journal issue.|pages=
- if the resource is in a collection or a journal, the pages where the resource is located. Don't use "p." or "pp." just indicate the page numbers, e.g. "61-116".