Difference between revisions of "Template:MakeRef"

From Wikispooks
Jump to navigation Jump to search
(Now needs only one of source_* to make a unique <ref>.)
Line 1: Line 1:
 
<noinclude>[[Category:Templates]]'''This is used by [[Template:SMWQ]]. It makes a reference out of the following params, each of which is optional:'''<br/>
 
<noinclude>[[Category:Templates]]'''This is used by [[Template:SMWQ]]. It makes a reference out of the following params, each of which is optional:'''<br/>
* {{tt|ref_name}} (only useful if the page featured multiple references from this source)
+
* {{t|ref_name}} (only useful if the page featured multiple references from this source)
* {{tt|source_name}} (recommended)
+
* {{t|source_name}} (recommended)
* {{tt|source_URL}} (recommended)
+
* {{t|source_URL}} (recommended)
* {{tt|source_details}}</noinclude><includeonly>{{#if: {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}{{{ref_name|}}}|{{#tag:ref|{{#if: {{{source_URL|}}}|{{#if: {{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_URL|}}}}}|{{LinkIfExists|{{{source_name|}}}}}}} {{{source_details|}}}|name={{{ref_name|}}}}}|{{cn}}}}</includeonly>
+
* {{t|source_details}}</noinclude><includeonly>{{#if: {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}{{{ref_name|}}}|{{#tag:ref|{{#if: {{{source_URL|}}}|{{#if: {{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_URL|}}}}}|{{LinkIfExists|{{{source_name|}}}}}}}{{{source_name}}}{{{source_details|}}}|name={{{ref_name|}}}}}|{{cn}}}}</includeonly>

Revision as of 10:22, 8 December 2017

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

  • ref_name (only useful if the page featured multiple references from this source)
  • source_name (recommended)
  • source_URL (recommended)
  • source_details