Difference between revisions of "Template:MakeRef"

From Wikispooks
Jump to navigation Jump to search
(testing)
(No <ref> tag)
Line 3: Line 3:
 
* source_URL (recommended!)
 
* source_URL (recommended!)
 
* source_details</noinclude><includeonly>
 
* source_details</noinclude><includeonly>
{{#if: {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}|<<nowiki/>ref>
+
{{#if: {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}|{{#if: {{{source_URL|}}}|{{#if: x{{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_name|}}}}}|{{{source_name|}}}}} {{{source_details|}}}|{{cn}}}}</includeonly>
 
 
{{{source_name|}}}=source_name
 
{{{source_URL|}}}=source_URL
 
{{{source_details|}}}=source_details
 
{{#if: {{{source_URL|}}}|{{#if: x{{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_name|}}}}}|{{{source_name|}}}}} {{{source_details|}}}</<nowiki/>ref>|{{cn}}}}</includeonly>
 

Revision as of 15:36, 11 September 2016

This is used by Template:SMWQ. It makes a reference out of the following params, each of which is optional:

  • source_name
  • source_URL (recommended!)
  • source_details