Difference between revisions of "Template:Presentation"

From QualityBox Wiki
Jump to navigation Jump to search
(formatting)
(replace incorrect use of set_internal with 'set')
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<inlcudeonly>
+
<noinclude>
 +
This is the "Presentation" template.
 +
It should be called in the following format:
 +
<pre>
 +
{{Presentation
 +
|Title=
 +
|Date=
 +
|Time=
 +
|Location=
 +
|Presenter=
 +
|Summary=
 +
|Abstract=
 +
|Photo=
 +
}}
 +
</pre>
 +
Edit the page to see the template text.
 +
</noinclude><includeonly>{{#css:
 +
img {
 +
    max-width: 100%;
 +
    height: auto;
 +
}
 +
}}{{#set_internal:Title|hasDate={{{Date|}}}|hasTime={{{Time|}}}|hasLocation={{{Location|}}}|hasPresenter={{{Presenter|}}}}}{| class="wikitable"
 +
! Title
 +
| {{{Title|}}}
 +
|-
 +
! Date
 +
| [[hasDate::{{{Date|}}}]]
 +
|-
 +
! Time
 +
| [[hasTime::{{{Time|}}}]]
 +
|-
 +
! Location
 +
| {{#set:hasLocation::{{{Location|}}}}}{{{Location|}}}
 +
|-
 +
! Presenter
 +
| {{#arraymap:{{{Presenter|}}}|,|x|{{#formredlink:target=x|form=Person}}{{#set:hasPresenter=x}}}}
 +
|}
 +
 
 
== {{{Title}}} ==
 
== {{{Title}}} ==
 +
<span style="float:right;">{{#set:hasPhoto::{{{Photo|}}}}}{{{Photo|}}}</span>
 
'''WHEN:''' {{{Date}}} {{{Time}}}<br />
 
'''WHEN:''' {{{Date}}} {{{Time}}}<br />
 
'''WHERE:''' {{{Location}}}<br />
 
'''WHERE:''' {{{Location}}}<br />
 
'''WHO:''' {{{Presenter}}} <br />
 
'''WHO:''' {{{Presenter}}} <br />
'''WHAT:''' {{{Summary}}}<br />
+
'''WHAT:''' {{#set:hasSummary::{{{Summary|}}}}}{{{Summary|}}}
MORE: {{{Abstract}}}<br />
+
 
{{{Photo}}}
+
{{#set:hasAbstract::{{{subst:Abstract|}}}}}{{{subst:Abstract|}}}
[[Catgegory:Presentation]]
+
[[Category:Presentation]]
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
You can include the following arguments to the template. All presentations will automatically be placed in the [[:Category:Presentation]] category.
 
<pre>
 
 
{{{Title}}}
 
{{{Date}}}
 
{{{Time}}}
 
{{{Location}}}
 
{{{Presenter}}}
 
{{{Summary}}}
 
{{{Abstract}}}
 
{{{Photo}}}
 
</pre>
 
 
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
"Title": {
 
"label": "Presentation Title",
 
"description": "What do you call the Talk or Presentation?",
 
"example": "Importing Content into QualityBox",
 
"type": "string",
 
"default": "My Presentation",
 
"required": true
 
},
 
 
"Date": {
 
"Date": {
 
"label": "Date",
 
"label": "Date",
"description": "the Date of the presentation",
+
"description": "Date of presentation",
 
"example": "{{#dateformat:{{subst:CURRENTYEAR}}-{{subst:CURRENTMONTH}}-{{subst:CURRENTDAY}}|ISO 8601}}",
 
"example": "{{#dateformat:{{subst:CURRENTYEAR}}-{{subst:CURRENTMONTH}}-{{subst:CURRENTDAY}}|ISO 8601}}",
"type": "date",
+
                        "type": "date",
 
"suggested": true
 
"suggested": true
 
},
 
},
 
"Time": {
 
"Time": {
 
"label": "Time",
 
"label": "Time",
 +
"description": "Time presentation begins",
 
"example": "18:00 EDT",
 
"example": "18:00 EDT",
 
"type": "string",
 
"type": "string",
Line 54: Line 72:
 
},
 
},
 
"Presenter": {
 
"Presenter": {
"label": "Presenter",
+
"label": "Location",
 +
"description": "Address; #hashtag; URL",
 +
"example": "#QualityBoxTraining",
 +
"required": true
 +
},
 +
"Title": {
 +
"label": "Presentation Title",
 +
"description": "What do you call the Talk or Presentation?",
 +
"example": "Importing Content into QualityBox",
 +
"type": "string",
 +
"autovalue": "{{subst:PAGENAME}}",
 
"required": true
 
"required": true
 
},
 
},
Line 70: Line 98:
 
}
 
}
 
},
 
},
 +
"description": "This template holds information about a Presentation",
 
"format": "inline"
 
"format": "inline"
 
}
 
}
 +
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 09:26, 1 November 2018

This is the "Presentation" template. It should be called in the following format:

{{Presentation
|Title=
|Date=
|Time=
|Location=
|Presenter=
|Summary=
|Abstract=
|Photo=
}}

Edit the page to see the template text.


This template holds information about a Presentation

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
DateDate

Date of presentation

Example
{{#dateformat:{{subst:CURRENTYEAR}}-{{subst:CURRENTMONTH}}-{{subst:CURRENTDAY}}|ISO 8601}}
Datesuggested
TimeTime

Time presentation begins

Example
18:00 EDT
Stringsuggested
LocationLocation

Address; Building & Room; or URL

Example
700 Boylston Street Boston MA 02116
Stringoptional
LocationPresenter

Address; #hashtag; URL

Example
#QualityBoxTraining
Unknownrequired
Presentation TitleTitle

What do you call the Talk or Presentation?

Example
Importing Content into QualityBox
Auto value
{{subst:PAGENAME}}
Stringrequired
SummarySummary

<50 words

Unknownoptional
AbstractAbstract

~150 words

Unknownoptional
Photo / ImagePhoto

no description

Fileoptional