Template:Infobox drug: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Blanked the page)
Tags: Blanking Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
Here is an example of the TemplateData source code for the Infobox drug template:


```
{
    "infobox drug": {
        "label": "Infobox drug",
        "description": "This template is used to display information about a medication.",
        "fields": {
            "drug_name": {
                "label": "Drug name",
                "description": "The name of the drug",
                "type": "string",
                "required": true
            },
            "image": {
                "label": "Image",
                "description": "An image of the drug or its packaging",
                "type": "string",
                "required": false
            },
            "caption": {
                "label": "Caption",
                "description": "A brief caption for the image",
                "type": "string",
                "required": false
            },
            "tradename": {
                "label": "Trade name(s)",
                "description": "The brand name(s) of the drug",
                "type": "string",
                "required": false
            },
            "legal_status": {
                "label": "Legal status",
                "description": "The legal status of the drug",
                "type": "string",
                "required": false
            },
            "routes_of_administration": {
                "label": "Routes of administration",
                "description": "The routes of administration for the drug",
                "type": "string",
                "required": false
            },
            "pregnancy_category": {
                "label": "Pregnancy category",
                "description": "The pregnancy category of the drug",
                "type": "string",
                "required": false
            },
            "ATC_prefix": {
                "label": "ATC prefix",
                "description": "The ATC code prefix for the drug",
                "type": "string",
                "required": false
            },
            "ATC_suffix": {
                "label": "ATC suffix",
                "description": "The ATC code suffix for the drug",
                "type": "string",
                "required": false
            }
        }
    }
}
```
This TemplateData source code defines the parameters for the Infobox drug template, including the label, description, type, and required status for each parameter. You can customize this TemplateData source code by adding or removing parameters as needed, and save it as a separate file on your MediaWiki site. Once you have saved this TemplateData file, it will enable users to add and edit the template more easily using a visual editor.

Navigation menu