Difference between revisions of "Template:Reference"

From SWEBOK
Jump to: navigation, search
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
 
|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|}}}|&#32;"{{{article}}},"
 +
}}{{#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}}}}}.}}</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.