Template:LiteratureDB

From Pestinfo-Wiki
Jump to: navigation, search

The template produces a box on the upper left side of a page for a pest, disease or weed with links to options of querying the literature database. The box has the heading "Literature database" and the subheading "articles sorted by:". The template is called as:

{{LiteratureDB|{{PAGENAME}}|<options>}}

The following links are automatically included:

  1. A link to the query form "QueryPestRecent" with the caption "year (recent ones first)".
  2. A link to "Bibliography:{{PAGENAME}}" with the caption "research topics".
  3. A link to "Bibliography:{{PAGENAME}} (countries)" with the caption "countries/regions".

With the parameter "options" the box can be modified to add additional links or omit a link. Include one or more of the following words in this parameter, separated by commas:

  • browse displays a link to the drilldown system with a filter for the respective pest/disease/weed and the caption "Browse database" - This is currently an external link, but should be converted to an internal link if possible.
  • nocountries does not display the above link to the page "Bibliography:{{PAGENAME}} (countries)" (for pests without country records or which are found only in one country).
  • crops displays a link to the page "Bibliography:{{PAGENAME}} (crops)" with the caption "host plants".
  • affectedC - for weeds, displays a link to the page "Bibliography:{{PAGENAME}} (crops)" with the caption "affected crops".
  • products displays a link to the page "Bibliography:{{PAGENAME}} (crops)" with the caption "products infested".
  • benefialsN displays a link to the page "Bibliography:{{PAGENAME}} (beneficials)" with the caption "list of natural enemies".
  • benefialsA displays a link to the page "Bibliography:{{PAGENAME}} (beneficials)" with the caption "list of antagonists".

Note (November 2011)
After upgrading to MediaWiki 1.18alpha the Sematic Drilldown extension (version 0.8.3) no longer works and was excluded from the literature db box. The script at the end of the template was:

{{#if:{{#pos:{{{2}}}|benefialsA}}|<tr>
   <td>• [[Bibliography:{{{1}}} (beneficials)|Sorted by antagonists]]</td>
</tr>}}
{{#if:{{#pos:{{{2}}}|browse}}|<tr>
   <td>• [http://wiki.pestinfo.org/wiki/Special:BrowseData/Publications?Publication_on_pest={{urlencode:{{{1}}}}} Browse database]</td>
</tr>}}</table></includeonly>

which has been changed to:

{{#if:{{#pos:{{{2}}}|benefialsA}}|<tr>
   <td>• [[Bibliography:{{{1}}} (beneficials)|Sorted by antagonists]]</td>
</tr>}}
</table></includeonly>

The Drilldown function is basically very useful and should be reinstalled in some way.
(1.11.2015)