Difference between revisions of "Template:Reference"

From SWEBOK
Jump to: navigation, search
(Created page with "<noinclude> This is the "{{PAGENAME}}" template. It should be called in the following format: <pre> {{reference |author= |article= |publication= |issue= |date= |part= |link= }...")
 
 
(20 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=
 
|issue=
 
|issue=
 
|date=
 
|date=
Line 15: 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
 
|issue=Text
 
|issue=Text
 
|date=Text
 
|date=Text
 
|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|}}}|"{{{article}}}," }}{{#if:{{{publication|}}}|''{{{publication}}}'', }}{{#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.