Template:ReportSidebar: Difference between revisions

From Avi's Drug Diary
Created page with "<includeonly><div style="float:right; width:340px; margin-left:20px; margin-bottom:20px;"> {| class="wikitable" style="width:100%;" ! colspan="2" | {{{title|}}} {{#if:{{{type|}}}| |- ! Report Type | {{{type}}} }} {{#if:{{{author|}}}| |- ! Author | {{{author}}} }} {{#if:{{{contact|}}}| |- ! Contact | {{{contact}}} }} {{#if:{{{date|}}}| |- ! Experience Date | {{{date}}} }} {{#if:{{{duration|}}}| |- ! Duration | {{{duration}}} }} {{#if:{{{experience|}}}| |- ! Experi..."
 
Compact template; remove leading <p> whitespace
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><div style="float:right; width:340px; margin-left:20px; margin-bottom:20px;">
<noinclude>
 
{{#cargo_declare:
{| class="wikitable" style="width:100%;"
_table=Reports
 
|Title=String
! colspan="2" | {{{title|}}}
|ReportType=String
 
|ReportCategory=String
{{#if:{{{type|}}}|
|Author=String
|-
|Contact=String
! Report Type
|ExperienceDate=Date
| {{{type}}}
|ExperienceLevel=String
}}
|Duration=String
 
|Setting=String
{{#if:{{{author|}}}|
|PrimarySubstances=List (;) of String
|-
|Rating=Integer
! Author
|DrugClasses=List (;) of String
| {{{author}}}
}}
 
{{#if:{{{contact|}}}|
|-
! Contact
| {{{contact}}}
}}
 
{{#if:{{{date|}}}|
|-
! Experience Date
| {{{date}}}
}}
 
{{#if:{{{duration|}}}|
|-
! Duration
| {{{duration}}}
}}
 
{{#if:{{{experience|}}}|
|-
! Experience
| {{{experience}}}
}}
}}
 
</noinclude><includeonly>{{#cargo_store:
{{#if:{{{level|}}}|
_table=Reports
|-
|Title={{{title|}}}
! Experience Level
|ReportType={{{type|}}}
| {{{level}}}
|ReportCategory={{{report_category|}}}
}}
|Author={{{author|}}}
 
|Contact={{{contact|}}}
{{#if:{{{rating|}}}|
|ExperienceDate={{{experience_date|}}}
|-
|ExperienceLevel={{{experience_level|}}}
! Rating
|Duration={{{duration|}}}
| {{Stars|{{{rating}}}}}
|Setting={{{setting|}}}
}}
|PrimarySubstances={{{primary_substances|}}}
 
|Rating={{{rating|}}}
{{#if:{{{substances|}}}|
|DrugClasses={{{drug_classes|}}}
|-
}}<div class="report-sidebar" style="float:right;width:340px;margin:0 0 1em 1.25em;clear:right">
! Substance(s)
<table class="wikitable" style="width:100%;margin:0">
| {{{substances}}}
<tr><th colspan="2">{{{title|Untitled}}}</th></tr>
}}
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
 
{{#if:{{{author|}}}|<tr><th>Author</th><td>{{{author}}}</td></tr>}}
|}
{{#if:{{{contact|}}}|<tr><th>Contact</th><td>{{{contact}}}</td></tr>}}
 
{{#if:{{{experience_date|}}}|<tr><th>Experience Date</th><td>{{{experience_date}}}</td></tr>}}
{{{dosage|}}}
{{#if:{{{experience_level|}}}|<tr><th>Experience Level</th><td>{{{experience_level}}}</td></tr>}}
 
{{#if:{{{duration|}}}|<tr><th>Duration</th><td>{{{duration}}}</td></tr>}}
{{#if:{{{setting|}}}|<tr><th>Setting</th><td>{{{setting}}}</td></tr>}}
{{#if:{{{substances|}}}|<tr><th>Substance(s)</th><td>{{{substances}}}</td></tr>}}
{{#if:{{{rating|}}}|<tr><th>Rating</th><td>{{{rating}}}</td></tr>}}
</table>
{{#if:{{{dosage|}}}|<div class="report-dosage" style="margin-top:0.5em">{{{dosage}}}</div>}}
</div></includeonly>
</div></includeonly>
<noinclude>
Parameters:
* title=
* type=
* author=
* contact=
* date=
* duration=
* experience=
* level=
* rating=
* substances=
* dosage=
</noinclude>

Latest revision as of 17:44, 9 August 2026

This template defines the table "Reports". View table.