From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
English • ‎italiano • ‎日本語 • ‎中文
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status beta

ImplementationTemplate:Extension#type Special page, Search, Data extraction, Page action
DescriptionTemplate:Extension#description Creates pages for scholarly paper results
Author(s)Template:Extension#username Alessandra Bilardi (Bilarditalk)
Latest versionTemplate:Extension#version 0.1 (13 October 2009(2009-10-13))
MediaWikiTemplate:Extension#mediawiki 1.14+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download v0.1
  • $wgAddPaperTemplateName
  • $wgAddPaperCacheDir

Translate the AddPaper extension if it is available at translatewiki.net

Check usage and version matrix.

The AddPaper extension provides a special page that creates pages about paper data online results. Special:AddPaper is a simple form that takes the ID type and one or more paper IDs (monospaced). The extension searches paper ID data online and adds one page for each paper ID (with a template).

This extension was developed to create specific pages with DPL queries about certain papers.

It currently only supports PubMed papers with ID type PMID.


In LocalSettings.php add the following code:

// add AddPaper
$wgAddPaperTemplateName = 'Paper'; #optional: default name is Paper 
$wgAddPaperCacheDir = '/tmp/file/directory';


You would like add a paper, PMID:17381884. So you open Special:AddPaper, select the PMID ID type, enter ID 17381884, then click Add Paper. The extension creates a page with title 17381884 and content:

 |authors=Vida VL, Angelini A, Ausoni S, Bilardi A, Ori C, Vlassich F,
 Zoso V, Milanesi O, Sartore S, della Barbera M, Zaglia T, Thiene G, Stellin G, 
 |title=Age is a risk factor for maladaptive changes in rats exposed to
 increased pressure loading of the right ventricular myocardium.
 |journal=Cardiol Young

Following is a simple template to look paper data (copy, paste and delete all newline):

 | {{#if: {{{notauthors|}}}| {{!}} {{{notauthors|}}}. | 
 {{#if: {{#explode:{{{authors}}}|,|4}}| {{!}}{{#explode:{{{authors}}}|,|0}}, 
 {{#explode:{{{authors}}}|,|1}}, {{#explode:{{{authors}}}|,|2}}, ''et al.'' | 
 {{#if: {{{authors|}}}| {{!}} {{{authors}}}. }} }} }} 
 {{#if: {{{year|}}}| ({{{year}}}) }} 
 {{#if: {{{title|}}}| ''{{{title}}}'' }} 
 {{#if: {{{journal|}}}| '''{{{journal}}}'''. }}  
 {{#if: {{{volume|}}}| {{{volume}}}{{#if: {{{issue|}}}| ({{{issue}}})}}
 {{#if: {{{pages|}}}|{{Colon}}{{{pages}}}.}}}} 
 {{#if: {{{pmid|}}}| [[pubmed:{{{pmid}}}|Pubmed]]. }}