Difference between revisions of "Template:DisplaySource"

From Wikispooks
Jump to navigation Jump to search
(Support URL-less sources as long as they are not nameless)
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: {{{2|}}}|{{#if: {{{2|}}}| [{{{2}}} {{{3|}}}]|{{{3|}}}|}} {{{4|}}}|{{#if: {{{1|}}}|{{{1|}}}|{{#if: {{{3|}}}| {{{3}}} {{{4|}}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}}}</includeonly>
+
</noinclude><includeonly>{{#if: {{{2|}}}|{{#if: {{{2|}}}| [{{{2}}} {{{3|}}}]|{{{3|}}}|}} ({{{4|}}})|{{#if: {{{1|}}}|{{{1|}}}|{{#if: {{{3|}}}| {{{3}}} ({{{4|}}})|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}}}</includeonly>

Revision as of 07:36, 3 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}}