Difference between revisions of "Template:Reference"

From SWEBOK
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
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>
{{#if:{{{author|}}}|{{{author}}},}}{{#if:{{{article|}}}|&#32;"{{{article}}},"
+
{{#cargo_store:
}}{{#if:{{{publication|}}}|&#32;''{{{publication}}}''}}{{#if:{{{edition|}}}|,&#32;{{{edition}}}}}{{#if:{{{publisher|}}}|,&#32;{{{publisher}}}}}{{#if:{{{issue|}}}|,&#32;{{{issue}}}}}{{#if:{{{date|}}}|,&#32;{{{date}}}}}{{#if:{{{part|}}}|,&#32;{{{part}}}}}{{#if:{{{link|}}}|&#32;{{{link}}}}}.{{#cargo_store:
+
 
_table=references
 
_table=references
 +
|number={{{number|}}}
 
|author={{{author|}}}
 
|author={{{author|}}}
 
|article={{{article|}}}
 
|article={{{article|}}}
Line 40: Line 43:
 
|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.