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.

red-outlined triangle containing exclamation point Important: 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:

Usage example edit

Wikitext:

...
|{{ClinicalStudyInfo}}
|rowspan=2 {{ClinicalStudyInfo |phase=4}}
|rowspan=2 {{ClinicalStudyInfo |phase=4 |'''Deployed'''}}
|rowspan=2 {{ClinicalStudyInfo |phase=4 |align=mc |In use}}
|-
|{{ClinicalStudyInfo |phase=2 |endphase=3 |participants=1200
 |references=<ref>{{cite journal |date=2016-06-23 |title=WRAP-IT |journal=Am Heart J. |volume=180 |pages=12-21}}</ref>
 |description=Randomized, placebo-controlled
 |status=Resumed after one ill patient recovered
 |whenwhere=Jul 2020{{snd}}Oct 2021, Germany, USA; Feb{{ndash}}Dec 2021, China}}}}
...

Result:

? Phase IV Deployed In use
Phase II–III (1,200)[1]
Randomized, placebo-controlled
Resumed after one ill patient recovered
Jul 2020 – Oct 2021, Germany, USA; Feb–Dec 2021, China

Code edit

TemplateData edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ClinicalStudyInfo in articles based on its TemplateData.

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 shown instead of autogenerated text

Default
?
Contentoptional
phasephase

current phase of the clinical study, either 'discovery', 'pre' (for preclinical), '0', '1', '2', '3', '4', 'fail' or 'terminated'; see also 'end of phase range'

Default
Linesuggested
end of phase rangeendphase

last phase in a multiphase clinical study, either '1', '2', '3' or '4'

Default
Lineoptional
participantsparticipants

number of participants

Default
Numbersuggested
referencesreferences

references shown on the top line

Default
Lineoptional
descriptiondescription

brief description of the study's design, ideally in a single line

Default
Lineoptional
statusstatus

brief description of the study's status or outcomes, ideally in a single line

Default
Lineoptional
durations and locationswhenwhere

brief list of duration and locations of the trial, usually in the format durationA, locationA1, locationA2, ...; durationB, locationB1, locationB2, ...

Default
Lineoptional
sort valuesortvalue

code for ordering instead of autogenerated code in the format 'phaseOrder-endPhase participants', where 'phaseOrder' is an alphanumeric code based on the value of 'phase' with values 'D0' (discovery), 'I0' (preclinical), 'B0' (failed), 'C0' (terminated), 'P0', 'P1', 'P2', 'P3' and 'P4' for each of the phases

Default
A0
Lineoptional
alignmentalign

text alignment inside the cell, either 'tl' (top left), 'tc' (top center), 'tr' (top right), 'ml' (middle left), 'mc' (middle center), 'mr' (middle right), 'bl' (bottom left), 'bc' (bottom center) or 'br' (bottom right)

Default
tl
Lineoptional
background colorcolor

CSS color value or name to override the standard the cell background

Default
eee
Lineoptional
stylestyle

semicolon separated list of CSS rules applied to the table cell

Default
Lineoptional

See also edit

Notes edit

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