Difference between revisions of "Template:MakeRef"
Jump to navigation
Jump to search
(unique name) |
|||
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/> | ||
* {{t|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) | ||
− | * {{t|source_name}} (recommended) | + | * {{t|source_name}} (recommended) - If this is a page name, it will link to that page |
* {{t|source_URL}} (recommended) | * {{t|source_URL}} (recommended) | ||
* {{t|source_details}} | * {{t|source_details}} | ||
Line 9: | Line 9: | ||
Make a unique ref, and name it "ref_name" if that param is also given | Make a unique ref, and name it "ref_name" if that param is also given | ||
− | --> {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}|{{#tag:ref|{{#if: {{{source_URL|}}}|{{#if: {{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_URL|}}}}}|{{LinkIfExists|{{{source_name|}}}}}}}{{{source_name}}}{{{source_details|}}}|name={{{ref_name|}}}}}|<!-- | + | --> {{{source_URL|}}}{{{source_name|}}}{{{source_details|}}}|{{#tag:ref|{{#if: {{{source_URL|}}}|{{#if: {{{source_name|}}}|[{{{source_URL|}}} {{{source_name|}}}]|{{{source_URL|}}}}}|{{LinkIfExists|{{{source_name|}}}}}}}{{{source_name}}}{{{source_details|}}}|name={{{ref_name|{{{source_name|}}}{{{source_URL|}}}{{{source_details|}}}}}}}}|<!-- |
ref_name : | ref_name : |
Revision as of 11:32, 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) - If this is a page name, it will link to that page
- source_URL (recommended)
- source_details
Note that at least one of these parameters is required, or the template cannot make a unique reference.