Difference between revisions of "Template:Reference"
From SWEBOK
(Trying #arraymap) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 34: | Line 34: | ||
{{#cargo_store: | {{#cargo_store: | ||
_table=references | _table=references | ||
| + | |number={{{number|}}} | ||
|author={{{author|}}} | |author={{{author|}}} | ||
|article={{{article|}}} | |article={{{article|}}} | ||
| Line 44: | Line 45: | ||
|link={{{link|}}} | |link={{{link|}}} | ||
|reftext={{#arraymap:{{#if:{{{author|}}}|{{{author}}},}}{{#if:{{{article|}}}|"{{{article}}}", | |reftext={{#arraymap:{{#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 | + | }}{{#if:{{{publication|}}}|''{{{publication}}}'',}}{{#if:{{{edition|}}}|{{{edition}}},}}{{#if:{{{publisher|}}}|{{{publisher}}},}}{{#if:{{{issue|}}}|{{{issue}}},}}{{#if:{{{date|}}}|{{{date}}},}}{{#if:{{{part|}}}|{{{part}}},}}{{#if:{{{link|}}}|{{{link}}}}}|,|x|x}}.}}</includeonly> |
Latest revision as of 19:52, 26 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.