Revision as of 18:05, 29 January 2016 view sourceDePiep (talk | contribs)Extended confirmed users294,285 edits Following changes in master template: add tracking for bad unit in molar mass. See Talk 29-Jan-2016← 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 | ||
(19 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. | |||
* 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}} |  |{{PAGENAME}}}}<!-- | |||
-->|None|none = * <!-- not an INN name | |||
-->|{{{drug_name|{{PAGENAME}}}}} = =<!-- =minus-sign; INN=title (bad) | |||
-->|#default = _ <!-- has INN set | |||
⚫ | -->}}]]}}<!-- | ||
IMAGES: | IMAGES: | ||
-->{{#if:{{{_image_0_or_2|}}}{{{_image_LR|}}} |<!-- has image entered -->|{{#switch |
-->{{#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:{{{ |
||
⚫ | -->{{#if:{{#switch:{{{_drugtype|}}}<!-- | ||
⚫ | -->|=<!-- blank= |
||
⚫ | -->| |
||
⚫ | -->| |
||
⚫ | -->| |
||
⚫ | -->| |
||
⚫ | -->}}<!-- | ||
TEMPORAL: Dalton or u unit for molar mass, to edit (standard=g/mol): | |||
-->{{#if:{{{_molmassHasNonstandardUnit|}}} |] }}<!-- | |||
⚫ | |
||
⚫ | -->{{#if:{{#switch:{{{ |
||
-->|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:{{ |
||
| |
-->{{#if:{{{CAS_number|}}} ||]}}<!-- | ||
⚫ | -->{{#if:{{{ChEBI|}}}{{{ChEMBL|}}} ||]}}<!-- together | ||
|none=] }}<!-- | |||
-->{{#if:{{{ |
-->{{#if:{{{ChemSpiderID|}}} ||]}}<!-- | ||
⚫ | -->{{#if:{{{DrugBank|}}} ||]}}<!-- | ||
-->{{#switch:{{lc:{{{ChemSpiderID|}}}}} | |||
| |
-->{{#if:{{{KEGG|}}} ||]}}<!-- | ||
-->{{#if:{{{_hasInChI_or_Key|}}} ||]}}<!-- together | |||
|na|none=] }}<!-- | |||
-->{{#if:{{{ |
-->{{#if:{{{UNII|}}} ||]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{{_hasJmol02|}}} |]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{#invoke:String|match |s={{{_hasJmol02|}}}_ |pattern=^one |plain=false |nomatch=}}|]}}<!-- | ||
⚫ | -->{{#if:{{{ |
||
⚫ | -->{{#if:{{{ |
||
2nd IDENTIFIERS |
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 | ||
-->{{# |
-->{{#ifexist:{{{_datapage|}}} |]}}<!-- | ||
-->{{# |
-->{{#if:{{{_ATC_prefix_supplemental|}}} ||]}}<!-- together; was category:Drugboxes with an unspecified ATC code. Feb 2017. | ||
-->{{#if:{{{ |
-->{{#if:{{{_legal_all|}}} ||]}}<!-- | ||
-->{{# |
-->{{#if:{{{_vaccine_target|}}} ||]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{{_has_EMA_link|}}} |]}}<!-- | ||
⚫ | -->{{#if:{{{ |
||
WIKIDATA | |||
-->{{#if:{{{QID|}}} |]}}<!-- * | |||
-->{{#if:{{{QID2|}}} |]}}<!-- * | |||
BOT VERIFY: | BOT VERIFY: | ||
Line 58: | 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]This 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: