Difference between revisions of "Template:Drugs.com"
Jump to navigation
Jump to search
imported>AGK m (Protected Template:Drugs.com: Highly-visible template (between 1900 and 4000 transclusions) ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite))) |
imported>Anypodetos (sfx, pregnancy, interactions; alpha sort) |
||
| Line 1: | Line 1: | ||
<span class="reflink plainlinks nourlexpansion">{{#switch: {{{1}}} | <span class="reflink plainlinks nourlexpansion">{{#switch: {{{1}}} | ||
| − | | | + | | parent = [http://www.drugs.com/{{#if:1|{{{2}}}}}.html entry] |
| + | | CDI = [http://www.drugs.com/cdi/{{#if:1|{{{2}}}}}.html Consumer Drug Information] | ||
| CONS = [http://www.drugs.com/cons/{{#if:1|{{{2}}}}}.html Micromedex Detailed Consumer Information] | | CONS = [http://www.drugs.com/cons/{{#if:1|{{{2}}}}}.html Micromedex Detailed Consumer Information] | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| drug-class= [http://www.drugs.com/drug-class/{{#if:1|{{{2}}}}}.html Drug Classes] | | drug-class= [http://www.drugs.com/drug-class/{{#if:1|{{{2}}}}}.html Drug Classes] | ||
| + | | drug-interactions = [http://www.drugs.com/drug-interactions/{{#if:1|{{{2}}}}}.html Drug Interactions] | ||
| enc = [http://www.drugs.com/enc/{{#if:1|{{{2}}}}}.html Medical Encyclopedia] | | enc = [http://www.drugs.com/enc/{{#if:1|{{{2}}}}}.html Medical Encyclopedia] | ||
| + | | international = [http://www.drugs.com/international/{{#if:1|{{{2}}}}}.html International Drug Names] | ||
| + | | monograph = [http://www.drugs.com/monograph/{{#if:1|{{{2}}}}}.html monograph] | ||
| + | | MTM = [http://www.drugs.com/mtm/{{#if:1|{{{2}}}}}.html Multum Consumer Information] | ||
| npp = [http://www.drugs.com/npp/{{#if:1|{{{2}}}}}.html MedFacts Natural Products] | | npp = [http://www.drugs.com/npp/{{#if:1|{{{2}}}}}.html MedFacts Natural Products] | ||
| + | | pregnancy = [http://www.drugs.com/pregnancy/{{#if:1|{{{2}}}}}.html Use During Pregnancy and Breastfeeding] | ||
| + | | pro = [http://www.drugs.com/pro/{{#if:1|{{{2}}}}}.html FDA Professional Drug Information] | ||
| + | | sfx = [http://www.drugs.com/sfx/{{#if:1|{{{2}}}}}.html Side Effects] | ||
| UK = [http://www.drugs.com/uk/{{#if:1|{{{2}}}}}.html UK Drug Information] | | UK = [http://www.drugs.com/uk/{{#if:1|{{{2}}}}}.html UK Drug Information] | ||
}}</span><noinclude><!-- Note: {{#if:1| {{{2}}} }} is almost the same as {{{2}}} except that {{#if:1| {{{2}}} }} will strip any leading and trailing whitespace --> | }}</span><noinclude><!-- Note: {{#if:1| {{{2}}} }} is almost the same as {{{2}}} except that {{#if:1| {{{2}}} }} will strip any leading and trailing whitespace --> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 09:28, 26 January 2014
| This template is intended for external links. It is not designed for use as a citation template for reliable sources. It should be used in conformance with the external links guideline and with the relevant section of the Manual of Style. |
This template provides a simple external link to drug articles in the drugs.com website.
The template is commonly used in {{Infobox drug}} like:
|drugs.com={{Drugs.com|parent|lisinopril}}→ entry
Usage
The template takes two parameters. The first is the drug subsection of the Drugs.com website which is selected from the list below. The second parameter is the drug name, most commonly the INN but sometimes a trade name.
- Examples
- new: {{Drugs.com/sitemap}}
| Template:drugs.com options (see also drugs.com/sitemap) | ||||
|---|---|---|---|---|
| Section code |
Returned link | Root link |
Example drug | Template |
| none; defaults to parent page | entry (parent page) | https://www.drugs.com/ | lisinopril | {{Drugs.com|parent|lisinopril}} {{Drugs.com| |lisinopril}} |
| cdi | https://www.drugs.com/cdi/ | pravastatin | {{Drugs.com|cdi| pravastatin}} | |
| cons | https://www.drugs.com/cons/ | benzyl benzoate | {{Drugs.com|cons| benzyl-benzoate-topical}} | |
| mtm | https://www.drugs.com/mtm/ | guanadrel | {{Drugs.com|mtm| guanadrel}} | |
| pro | FDA Professional Drug Information | https://www.drugs.com/pro/ | edrophonium | {{Drugs.com|pro| enlon}} |
| ppa | https://www.drugs.com/ppa/ | calci.../betameth... dipro... | {{Drugs.com|ppa| calcipotriene-betamethasone-dipropionate}} | |
| drug-class | Drug Classes | https://www.drugs.com/drug-class/ | ACE inhibitor | {{Drugs.com|drug-class |angiotensin-converting-enzyme-inhibitors}} |
| enc | Medical Encyclopedia | https://www.drugs.com/enc/ | vitamin K | {{Drugs.com|enc| vitamin-k}} |
| drug-interactions | Drug Interactions | https://www.drugs.com/drug-interactions/ | ofloxacin | {{Drugs.com|drug-interactions| ofloxacin}} |
| monograph | monograph | https://www.drugs.com/monograph/ | lisinopril | {{Drugs.com|monograph| lisinopril}} |
| npp | MedFacts Natural Products | https://www.drugs.com/npp/ | vitamin D | {{Drugs.com|npp| vitamin-d}} |
| pregnancy | Use During Pregnancy and Breastfeeding | https://www.drugs.com/pregnancy/ | sofosbuvir | {{Drugs.com|pregnancy| sofosbuvir}} |
| international | International Drug Names | https://www.drugs.com/international/ | sertindole | {{Drugs.com|international| sertindole}} |
| sfx | Side Effects | https://www.drugs.com/sfx/ | paracetamol | {{Drugs.com|sfx| paracetamol}} |
| UK | UK Drug Information | https://www.drugs.com/uk/ | OsvaRen | {{Drugs.com|UK| osvaren-435-mg-235-mg-film-coated-tablets-spc-9688}} (!) |
| vet | https://www.drugs.com/vet/ | hetacillin | {{Drugs.com|vet| hetacin-k-intramammary-infusion}} | |
| mmx | https://www.drugs.com/mmx/ | etretinate | {{Drugs.com|mmx| etretinate}} | |
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Drugs.com
Template provides a formatted external link to website Drugs.com
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| webpage type | 1 | Subpage type of Drugs.com
| String | suggested |
| drug name | 2 | drug name that identifies the subpage | String | optional |
See also
- {{Infobox drug}} -- uses this as input parameter
| The above documentation is transcluded from Template:Drugs.com/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |