Difference between revisions of "MediaWiki:Gadgets-definition"

From WikiAnesthesia
Tag: 2017 source edit
Tag: 2017 source edit
 
(37 intermediate revisions by the same user not shown)
Line 5: Line 5:
This is the core gadget required by all calculators
This is the core gadget required by all calculators
* calculator-core[ResourceLoader|dependencies=ext.calculators.math.js|hidden|targets=desktop,mobile|type=general]|calculator-core.js|calculator-core.css
* calculator-core[ResourceLoader|dependencies=ext.calculators.math.js|hidden|targets=desktop,mobile|type=general]|calculator-core.js|calculator-core.css
This is the search gadget
* calculator-search[ResourceLoader|dependencies=ext.gadget.calculator-core|hidden|targets=desktop,mobile|type=general]|calculator-search.js|calculator-search.css


==== Calculator gadgets ====
==== Calculator gadgets ====
Gadgets are loaded using the '''<calculator id="''X''" />''' tag. The value for ''X'' must exactly match the declared gadget name (after ''calculator-'').
See the [[WikiAnesthesia:Calculators guide|calculators guide]] for more information about how to use and contribute to calculators on WikiAnesthesia.


For example, to load the "drugdosages" calculator, place <calculator id='drugdosages'> in the article at the location where the calculator should appear.
Gadgets are loaded using the '''<calculation id="''X''" />''' tag. The value for ''X'' must exactly match the declared gadget name (after ''calculator-'').


Note: Gadgets are loaded by the calculator-core gadget and thus do not need to declare this as a dependency.
Note: Gadgets are loaded by the calculator-core gadget and thus do not need to declare this as a dependency.


==== Drug gadgets ====
===== Anatomy and physiology =====
* calculator-drugs[ResourceLoader|hidden|default|targets=desktop,mobile|type=general]|calculator-drugs.js
* calculator-anatomyPhysiology[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-anatomyPhysiology.js
* calculator-drugdosages[ResourceLoader|dependencies=ext.gadget.calculator-patientinput|hidden|targets=desktop,mobile|type=general]|calculator-drugdosages.js|calculator-drugdosages.css
 
===== Body composition =====
* calculator-bodyComposition[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-bodyComposition.js
 
===== Cardiovascular =====
* calculator-cardiovascular[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-cardiovascular.js
 
===== Drugs =====
* calculator-drugs-core[ResourceLoader|dependencies=ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-drugs-core.js
* calculator-drugs-data[ResourceLoader|dependencies=ext.gadget.calculator-drugs-core|hidden|targets=desktop,mobile|type=general]|calculator-drugs-data.js
* calculator-drugDosage[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-drugs-data|hidden|targets=desktop,mobile|type=general]|calculator-drugDosage.js|calculator-drugDosage.css
* calculator-drugDilution[ResourceLoader|dependencies=ext.gadget.calculator-drugs|hidden|targets=desktop,mobile|type=general]|calculator-drugDilution.js|calculator-drugDilution.css
 
===== Equipment =====
* calculator-equipmentSize[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-equipmentSize.js
 
===== Fluid management =====
* calculator-fluidManagement[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-fluidManagement.js
 
===== Patients =====
* calculator-patients-core[ResourceLoader|dependencies=ext.gadget.calculator-core|hidden|targets=desktop,mobile|type=general]|calculator-patients-core.js
* calculator-patients-patientInput[ResourceLoader|dependencies=ext.gadget.calculator-patients-core|hidden|targets=desktop,mobile|type=general]|calculator-patients-patientInput.js|calculator-patients-patientInput.css
 
===== Neuro =====
* calculator-neuro[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-neuro.js


==== Patient gadgets ====
===== Respiratory =====
* calculator-patientinput[ResourceLoader|hidden|targets=desktop,mobile|type=general]|calculator-patientinput.js|calculator-patientinput.css
* calculator-respiratory[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-respiratory.js
* calculator-patientstats[ResourceLoader|dependencies=ext.gadget.calculator-patientinput|hidden|targets=desktop,mobile|type=general]|calculator-patientstats.js|calculator-patientstats.css

Latest revision as of 16:30, 5 April 2022

Calculators

Calculators must have gadgets defined in this file in order to be loaded. See the Gadgets extension for usage details.

Core gadgets

This is the core gadget required by all calculators

  • calculator-core[ResourceLoader|dependencies=ext.calculators.math.js|hidden|targets=desktop,mobile|type=general]|calculator-core.js|calculator-core.css

This is the search gadget

  • calculator-search[ResourceLoader|dependencies=ext.gadget.calculator-core|hidden|targets=desktop,mobile|type=general]|calculator-search.js|calculator-search.css

Calculator gadgets

See the calculators guide for more information about how to use and contribute to calculators on WikiAnesthesia.

Gadgets are loaded using the <calculation id="X" /> tag. The value for X must exactly match the declared gadget name (after calculator-).

Note: Gadgets are loaded by the calculator-core gadget and thus do not need to declare this as a dependency.

Anatomy and physiology
  • calculator-anatomyPhysiology[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-anatomyPhysiology.js
Body composition
  • calculator-bodyComposition[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-bodyComposition.js
Cardiovascular
  • calculator-cardiovascular[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-cardiovascular.js
Drugs
  • calculator-drugs-core[ResourceLoader|dependencies=ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-drugs-core.js
  • calculator-drugs-data[ResourceLoader|dependencies=ext.gadget.calculator-drugs-core|hidden|targets=desktop,mobile|type=general]|calculator-drugs-data.js
  • calculator-drugDosage[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-drugs-data|hidden|targets=desktop,mobile|type=general]|calculator-drugDosage.js|calculator-drugDosage.css
  • calculator-drugDilution[ResourceLoader|dependencies=ext.gadget.calculator-drugs|hidden|targets=desktop,mobile|type=general]|calculator-drugDilution.js|calculator-drugDilution.css
Equipment
  • calculator-equipmentSize[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-equipmentSize.js
Fluid management
  • calculator-fluidManagement[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-fluidManagement.js
Patients
  • calculator-patients-core[ResourceLoader|dependencies=ext.gadget.calculator-core|hidden|targets=desktop,mobile|type=general]|calculator-patients-core.js
  • calculator-patients-patientInput[ResourceLoader|dependencies=ext.gadget.calculator-patients-core|hidden|targets=desktop,mobile|type=general]|calculator-patients-patientInput.js|calculator-patients-patientInput.css
Neuro
  • calculator-neuro[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput|hidden|targets=desktop,mobile|type=general]|calculator-neuro.js
Respiratory
  • calculator-respiratory[ResourceLoader|dependencies=ext.gadget.calculator-patients-patientInput,ext.gadget.calculator-bodyComposition|hidden|targets=desktop,mobile|type=general]|calculator-respiratory.js