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 23:01, 2 April 2016 view sourceDePiep (talk | contribs)Extended confirmed users294,285 edits InChI-checks: do not categorise, for now← 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 
(14 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 TITLE:
-->{{#if:{{{drug_name|}}}{{{INN|}}} | [[Category:Infobox drug articles with non-default infobox title |<!-- catsort: -->{{#switch:{{{INN|}}}<!-- -->{{#if:{{{drug_name|}}}{{{INN|}}} |[[Category:Infobox drug articles with non-default infobox title|<!--
catsort, use logic:
-->{{#switch:{{{INN|}}}<!--
-->| = {{#ifeq:{{{drug_name|}}} |{{PAGENAME}} |&#x20; |{{PAGENAME}} }}<!-- -->|= {{#ifeq:{{{drug_name|}}} |{{PAGENAME}} |&#x20; |{{PAGENAME}}}}<!--
-->| None | none = *<!-- not an INN name -->|None|none = * <!-- not an INN name
-->| {{{drug_name|{{PAGENAME}}}}} = &#x3d;<!-- =minus-sign; INN=title (bad) -->|{{{drug_name|{{PAGENAME}}}}} = &#x3d;<!-- =minus-sign; INN=title (bad)
-->| #default = _ <!-- has INN set -->|#default = _ <!-- has INN set
-->}}]] }}<!-- -->}}]]}}<!--


IMAGES: IMAGES:
-->{{#if:{{{_image_0_or_2|}}}{{{_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=]}}}}<!--


DRUGTYPE: check for input-vs-type contradictions
TYPE:
See also below, to categorise when _drugtype=unknown
-->{{#switch:{{{type|}}}<!--
-->{{#if:{{#switch:{{{_drugtype|}}}<!--
-->|=<!-- blank=other drugs, single chemical: not categorized here
-->| combo=]<!--
-->| mab=]<!--
-->| vaccine=]<!--
-->| #default=]<!-- unk input
-->}}<!--

TEMPORAL/TRACKING: eg Dalton or u unit for molar mass, to edit (standard=g/mol):
-->{{#if:{{{_molmassHasNonstandardUnit|}}} |] }}<!--
-xx->{{#if: {{#if:{{{_xinchi|}}} |1}}{{#if:{{{_xkey|}}} |1}}|<!-- at least one has input,
check if params inchi, inchikey are deleteable (=when equal or empty)
-xx->{{#ifexpr:<!--
-xx->{{#expr: {{#switch:{{{_xinchi|}}}
| | _BLANK_=10
| {{{_stdinchi|}}}=20
| #default=0}}<!--
-xx-> * {{#switch:{{{_xkey|}}}
| | _BLANK_=1
| {{{_stdkey|}}}=2
| #default=0}}<!--
-xx-> }} > 0 | ]}}<!--

-xx->}}<!--

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 46: 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|}}}||]}}<!--
-->{{#if:{{{UNII|}}}||]}}<!--


2nd IDENTIFIERS CHECK 2nd IDENTIFIERS CHECKS
-->{{#ifexpr:{{{_countSecondIDs|0}}} > 0 |] }}<!-- -->{{#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 79: 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: