Difference between revisions of "Template:MakeRef"
Jump to navigation
Jump to search
(use the #tag to make a proper reference) |
|||
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/> | ||
− | * source_name | + | * ref_name (optional, only useful if the page featured multiple references) |
− | * source_URL (recommended | + | * source_name (recommended) |
− | * source_details</noinclude><includeonly>{{#if: {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}|{{#if: {{{source_URL|}}}|{{#if: {{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_URL|}}}}}|{{LinkIfExists|{{{source_name|}}}}}}} {{{source_details|}}}|{{cn}}}}</includeonly> | + | * source_URL (recommended) |
+ | * source_details</noinclude><includeonly>{{#if: {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}|{{#tag:ref|name={{{ref_name|}}}|content={{#if: {{{source_URL|}}}|{{#if: {{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_URL|}}}}}|{{LinkIfExists|{{{source_name|}}}}}}} {{{source_details|}}}}}|{{cn}}}}</includeonly> |
Revision as of 03:06, 26 October 2016
This is used by Template:SMWQ. It makes a reference out of the following params, each of which is optional:
- ref_name (optional, only useful if the page featured multiple references)
- source_name (recommended)
- source_URL (recommended)
- source_details