MedTemplate: Difference between revisions
Template page
More actions
MDElliottMD (talk | contribs) some restructuring |
MDElliottMD (talk | contribs) No edit summary |
||
| Line 4: | Line 4: | ||
<tr><th colspan="2" style="background:#2563eb; color:#fff; padding:0.4em; text-align:left;">Summary</th></tr> | <tr><th colspan="2" style="background:#2563eb; color:#fff; padding:0.4em; text-align:left;">Summary</th></tr> | ||
{{#if:{{{brand|}}}|<tr><th style="text-align:left; width:9em;">Brand name(s)</th><td>{{{brand}}}</td></tr>}} | {{#if:{{{brand|}}}|<tr><th style="text-align:left; width:9em;">Brand name(s)</th><td>{{{brand}}}</td></tr>}} | ||
{{#if:{{{ | {{#if:{{{classes|}}}|<tr><th style="text-align:left;">Classes</th><td>{{{classes}}}</td></tr>}} | ||
{{#if:{{{mechanism|}}}|<tr><th style="text-align:left;">Mechanism</th><td>{{{mechanism}}}</td></tr>}} | {{#if:{{{mechanism|}}}|<tr><th style="text-align:left;">Mechanism</th><td>{{{mechanism}}}</td></tr>}} | ||
{{#if:{{{uses|}}}|<tr><th style="text-align:left;">Common uses</th><td>{{{uses}}}</td></tr>}} | {{#if:{{{uses|}}}|<tr><th style="text-align:left;">Common uses</th><td>{{{uses}}}</td></tr>}} | ||
| Line 20: | Line 20: | ||
| Has generic name = {{{generic|}}} | | Has generic name = {{{generic|}}} | ||
| Has brand name = {{{brand|}}} | | Has brand name = {{{brand|}}} | ||
| Has | | Has classes = {{{classes|}}} | ||
| Has mechanism = {{{mechanism|}}} | | Has mechanism = {{{mechanism|}}} | ||
| Has formula = {{{formula|}}} | | Has formula = {{{formula|}}} | ||
| Line 55: | Line 55: | ||
| brand = | | brand = | ||
| structure = | | structure = | ||
| | | classes = | ||
| mechanism = | | mechanism = | ||
| uses = | | uses = | ||
| Line 92: | Line 92: | ||
"structure": { "label": "Structure image", "description": "Filename only, no 'File:' prefix.", "type": "wiki-file-name" }, | "structure": { "label": "Structure image", "description": "Filename only, no 'File:' prefix.", "type": "wiki-file-name" }, | ||
"structuresize": { "label": "Structure size", "type": "string", "default": "240px" }, | "structuresize": { "label": "Structure size", "type": "string", "default": "240px" }, | ||
" | "classes": { "label": "Classes", "description": "Comma-separated if more than one (e.g. NSAID, Antiplatelet).", "type": "string" }, | ||
"mechanism": { "label": "Mechanism (1 line)","description": "Expand in 'Pharmacodynamics' body section.", "type": "string" }, | "mechanism": { "label": "Mechanism (1 line)","description": "Expand in 'Pharmacodynamics' body section.", "type": "string" }, | ||
"uses": { "label": "Common uses", "type": "string" }, | "uses": { "label": "Common uses", "type": "string" }, | ||