Difference between revisions of "Template:DisplaySource"

From Wikispooks
Jump to navigation Jump to search
(Add "sourced from" property)
m (fix)
Line 4: Line 4:
 
Usage:<br/>
 
Usage:<br/>
 
:{{t|<nowiki>{{DisplaySource|SourceURL|SourceName|SourceDetail}}</nowiki>}}
 
:{{t|<nowiki>{{DisplaySource|SourceURL|SourceName|SourceDetail}}</nowiki>}}
</noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{{2|}}}| [[sourced from::[{{{1}}} {{{2|}}}]]]| [{{{1|}}} {{{1|}}}]}} {{#if: {{{3|}}}|({{{3}}})|}}|{{#if: {{{2|}}}| {{{2}}} {{#if: {{{3|}}}|({{{3}}})|}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}</includeonly>
+
</noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{{2|}}}| [{{{1}}} [[sourced from::{{{2|}}}]]]| [{{{1|}}} {{{1|}}}]}} {{#if: {{{3|}}}|({{{3}}})|}}|{{#if: {{{2|}}}| {{{2}}} {{#if: {{{3|}}}|({{{3}}})|}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}}}</includeonly>

Revision as of 17:23, 16 December 2013

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|SourceURL|SourceName|SourceDetail}}