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: {{{SourceName|}}}|
+
</noinclude><includeonly>s{{{SourceName|}}}s{{#if: {{{SourceName|}}}|
 
{{#if: {{{SourceURL|}}}| [[{{{SourceURL}}} {{{SourceName|}}}]]|{{{SourceName|}}}|}}} {{{SourceDetail|}}}
 
{{#if: {{{SourceURL|}}}| [[{{{SourceURL}}} {{{SourceName|}}}]]|{{{SourceName|}}}|}}} {{{SourceDetail|}}}
 
|{{#if: {{{Source|}}}|{{{Source|}}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}</includeonly>
 
|{{#if: {{{Source|}}}|{{{Source|}}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}</includeonly>

Revision as of 04:13, 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}}