Template:CZMed: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert Badgett
No edit summary
imported>Caesar Schinas
mNo edit summary
Line 1: Line 1:
The most up-to-date information about this and other drugs can be found at the following sites.
The most up-to-date information about this and other drugs can be found at the following sites.
*{{DailyMed}}
*{{ #if: | ''[http://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?id={{{1}}} {{{1}}}]'' | ''[http://dailymed.nlm.nih.gov/dailymed/search.cfm?startswith={{urlencode:{{BASEPAGENAME}}}} {{BASEPAGENAME}}]''}} - [[Food and Drug Administration | FDA]] approved drug information (drug label) from [http://dailymed.nlm.nih.gov/dailymed/ DailyMed] (U.S. [[National Library of Medicine]]).
*{{MedMaster}}
<!--
*{{DrugBank}}
Documentation:
http://meta.wikimedia.org/wiki/Help:ParserFunctions
http://en.wikipedia.org/wiki/Help:Template
Test:
<nowiki>{{ #if:  {{{2|}}} | Parameter is defined and not the empty string. | Parameter is undefined, or empty  }}</nowiki>
-->


<noinclude>
*''[http://www.ncbi.nlm.nih.gov/sites/entrez?db=Books&cmd=Search&doptcmdl=TOCView&referer=Query&term={{urlencode:{{BASEPAGENAME}}}}%20AND%20medmaster%5Bbook%5D {{BASEPAGENAME}}]'' - Drug information for patients from [http://www.ncbi.nlm.nih.gov/books/bv.fcgi?rid=medmaster.TOC MedMaster] (U.S. [[National Library of Medicine]]).
{{Template:CZMed/doc}}
 
<!-- Add categories and interwikis to the /doc subpage, not here. -->
*{{
</noinclude>
#if:
|
<!-- Parameter 2 was given -->
<!-- TURNS OUT THAT DRUGBANK IDENTIFIERS WILL TEST AS STRING AS THEY CONTAIN STRING CHARACTERS. BOTH WORK AS SEARCH TERMS
<!-- Testing if parameter 2 is a number -->
{{#if: {{#ifexpr: {{{1}}} }}
|
<!-- Parameter 1 is a string -->
''[http://www.drugbank.ca/cgi-bin/webglimpse.cgi?cname=ON&sname=ON&query={{urlencode:{{BASEPAGENAME}}}} {{{1}}}]''
|
<!-- Parameter 1 is a numeric ID -->
''[http://www.drugbank.ca/cgi-bin/getCard.cgi?CARD={{urlencode:{{BASEPAGENAME}}}} {{{1}}}]''
}}
<!-- End of if Parameter 2 was given -->
|
<!-- Parameter 2 was NOT given, so using parameter 1 only -->
<!-- Testing if parameter 1 is a number -->
{{#if: {{#ifexpr: {{BASEPAGENAME}} }}
|
<!-- Parameter 1 is a string -->
''[http://www.drugbank.ca/cgi-bin/webglimpse.cgi?cname=ON&sname=ON&query={{urlencode:{{BASEPAGENAME}}}} {{BASEPAGENAME}}]''
|
<!-- Parameter 1 is a numeric ID -->
''[http://www.drugbank.ca/cgi-bin/getCard.cgi?CARD={{urlencode:{{BASEPAGENAME}}}} {{BASEPAGENAME}}]''
}}
<!-- End if Parameter 2 NOT given -->
}} - Detailed information from [http://www.drugbank.ca DrugBank].
<!--
Documentation:
http://meta.wikimedia.org/wiki/Help:ParserFunctions
http://en.wikipedia.org/wiki/Help:Template
Test:
<nowiki>{{ #if:  {{{2|}}} | Parameter is defined and not the empty string. | Parameter is undefined, or empty  }}</nowiki>
-->
 
<noinclude>{{TlDoc}}</noinclude>

Revision as of 04:19, 2 June 2009

The most up-to-date information about this and other drugs can be found at the following sites.


This documentation is transcluded from Template:CZMed/doc (edit | history)

This template creates links to DailyMed, MedMaster, and DrugBank.

Usage

The template takes three optional paramenters :

  1. The name of the drug. If this is not set, the name of the page will be used instead.
  2. The DailyMed ID for the drug. If this is not set, the link will search DailyMed for the drug name.
  3. The MedMaster ID for the drug. If this is not set, the link will search MedMaster for the drug name.

Examples

Coming soon...