Difference between revisions of "Template:Reference"

From SEQwiki
Jump to: navigation, search
(I was trying to set up a call to the pubmed 'tag' within the template based on the {{PAGENAME}} magic word, but you cant call tags with magic words! Is there a parser function version... no.)
(chg)
 
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>This is the 'Reference' template. It should be called by the [[Form:Reference|Reference Form]].
This is the 'Reference' template. It should be called by the [[Form:Reference|Reference Form]].
+
 
 +
 
 +
[[Category:System template|R]]
  
 
== Template code ==
 
== Template code ==
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| class="wikitable"
+
This reference describes
! pmid
+
{{#arraymap:{{{reference describes|}}}|,|x|<big>[[Reference describes::x]]</big>}}.
| [[pubmed id::{{{pmid|}}}]]
+
 
 +
{| {{Table style/wikitable}}
 +
! PMID
 +
| {{#if: {{{pmid|}}} | PMID {{{pmid}}} {{#set: pubmed id = {{{pmid}}} }} | Please provide a PMID! }}
 
|-
 
|-
! title
+
! Title
 
| [[Title::{{{title|}}}]]
 
| [[Title::{{{title|}}}]]
 
|-
 
|-
! year
+
! Year
 
| [[Year::{{{year|}}}]]
 
| [[Year::{{{year|}}}]]
 
|-
 
|-
! journal
+
! Journal
 
| [[Journal::{{{journal|}}}]]
 
| [[Journal::{{{journal|}}}]]
 
|-
 
|-
! author
+
! Author
| {{#arraymap:{{{author|}}}|,|x|[[Author::x]]}}
+
| {{#arraymap: {{{author|}}} |, |@@@@ |[[Has author::@@@@]] }}
 
|-
 
|-
! vol
+
! Volume
 
| [[Volume::{{{vol|}}}]]
 
| [[Volume::{{{vol|}}}]]
|}
+
|-
 +
! Start page
 +
| [[Start page::{{{start page|}}}]]
 +
|}  
  
This reference describes the following bioinformatics application:
+
<!-- Remote citation count lookup -->
* [[Reference describes::{{{reference describes}}}]].
+
{{ Citation lookup | pmid = {{{pmid|}}} | title = {{{title|}}} }}
 +
{{ Altmetric lookup | pmid = {{{pmid|}}} }}
  
 +
{{#default_form:Reference}}
 +
[[Category:Reference]]
  
[[Category:Reference]]
+
<H2>Full text description</H2>
 
</includeonly>
 
</includeonly>

Latest revision as of 23:41, 15 July 2019

This is the 'Reference' template. It should be called by the Reference Form.

Template code