Difference between revisions of "Template:DisplaySource"

From Wikispooks
Jump to navigation Jump to search
m (Text replacement - "|sourceURL" to "|source_URL")
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''Used to show the source of a document.'''<br/>
+
<noinclude>'''Used to show the source of a document.''' If {{t|SourceName}} is present, it adds a [[property:sourced from]] statement.<br/>
 
The parameters are as described in the parent template [[template:DocProv]].<br/>
 
The parameters are as described in the parent template [[template:DocProv]].<br/>
 
<br/>
 
<br/>
 
Usage:<br/>
 
Usage:<br/>
:{{t|<nowiki>{{DisplaySource|Source|SourceURL|SourceName|SourceDetail}}</nowiki>}}
+
:{{t|<nowiki>{{DisplaySource|source_URL|SourceName|source_details}}</nowiki>}}
</noinclude><includeonly>s{{{SourceName|}}}s{{#if: {{{SourceName|}}}|
+
</noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{{2|}}}| [[sourced from::{{{2|}}}]] ([{{{1|}}} Link])| [{{{1|}}} Link]}} {{#if: {{{3|}}}|({{{3}}})|}}|{{#if: {{{2|}}}| [[sourced from::{{{2|}}}]] {{#if: {{{3|}}}|({{{3}}})|}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}</includeonly>
{{#if: {{{SourceURL|}}}| [[{{{SourceURL}}} {{{SourceName|}}}]]|{{{SourceName|}}}|}}} {{{SourceDetail|}}}
 
|{{#if: {{{Source|}}}|{{{Source|}}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}</includeonly>
 

Latest revision as of 16:34, 26 September 2014

Used to show the source of a document. If SourceName is present, it adds a property:sourced from statement.
The parameters are as described in the parent template template:DocProv.

Usage:

{{DisplaySource|source_URL|SourceName|source_details}}