Template:CZMed: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
mNo edit summary
imported>Caesar Schinas
No 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 {{{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
Test:
<nowiki>{{ #if:  {{{2|}}} | Parameter is defined and not the empty string. | Parameter is undefined, or empty  }}</nowiki>
-->
-->
*{{#if:{{{2|}}}
| ''[http://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?id={{{2}}} {{{1}}}]''
| ''[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]]).<!--


*''[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]]).
MedMaster
-->
*''[http://www.ncbi.nlm.nih.gov/sites/entrez?db=Books&cmd=Search&doptcmdl=TOCView&referer=Query&term={{urlencode:{{{1|{{BASEPAGENAME}}}}}}}%20AND%20medmaster%5Bbook%5D {{{1|{{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]]).<!--


*{{
 
#if:
DrugBank
|
-->
<!-- Parameter 2 was given -->
*{{#if:{{{3|}}}
<!-- TURNS OUT THAT DRUGBANK IDENTIFIERS WILL TEST AS STRING AS THEY CONTAIN STRING CHARACTERS. BOTH WORK AS SEARCH TERMS
| ''[http://www.drugbank.ca/cgi-bin/webglimpse.cgi?cname=ON&sname=ON&query={{urlencode:{{{3}}}}} {{{1|{{BASEPAGENAME}}}}}]''  
<!-- Testing if parameter 2 is a number -->
| ''[http://www.drugbank.ca/cgi-bin/webglimpse.cgi?cname=ON&sname=ON&query={{urlencode:{{{1|{{BASEPAGENAME}}}}}}} {{{1|{{BASEPAGENAME}}}}}]''  
{{#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].
}} - 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>
<noinclude>{{TlDoc}}</noinclude>

Revision as of 01:26, 3 June 2009

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...