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 22:50, 19 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, Administrators130,779 edits remove unused maintenance tracking options, requested by User:DePiep 
(42 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{main other|1=<!--
<!-- Tracking categories: test: ALL ARE COLON-showing
* Parameter names starting with _ underscore are mere internal constructs, not from article input.
-->{{main other |<!--ns test all/ To be : main other -->|<!--
* When category is shared with Template:Chembox, drugbox pages sort under * (asterisk).
IMAGES:
pagename.png exists & is used; Can have with imageL/R
-->{{#if:{{{_image_02|}}} |<!-- OK, has image -->|{{#ifexist:File:{{PAGENAME}}.png |]<!-- -->}}
}}<!--


TITLE:
-->{{#if:{{{_image_02|}}}{{{_image_LR|}}} |<!-- has image -->|{{#switch:{{lc:{{{type|}}}}} |mab |combo |vaccine = |#default=] }}}}<!--
-->{{#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:
IDENTIFIERS:
-->{{#if:{{{CAS_number|}}}||]}}<!-- -->{{#if:{{{_image_0_or_2|}}}{{{_image_LR|}}} |<!-- has image entered -->|{{#switch:{{{_drugtype|}}} |mab |combo |vaccine= |#default=]}}}}<!--

-->{{#if:{{{ChEBI|}}}{{{ChEMBL|}}}||]}}<!--
DRUGTYPE: check for input-vs-type contradictions
-->{{#switch:{{lc:{{{ChemSpiderID|}}}}}
See also below, to categorise when _drugtype=unknown
|= ]
-->{{#if:{{#switch:{{{_drugtype|}}}<!--
|na|none= ]
-->|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|}}}
}}<!-- }}<!--
-->|]<!--
-->{{#if:{{{DrugBank|}}}||]}}<!--
-->}}<!-- by section: physio_data (endogenous) can not be together with clinical or legal_data:
-->{{#if:{{{KEGG|}}}||]}}<!--
-->{{#if:{{{StdInChI|}}}||]}}<!-- -->{{#if:{{{_physiological_data|}}}|{{#if:{{{_clinical_data|}}}{{{_legal_data|}}}|]}}}}<!--

-->{{#if:{{{StdInChIKey|}}}||]}}<!--
IDENTIFIERS: old installation from CheMoBot.
-->{{#if:{{{UNII|}}}||]}}<!--
note: '=none' is catched in the /formatX subtemplates. Feb 2017.
-->{{#if:{{{CAS_number|}}} ||]}}<!--
-->{{#if:{{{ChEBI|}}}{{{ChEMBL|}}} ||]}}<!-- together
-->{{#if:{{{ChemSpiderID|}}} ||]}}<!--
-->{{#if:{{{DrugBank|}}} ||]}}<!--
-->{{#if:{{{KEGG|}}} ||]}}<!--
-->{{#if:{{{_hasInChI_or_Key|}}} ||]}}<!-- together
-->{{#if:{{{UNII|}}} ||]}}<!--
-->{{#if:{{{_hasJmol02|}}} |]}}<!--
-->{{#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:{{{_target|}}}||]}}<!--
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:{{{_legal_all|}}} ||]}}<!--
-->{{#if:{{{_vaccine_target|}}} ||]}}<!--
-->{{#if:{{{_has_EMA_link|}}} |]}}<!--

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


BOT VERIFY: BOT VERIFY:
-->{{#ifeq:{{{Verifiedfields|}}}|changed|] -->{{#ifeq:{{{Verifiedfields|}}}|changed|]
}}<!-- }}<!--
-->{{#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]
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: