Template:CZMed: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
mNo edit summary
imported>Robert Badgett
(Undo revision 100730143 by Robert Badgett (Talk))
 
(6 intermediate revisions by 2 users not shown)
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 {{{1|{{BASEPAGENAME}}}}} 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:
DailyMed
http://meta.wikimedia.org/wiki/Help:ParserFunctions
-->
http://en.wikipedia.org/wiki/Help:Template
*{{#if:{{{2|}}}
Test:
| ''[http://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?id={{{2}}} {{{1}}}]''
<nowiki>{{ #if:  {{{2|}}} | Parameter is defined and not the empty string. | Parameter is undefined, or empty  }}</nowiki>
| ''[http://dailymed.nlm.nih.gov/dailymed/search.cfm?startswith={{urlencode:{{{1|{{BASEPAGENAME}}}}}}} {{{1|{{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
-->
-->
*''[http://vsearch.nlm.nih.gov/vivisimo/cgi-bin/query-meta?&v:project=medlineplus&binning-state=group%3d%3dDrugs%20and%20Supplements&query={{urlencode:{{{1|{{BASEPAGENAME}}}}}}} {{{1|{{BASEPAGENAME}}}}}]'' - Drug information for consumers from [http://www.nlm.nih.gov/medlineplus/druginformation.html MedlinePlus] (U.S. [[National Library of Medicine]]).<!--


*''[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]]).


*{{
DrugBank
#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>
-->
-->
*{{#if:{{{3|}}}
| ''[http://www.drugbank.ca/cgi-bin/webglimpse.cgi?cname=ON&sname=ON&query={{urlencode:{{{3}}}}} {{{1|{{BASEPAGENAME}}}}}]''
| ''[http://www.drugbank.ca/cgi-bin/webglimpse.cgi?cname=ON&sname=ON&query={{urlencode:{{{1|{{BASEPAGENAME}}}}}}} {{{1|{{BASEPAGENAME}}}}}]''
}} - Detailed information from [http://www.drugbank.ca DrugBank].<!--


Drugstore.com
ADD THIS WHEN OTHER SOURCES ARE AVAILABLE. SEE DISCUSSION FOR THIS PAGE.
*{{#if:{{{3|}}}
| ''[http://www.drugstore.com/pharmacy/drugindex/rxsearch.asp?search={{urlencode:{{{3}}}}} {{{1|{{BASEPAGENAME}}}}}]''
| ''[http://www.drugstore.com/pharmacy/drugindex/rxsearch.asp?search={{urlencode:{{{1|{{BASEPAGENAME}}}}}}} {{{1|{{BASEPAGENAME}}}}}]''
}} - Representative costs ([[United States of America|United States]]) from [http://www.drugstore.com Drugstore.com].
-->
<noinclude>{{TlDoc}}</noinclude>
<noinclude>{{TlDoc}}</noinclude>

Latest revision as of 10:31, 8 November 2010

The most up-to-date information about CZMed 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...