Difference between revisions of "Template:DisplaySource"

From Wikispooks
Jump to navigation Jump to search
(Support new format)
Line 4: Line 4:
 
Usage:<br/>
 
Usage:<br/>
 
:{{t|<nowiki>{{DisplaySource|Source|SourceURL|SourceName|SourceDetail}}</nowiki>}}
 
:{{t|<nowiki>{{DisplaySource|Source|SourceURL|SourceName|SourceDetail}}</nowiki>}}
</noinclude><includeonly>{{#if: {{{Source|}}}|{{{Source|}}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}</includeonly>
+
</noinclude><includeonly>{{#if: {{{SourceName|}}}|
 +
{{#if: {{{SourceURL|}}}| [[{{{SourceURL}}} {{{SourceName|}}}]]|{{{SourceName|}}}|}}} {{{SourceDetail|}}}
 +
|{{#if: {{{Source|}}}|{{{Source|}}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}</includeonly>

Revision as of 04:10, 2 December 2013

Used to show the source of a document.
The parameters are as described in the parent template template:DocProv.

Usage:

{{DisplaySource|Source|SourceURL|SourceName|SourceDetail}}