Misplaced Pages

Template:Infobox drug/maintenance categories: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Infobox drug Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 00:28, 18 December 2015 view sourceDePiep (talk | contribs)Extended confirmed users294,285 edits Refine maintenance categories eg Category:Infobox drug tracked parameters← Previous edit Latest revision as of 09:03, 18 November 2020 view source MSGJ (talk | contribs)Autopatrolled, Administrators130,779 edits remove unused maintenance tracking options, requested by User:DePiep 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{main other |<!-- {{main other|1=<!--
Parameter names starting with _underscore are mere internal constructs, not from article input * Parameter names starting with _ underscore are mere internal constructs, not from article input.
* When category is shared with Template:Chembox, drugbox pages sort under * (asterisk).

TITLE:
-->{{#if:{{{drug_name|}}}{{{INN|}}} |[[Category:Infobox drug articles with non-default infobox title|<!--
catsort, use logic:
-->{{#switch:{{{INN|}}}<!--
-->|= {{#ifeq:{{{drug_name|}}} |{{PAGENAME}} |&#x20; |{{PAGENAME}}}}<!--
-->|None|none = * <!-- not an INN name
-->|{{{drug_name|{{PAGENAME}}}}} = &#x3d;<!-- =minus-sign; INN=title (bad)
-->|#default = _ <!-- has INN set
-->}}]]}}<!--


IMAGES: IMAGES:
-->{{#if:{{{_image_02|}}}{{{_image_LR|}}} |<!-- has image entered -->|{{#switch:{{lc:{{{type|}}}}} |mab |combo |vaccine= |#default=] }}}}<!-- -->{{#if:{{{_image_0_or_2|}}}{{{_image_LR|}}} |<!-- has image entered -->|{{#switch:{{{_drugtype|}}} |mab |combo |vaccine= |#default=]}}}}<!--
-->{{#if:{{{_autoimage3|}}} |]}}<!--
-->{{#if:{{{_imagename|}}} |]}}<!-- why this name used that way? Dec 2015
-->{{#if:{{{_widths|}}} |]}}<!--


DRUGTYPE: check for input-vs-type contradictions
TYPE:
See also below, to categorise when _drugtype=unknown
-->{{#switch:{{{type|}}}<!--
-->{{#if:{{#switch:{{{_drugtype|}}}<!--
-->| combo=]<!--
-->| mab=[[Category:Drugs that are a monoclonal antibody|{{#switch:{{lc:{{{mab_type|}}}}}
| mab=W | fab=F | f(ab')2=2 | fab'=' | scfv=C | discfv=D | sdab=S | 3funct=3 | clfab=L | bite=B | #default=?}}]]<!--
-->| vaccine=]<!--
-->|=<!-- blank=other drugs, single chemical: not categorized here
-->|#default=]
}}<!--

TYPE: check for contradictions
-->{{#if:{{#switch:{{{type|}}}<!--
-->|vaccine={{{_mab_data|}}}{{{_mab_other_data|}}}{{{_combo_data|}}}{{{_other_data|}}}<!-- -->|vaccine={{{_mab_data|}}}{{{_mab_other_data|}}}{{{_combo_data|}}}{{{_other_data|}}}<!--
-->|mab={{{_vaccine_data|}}}{{{_combo_data|}}}{{{_other_data|}}}<!-- -->|mab={{{_vaccine_data|}}}{{{_combo_data|}}}{{{_other_data|}}}<!--
Line 25: Line 24:
-->|={{{_vaccine_data|}}}{{{_mab_data|}}}{{{_mab_vaccine_data|}}}{{{_combo_data|}}} -->|={{{_vaccine_data|}}}{{{_mab_data|}}}{{{_mab_vaccine_data|}}}{{{_combo_data|}}}
}}<!-- }}<!--
-->|]<!-- -->|]<!--
-->}}<!-- by section: physio_data (endogenous) can not be together with clinical or legal_data:
-->}}<!--
-->{{#if:{{{_physiological_data|}}}|{{#if:{{{_clinical_data|}}}{{{_legal_data|}}}|]}}}}<!--


IDENTIFIERS: IDENTIFIERS: old installation from CheMoBot.
note: '=none' is catched in the /formatX subtemplates. Feb 2017.
-->{{#switch:{{lc:{{{CAS_number|}}}}}
|=] -->{{#if:{{{CAS_number|}}} ||]}}<!--
-->{{#if:{{{ChEBI|}}}{{{ChEMBL|}}} ||]}}<!-- together
|none=] }}<!--
-->{{#if:{{{ChEBI|}}}{{{ChEMBL|}}}||]}}<!-- -->{{#if:{{{ChemSpiderID|}}} ||]}}<!--
-->{{#if:{{{DrugBank|}}} ||]}}<!--
-->{{#switch:{{lc:{{{ChemSpiderID|}}}}}
|=] -->{{#if:{{{KEGG|}}} ||]}}<!--
-->{{#if:{{{_hasInChI_or_Key|}}} ||]}}<!-- together
|na|none=] }}<!--
-->{{#if:{{{DrugBank|}}}||]}}<!-- -->{{#if:{{{UNII|}}} ||]}}<!--
-->{{#if:{{{KEGG|}}}||]}}<!-- -->{{#if:{{{_hasJmol02|}}} |]}}<!--
-->{{#if:{{{_StdInChI|}}}||]}}<!-- -->{{#if:{{#invoke:String|match |s={{{_hasJmol02|}}}_ |pattern=^one |plain=false |nomatch=}}|]}}<!--

-->{{#if:{{{_StdInChIKey|}}}||]}}<!--
2nd IDENTIFIERS CHECKS
-->{{#if:{{{UNII|}}}||]}}<!--
-->{{#ifexpr:{{{_countSecondIDs|0}}} > 0 |]}}<!--
-->{{#ifexpr:{{{_countIndexlabels|0}}} > 0 |]}}<!-- *
-->{{#ifexpr:({{{_countSecondIDs|0}}} > 0) and ({{{_countIndexlabels|0}}} = 0) |]}}<!-- *

-->{{#if:{{{_hasMultipleCASnumbers|}}} |]}}<!-- *
-->{{#if:{{{_hasMultiplePubChemCIDs|}}} |]}}<!-- *
-->{{#if:{{{_hasMultipleChEBIs|}}} |]}}<!-- *


SPECIAL SPECIAL
-->{{#if:{{{chemical_formula|}}} |] }}<!-- -->{{#ifexist:{{{_datapage|}}} |]}}<!--
-->{{#ifexist:{{{_datapage|}}} |] }}<!-- -->{{#if:{{{_ATC_prefix_supplemental|}}} ||]}}<!-- together; was category:Drugboxes with an unspecified ATC code. Feb 2017.
-->{{#if:{{{_ATC_prefix_supplemental|}}} ||] }}<!-- -->{{#if:{{{_legal_all|}}} ||]}}<!--
-->{{#ifeq:{{lc:{{{ATC_prefix|}}}}} |none|] }}<!-- -->{{#if:{{{_vaccine_target|}}} ||]}}<!--
-->{{#if:{{{_legal_all|}}} ||] }}<!-- -->{{#if:{{{_has_EMA_link|}}} |]}}<!--

-->{{#if:{{{_target|}}}||]}}<!--
WIKIDATA
-->{{#if:{{{QID|}}} |]}}<!-- *
-->{{#if:{{{QID2|}}} |]}}<!-- *


BOT VERIFY: BOT VERIFY:
Line 55: Line 65:
-->{{#ifeq:{{{Watchedfields|}}}|changed|] -->{{#ifeq:{{{Watchedfields|}}}|changed|]
}}<!-- }}<!--
-->{{#if:{{{verifiedrevid|}}}||]}} -->{{#if:{{{verifiedrevid|}}}||]}}<!--

|<!-- other: -->
OPTIONAL TEMP TRACKING
}}<!--
-->{{#if:{{{_trackListSortletter|}}} |]}}<!--

_drugtype analysed here:
-->{{#switch:{{{_drugtype|}}}<!--
-->|=<!-- blank=single chemical: not categorized
-->|combo =]<!--
-->|mab =]<!--
-->|vaccine =]<!--
-->|#default =]<!-- unk input
-->}}<!--

Derived drug type (by having parameter input):
-->{{#if:{{{_has_physiological_data|}}}|]}}<!--
-->{{#if:{{{_has_gene_therapy|}}} |]}}<!--

-->}}<!-- main_other closing


--><noinclude>{{documentation}}</noinclude> --><noinclude>{{documentation}}</noinclude>

Latest revision as of 09:03, 18 November 2020

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 9,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
For |container_only=yes, see {{Infobox drug/maintenance categories/container only}}.

See also

See Category:Infobox drug tracking categories. Most maintenance categories are added through this subtemplate.

The above documentation is transcluded from Template:Infobox drug/maintenance categories/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Category: