Difference between revisions of "Template:Reference"

From SWEBOK
Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{reference
 
{{reference
 +
|number=
 
|author=
 
|author=
 
|article=
 
|article=
 
|publication=
 
|publication=
 +
|edition=
 
|publisher=
 
|publisher=
 
|issue=
 
|issue=
Line 16: Line 18:
 
{{#cargo_declare:
 
{{#cargo_declare:
 
_table=references
 
_table=references
 +
|number=Integer
 
|author=Text
 
|author=Text
 
|article=Text
 
|article=Text
 
|publication=Text
 
|publication=Text
 +
|edition=Text
 
|publisher=Text
 
|publisher=Text
 
|issue=Text
 
|issue=Text
Line 24: 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>
{{#if:{{{author|}}}|{{{author}}},X}}{{#if:{{{article|}}}|Y"{{{article}}}," }}{{#if:{{{publication|}}}| ''{{{publication}}}''}}{{#if:{{{publisher|}}}|, {{{publisher}}}}}{{#if:{{{issue|}}}|, {{{issue}}}}}{{#if:{{{date|}}}|, {{{date}}}}}{{#if:{{{part|}}}|, {{{part}}}}}{{#if:{{{link|}}}| {{{link}}}}}.{{#cargo_store:
+
{{#cargo_store:
 
_table=references
 
_table=references
 +
|number={{{number|}}}
 
|author={{{author|}}}
 
|author={{{author|}}}
 
|article={{{article|}}}
 
|article={{{article|}}}
 
|publication={{{publication|}}}
 
|publication={{{publication|}}}
 +
|edition={{{edition|}}}
 +
|publisher={{{publisher|}}}
 
|issue={{{issue|}}}
 
|issue={{{issue|}}}
 
|date={{{date|}}}
 
|date={{{date|}}}
 
|part={{{part|}}}
 
|part={{{part|}}}
|link={{{link|}}}}}</includeonly>
+
|link={{{link|}}}
 +
|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}}}}}|,|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.