Template:ClinicalStudyInfo/doc

From blackwiki
Jump to navigation Jump to search

This template is designed to be used in a table to make a cell with text in that cell, with an appropriately colored background. It can be used in comparison tables of clinical studies.

The text in the cell is taken from the first parameter; {{ClinicalStudyInfo|Done}} would output "Done" otherwise it displays the default text. Most templates allow authors to override the default text in this way.

Template:Warnsign If you want to use other attributes for the table cells, e.g. colspan or rowspan, they need to be put before the template call and there must be no vertical bar | in between them:

Preclinical In use ?
Phase II–III (1,200)[1]
Randomized, placebo-controlled
...
!{{ClinicalStudyInfo|phase=pre}} ||{{ClinicalStudyInfo|phase=4|In use}} ||rowspan=2 {{ClinicalStudyInfo}}
|-
|colspan=2 {{ClinicalStudyInfo|phase=2|endphase=3|participants=1200|description=Randomized, placebo-controlled|references=<ref>{{cite journal|date=23 Jun 2016|title=WRAP-IT|journal=Am Heart J.|volume=180|pages=12-21}}</ref>}}
...

Code

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for ClinicalStudyInfo

A template for styling individual table cells with standard contents and colors.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text1

text to be displayed instead of the text generated automatically (either the default text or formatted text from parameters)

Default
?
Contentoptional
phasephase

a label for the clinical phase the study is in, either 'discovery', 'pre' (for preclinical), '0', '1', '2', '3', '4', 'fail' or 'terminated'

Default
Stringsuggested
end of phase rangeendphase

a label for the last clinical phase in a study that combines multiple phases, either '1', '2', '3' or '4'

Default
Stringoptional
participantsparticipants

the number of participants, if known

Default
Numbersuggested
referencesreferences

any references to be placed on the top line

Default
Stringoptional
descriptiondescription

a description of the study's design or status

Default
Stringoptional
sort valuesortvalue

text to be used for customizing the table cell's ordering instead of the text generated automatically from parameters in the format 'phaseOrder-endphase participants', where 'endphase' and 'participants' are the values of these parameters and 'phaseOrder' is an alphanumeric code based on the value of the 'phase' parameter with values 'D0' (discovery), 'I0' (preclinical), 'B0' (failed), 'C0' (terminated), 'P0', 'P1', 'P2', 'P3' and 'P4' for each of the phases respectively, allowing intermediary values to be used when necessary

Default
A0
Stringoptional
horizontal alignalign

text alignment inside the cell, either 'left', 'right', 'center' or 'justified'

Default
center
Stringoptional
background colorcolor

a valid CSS color value or name to override the standard the cell background, only available with some templates

Default
eee
Lineoptional
stylestyle

a semicolon separated list of additional CSS rules to be applied to the table cell

Default
Stringoptional

See also

Notes

  1. "WRAP-IT". Am Heart J. 180: 12–21. 23 Jun 2016.