Difference between revisions of "Template:Reference"

From SWEBOK
Jump to: navigation, search
(Trying #arraymap)
Line 43: Line 43:
 
|part={{{part|}}}
 
|part={{{part|}}}
 
|link={{{link|}}}
 
|link={{{link|}}}
|reftext={{#if:{{{author|}}}|{{{author}}},}}{{#if:{{{article|}}}|<nowiki /> "{{{article}}},"
+
|reftext={{#arraymap:{{#if:{{{author|}}}|{{{author}}},}}{{#if:{{{article|}}}|"{{{article}}}",
  }}{{#if:{{{publication|}}}|&#32;''{{{publication}}}''}}{{#if:{{{edition|}}}|,<nowiki /> {{{edition}}}}}{{#if:{{{publisher|}}}|,<nowiki /> {{{publisher}}}}}{{#if:{{{issue|}}}|,<nowiki /> {{{issue}}}}}{{#if:{{{date|}}}|,<nowiki /> {{{date}}}}}{{#if:{{{part|}}}|,<nowiki /> {{{part}}}}}{{#if:{{{link|}}}|<nowiki /> {{{link}}}}}.}}</includeonly>
+
  }}{{#if:{{{publication|}}}|''{{{publication}}}'',}}{{#if:{{{edition|}}}|{{{edition}}},}}{{#if:{{{publisher|}}}|{{{publisher}}},}}{{#if:{{{issue|}}}|{{{issue}}},}}{{#if:{{{date|}}}|{{{date}}},}}{{#if:{{{part|}}}|{{{part}}},}}{{#if:{{{link|}}}|{{{link}}}}}}}|,|x|x}}.</includeonly>

Revision as of 23:19, 21 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.