Template:CZMed: Difference between revisions
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. | ||
*{{ | *{{ #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]]). | ||
<!-- | |||
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> | |||
--> | |||
< | *''[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]]). | ||
{{ | |||
<!-- | *{{ | ||
</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 03:19, 2 June 2009
The most up-to-date information about this and other drugs can be found at the following sites.
- CZMed - FDA approved drug information (drug label) from DailyMed (U.S. National Library of Medicine).
- CZMed - Drug information for patients from MedMaster (U.S. National Library of Medicine).
This template creates links to DailyMed, MedMaster, and DrugBank.
Usage
The template takes three optional paramenters :
- The name of the drug. If this is not set, the name of the page will be used instead.
- The DailyMed ID for the drug. If this is not set, the link will search DailyMed for the drug name.
- The MedMaster ID for the drug. If this is not set, the link will search MedMaster for the drug name.
Examples
Coming soon...