Semantic MediaWiki and related extensions
|
{{#scite:}}
parser can only be used in namespaces that are enabled for Semantic MediaWiki.
Parameters (or identifiers) are free from any restrictions besides those listed below:
type
is a reserved parameterreference
is a reserved parameter and is linked to the Citation key
propertycitation text
is a reserved parameter and is linked to the Citation text
propertysortkey
is a reserved parameter and is linked to the _SKEY
property and can be set to find a resource more easily during querying as the resource is by default set to the internal resource id.bibtex
is a reserved parameter and used for the bibtex record importtemplate
is reserved to define a preferred template for output processingdoi
, pmcid
, pmid
, olid
, oclc
, and viaf
linking to its representing propertyA citation resource is expected to be identifiable by a unique key and to be available wiki-wide therefore selecting an appropriate key is paramount to safeguard against unnecessary changes.
The reference
parameter is the descriptor for that key. For example, to describe a Byrne 2008
resource the short or the explicit reference parameter form can be used.
If it becomes necessary to rename a citation key (because a resource with key Foo 2007
no longer represents a unique resource due to adding another resource with the same key) then the existing usage of that resource needs to be queried and changed before applying the new citation key (e.g. Foo 2007a
).
The property Citation text
contains the formatted output of a citation resource and is used when a 05-referencelist.md "referencelist" is generated. The text is either added directly (without further processing) in its final using the the |citation text=
parameter or determined by an assinged template.
In case the parameter |citation text=
is not declared then #scite
is going to determine a template by first looking at the |template=
parameter and if such parameter is not denoted then the 03-template-mapping.md "template" assigned to the type of the resource is used for processing to return a formatted text value.
If `$GLOBALS['scigEnabledCitationTextChangeUpdateJob']` is set true then a change to a citation text will initiate an update job for those pages that make reference to the related citation resource.
A type assignment is expected for each citation resource unless `$GLOBALS['scigEnabledStrictParserValidation'] is set
false`.
If multiple types are assigned (e.g.|type=bgn:Thesis;schema:Book|+sep=;
) then the last entry (e.g. schema:Book
) will be selected as valid type descriptor.
To ease the reuse of bibtex records, #scite
provides the |bibtex=
parameter to import a bibtex formatted text to create an annotatable record following the assignments declared in the MediaWiki:
02-property-mapping.md "property" and 03-template-mapping.md "template" page.
Authors (e.g. Einstein, Albert and Podolsky, Boris and Rosen, Nathan
) will be split into an author list of natural representations (Albert Einstein
etc.) while the original annotation string is still available using the hidden bibtex-author
parameter.
@article
is parsed as type article
that can be assigned to a specific 03-template-mapping.md "template" containing the rules of how text elements are to be formatted. Please be aware that no automatic clean-up is done on elements containing {
/}
or new lines as in in \n SUSY
(to avoid issues with MediaWiki's Parser
). Yet, complex expressions (those involve macros etc.) are not parsed or resolved.