Template:Source: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Line 1: Line 1:
<includeonly><nowiki /><noinclude>
<includeonly><nowiki /><noinclude>
</noinclude><noinclude>
</noinclude><noinclude>
</noinclude>{{#if:{{{in|}}}|{{#vardefine:in|;&#32;in: ''{{{in}}}''}}<noinclude>
</noinclude>{{#if:{{{publisher|}}}|{{#vardefine:trenner|,&#32;}}}}<noinclude>
</noinclude>{{#if:{{{publisher|}}}|{{#vardefine:trenner|,&#32;}}}}<noinclude>
</noinclude>{{#if:{{{place|}}}|{{#vardefine:trenner|,&#32;}}}}<noinclude>
</noinclude>{{#if:{{{place|}}}|{{#vardefine:trenner|,&#32;}}}}<noinclude>
Line 6: Line 7:
</noinclude>{{#if:{{{citation|}}}|{{#vardefine:bracket|1}}}}<noinclude>
</noinclude>{{#if:{{{citation|}}}|{{#vardefine:bracket|1}}}}<noinclude>
</noinclude>{{#if:{{{comment|}}}|{{#vardefine:bracket|1}}}}<noinclude>
</noinclude>{{#if:{{{comment|}}}|{{#vardefine:bracket|1}}}}<noinclude>
</noinclude>{{{author|{{fixme}}}}}: {{{title|{{fixme}}}}}{{{number|}}}{{#var:semi}}{{{publisher|}}}{{#var:trenner}}{{{place|}}}&#32;{{{date|}}}&#32;{{{page|}}}&#32;{{#if:{{{lang|}}}|{{lang|{{{lang}}}}}}}{{#ifeq:{{#var:bracket}}|1|&#32;(}}{{#if:{{{citation|}}}|<i>{{{citation}}}</i>}} {{{comment|}}}{{#ifeq:{{#var:bracket}}|1|)}}</includeonly><noinclude>
</noinclude>{{{author|{{fixme}}}}}: {{{title|{{fixme}}}}}{{#var:in}}{{{number|}}}{{#var:semi}}{{{publisher|}}}{{#var:trenner}}{{{place|}}}&#32;{{{date|}}}&#32;{{{page|}}}&#32;{{#if:{{{lang|}}}|{{lang|{{{lang}}}}}}}{{#ifeq:{{#var:bracket}}|1|&#32;(}}{{#if:{{{citation|}}}|<i>{{{citation}}}</i>}} {{{comment|}}}{{#ifeq:{{#var:bracket}}|1|)}}</includeonly><noinclude>
== Usage ==
== Usage ==
This template is intended to standardize references to sources without a web link. If it is possible to link to a source, please use another template listed [[Dev:Wiki_Documentation_Guidelines#References_outside_our_wikis|here]]
This template is intended to standardize references to sources without a web link. If it is possible to link to a source, please use another template listed [[Dev:Wiki_Documentation_Guidelines#References_outside_our_wikis|here]]

Revision as of 15:54, 22 May 2023

Usage

This template is intended to standardize references to sources without a web link. If it is possible to link to a source, please use another template listed here

Usually, this template should be used within <ref>-tags.

Arguments

  • title (required): The (book-) title
  • author (required): The author(s)
  • date: the publication date (or simply year) of the source
  • publisher: The publisher
  • place: The publishing place
  • type: the source type, e.g. book, periodical or disc
  • in: If part of an edited volume, periodical etc.: The title of the volume or series
  • lang: the language of the source, e.g. EN
  • number: the issue number of a periodical or series
  • page: the page number of the citation
  • citation: here you can cite a short text portion
  • comment: anything that does not fit into the other parameters; a string to be displayed directly

Examples

{{source|title=Critias|author=Plato}}

delivers:

{{#if:|Plato: Critias

in
{{{in}}}
{{source|title=Die unendliche Geschichte|author=Michael Ende|publisher=Thienemanns|place=Stuttgart|date=1979|lang=de}}

delivers:

{{#if:|Michael Ende: Die unendliche Geschichte

in
{{{in}}}; Thienemanns, Stuttgart 1979 🇩🇪