Revision as of 17:51, 22 March 2015 view sourceDePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summary← Previous edit | Latest revision as of 09:03, 18 November 2020 view source MSGJ (talk | contribs)Autopatrolled, Administrators131,149 edits remove unused maintenance tracking options, requested by User:DePiep | ||
(36 intermediate revisions by 4 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:{{{_drugtype|}}} |mab |combo |vaccine= |#default=]}}}}<!-- | ||
pagename.png exists & is used; Can have with imageL/R | |||
-->{{#if:{{{_image_02|}}} |<!-- OK, has image -->|{{#ifexist:File:{{PAGENAME}}.png |]<!-- -->}} | |||
⚫ | |||
DRUGTYPE: check for input-vs-type contradictions | |||
⚫ | -->{{#if:{{{ |
||
See also below, to categorise when _drugtype=unknown | |||
-->{{#if:{{#switch:{{{_drugtype|}}}<!-- | |||
-->|vaccine={{{_mab_data|}}}{{{_mab_other_data|}}}{{{_combo_data|}}}{{{_other_data|}}}<!-- | |||
-->|mab={{{_vaccine_data|}}}{{{_combo_data|}}}{{{_other_data|}}}<!-- | |||
-->|combo={{{_vaccine_data|}}}{{{_mab_data|}}}{{{_mab_vaccine_data|}}}{{{_mab_other_data|}}}{{{_other_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. | |||
⚫ | -->{{#if:{{{ |
||
-->{{#if:{{{ |
-->{{#if:{{{CAS_number|}}} ||]}}<!-- | ||
-->{{#if:{{{ChEBI|}}}{{{ChEMBL|}}} ||]}}<!-- together | |||
⚫ | -->{{#switch:{{ |
||
| |
-->{{#if:{{{ChemSpiderID|}}} ||]}}<!-- | ||
| |
-->{{#if:{{{DrugBank|}}} ||]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{{KEGG|}}} ||]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{{_hasInChI_or_Key|}}} ||]}}<!-- together | ||
-->{{#if:{{{ |
-->{{#if:{{{UNII|}}} ||]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{{_hasJmol02|}}} |]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{#invoke:String|match |s={{{_hasJmol02|}}}_ |pattern=^one |plain=false |nomatch=}}|]}}<!-- | ||
2nd IDENTIFIERS CHECKS | |||
-->{{#ifexpr:{{{_countSecondIDs|0}}} > 0 |]}}<!-- | |||
-->{{#ifexpr:{{{_countIndexlabels|0}}} > 0 |]}}<!-- * | |||
-->{{#ifexpr:({{{_countSecondIDs|0}}} > 0) and ({{{_countIndexlabels|0}}} = 0) |]}}<!-- * | |||
⚫ | -->{{#if:{{{_hasMultipleCASnumbers|}}} |]}}<!-- * | ||
-->{{#if:{{{_hasMultiplePubChemCIDs|}}} |]}}<!-- * | |||
-->{{#if:{{{_hasMultipleChEBIs|}}} |]}}<!-- * | |||
⚫ | -->{{#if:{{{ |
||
SPECIAL | SPECIAL | ||
-->{{# |
-->{{#ifexist:{{{_datapage|}}} |]}}<!-- | ||
-->{{# |
-->{{#if:{{{_ATC_prefix_supplemental|}}} ||]}}<!-- together; was category:Drugboxes with an unspecified ATC code. Feb 2017. | ||
-->{{#if:{{{ |
-->{{#if:{{{_legal_all|}}} ||]}}<!-- | ||
-->{{#if:{{{ |
-->{{#if:{{{_vaccine_target|}}} ||]}}<!-- | ||
-->{{#if:{{{_has_EMA_link|}}} |]}}<!-- | |||
WIKIDATA | |||
-->{{#if:{{{QID|}}} |]}}<!-- * | |||
-->{{#if:{{{QID2|}}} |]}}<!-- * | |||
BOT VERIFY: | BOT VERIFY: | ||
Line 31: | Line 65: | ||
-->{{#ifeq:{{{Watchedfields|}}}|changed|] | -->{{#ifeq:{{{Watchedfields|}}}|changed|] | ||
}}<!-- | }}<!-- | ||
-->{{#if:{{{verifiedrevid|}}}||]}} | -->{{#if:{{{verifiedrevid|}}}||]}}<!-- | ||
}}<noinclude> | |||
OPTIONAL TEMP TRACKING | |||
{{documentation}} | |||
-->{{#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> | --><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,900 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: