Difference between revisions of "Template:Reference"
From SWEBOK
| Line 4: | Line 4: | ||
<pre> | <pre> | ||
{{reference | {{reference | ||
| + | |number= | ||
|author= | |author= | ||
|article= | |article= | ||
| Line 17: | Line 18: | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table=references | _table=references | ||
| + | |number=Integer | ||
|author=Text | |author=Text | ||
|article=Text | |article=Text | ||
| Line 26: | Line 28: | ||
|part=Text | |part=Text | ||
|link=Text | |link=Text | ||
| + | |reftext=Wikitext | ||
}} | }} | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
| − | + | {{#cargo_store: | |
| − | + | ||
_table=references | _table=references | ||
|author={{{author|}}} | |author={{{author|}}} | ||
| Line 40: | Line 42: | ||
|date={{{date|}}} | |date={{{date|}}} | ||
|part={{{part|}}} | |part={{{part|}}} | ||
| − | |link={{{link|}}}}}</includeonly> | + | |link={{{link|}}} |
| + | |reftext={{#if:{{{author|}}}|{{{author}}},}}{{#if:{{{article|}}}| "{{{article}}}," | ||
| + | }}{{#if:{{{publication|}}}| ''{{{publication}}}''}}{{#if:{{{edition|}}}|, {{{edition}}}}}{{#if:{{{publisher|}}}|, {{{publisher}}}}}{{#if:{{{issue|}}}|, {{{issue}}}}}{{#if:{{{date|}}}|, {{{date}}}}}{{#if:{{{part|}}}|, {{{part}}}}}{{#if:{{{link|}}}| {{{link}}}}}.}}</includeonly> | ||
Revision as of 03:18, 15 July 2015
This is the "Reference" template. It should be called in the following format:
{{reference
|number=
|author=
|article=
|publication=
|edition=
|publisher=
|issue=
|date=
|part=
|link=
}}
This template defines the table "references". View table. Edit the page to see the template text.