Template:Runtime infobox: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{ #switch:{{{1|}}} | <includeonly>{{ #switch:{{{1|}}} | ||
| 2 = {{{1}}} Discs {{{2|--:-- | | 2 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 3 = {{{1}}} Discs {{{2|--:-- | | 3 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 4 = {{{1}}} Discs {{{2|--:-- | | 4 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{+}} {{If empty|{{{5|}}}--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 5 = {{{1}}} Discs {{{2|--:-- | | 5 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{+}} {{If empty|{{{5|}}}--:--}}{{+}} {{If empty|{{{6|}}}|--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 6 = {{{1}}} Discs {{{2|--:-- | | 6 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{+}} {{If empty|{{{5|}}}--:--}}{{+}} {{If empty|{{{6|}}}|--:--}}{{+}} {{If empty|{{{7|}}}|--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 7 = {{{1}}} Discs {{{2|--:-- | | 7 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{+}} {{If empty|{{{5|}}}--:--}}{{+}} {{If empty|{{{6|}}}|--:--}}{{+}} {{If empty|{{{7|}}}|--:--}}{{+}} {{If empty|{{{8|}}}--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 8 = {{{1}}} Discs {{{2|--:-- | | 8 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{+}} {{If empty|{{{5|}}}--:--}}{{+}} {{If empty|{{{6|}}}|--:--}}{{+}} {{If empty|{{{7|}}}|--:--}}{{+}} {{If empty|{{{8|}}}--:--}}{{+}} {{If empty|{{{9|}}}|--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 9 = {{{1}}} Discs {{{2|--:-- | | 9 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{+}} {{If empty|{{{5|}}}--:--}}{{+}} {{If empty|{{{6|}}}|--:--}}{{+}} {{If empty|{{{7|}}}|--:--}}{{+}} {{If empty|{{{8|}}}--:--}}{{+}} {{If empty|{{{9|}}}|--:--}}{{+}} {{If empty|{{{10|}}}|--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| 10 = {{{1}}} Discs {{{2|--:-- | | 10 = {{{1}}} Discs {{If empty|{{{2|}}}|--:--}}{{+}} {{If empty|{{{3|}}}|--:--}}{{+}} {{If empty|{{{4|}}}|--:--}}{{+}} {{If empty|{{{5|}}}--:--}}{{+}} {{If empty|{{{6|}}}|--:--}}{{+}} {{If empty|{{{7|}}}|--:--}}{{+}} {{If empty|{{{8|}}}--:--}}{{+}} {{If empty|{{{9|}}}|--:--}}{{+}} {{If empty|{{{10|}}}|--:--}}{{+}} {{If empty|{{{11|}}}|--:--}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
| #default = {{{1}}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | | #default = {{{1}}}{{ #if:{{{Included benefits|}}}|{{Runtime infobox/Benefits|{{{Included benefits}}}|{{{Included benefits runtime}}}}}| }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> |
Revision as of 01:33, 27 July 2023
This template or it's shortcut {{Rti}} is used to format the runtime in the CD infoboxes. It can support up to 10 discs. It will automatically fill in any missing runtimes for the number of discs given with --:--
. The |Benefits=
and |Benefits runtime=
are for cds that have enclosed benefits. Below is a table of what to enter for each type of benefit.
Usages
- {{Runtime infobox
|Number of Discs |Disc 1 Runtime |Disc 2 Runtime |Disc 3 Runtime |Disc 4 Runtime |Disc 5 Runtime |Disc 6 Runtime |Disc 7 Runtime |Disc 8 Runtime |Disc 9 Runtime |Disc 10 Runtime |Benefits= |Benefits runtime=}}
- Using the {{Rti}} shorcut
- {{Rti
|Number of Discs |Disc 1 Runtime |Disc 2 Runtime |Disc 3 Runtime |Disc 4 Runtime |Disc 5 Runtime |Disc 6 Runtime |Disc 7 Runtime |Disc 8 Runtime |Disc 9 Runtime |Disc 10 Runtime |Benefits= |Benefits runtime=}}
Examples
{{Runtime infobox|2|59:26|57:35}}
→ 2 Discs 59:26 + 57:35{{Runtime infobox|3|59:26|57:35}}
→ 3 Discs 59:26 + 57:35 + --:--- {{rti
|10}} → 10 Discs --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:-- - {{rti
|10 | | | | | | | | | |}} → 10 Discs --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:-- + --:--
Included Benefits
This table shows what needs to be entered when there are enclosed benefits whose runtime should be included in the infobox. If more need to be added let PenguinPlushie know by posting a comment on her talk page. If the |Benefit runtime=
is left blank a default value of --:--
will be used.
Identifier | Output | Example Input | Example Output |
---|---|---|---|
LE | Limited Edition: | {{Runtime infobox|2|Benefits = LE|Benefits runtime = 15:20}} |
2 Discs --:-- + --:-- |
LE Mini | Limited Edition Mini Drama: | {{Runtime infobox|3|Benefits = LE Mini|Benefits runtime =}} |
3 Discs --:-- + --:-- + --:-- |
LE Talk | Limited Edition Talk CD: | {{Runtime infobox|2|Benefits = LE Talk|Benefits runtime = 30:25}} |
2 Discs --:-- + --:-- |
Enclosed Mini | Enclosed Benefits Mini Drama: | {{Runtime infobox|4|Benefits = Enclosed Mini|Benefits runtime = 10:30}} |
4 Discs --:-- + --:-- + --:-- + --:-- |
Enclosed Talk | Enclosed Benefits Talk CD: | {{Runtime infobox|2|||Benefits = Enclosed Talk|Benefits runtime = }} |
2 Discs --:-- + --:-- |
Special Mini | Special Edition Mini Drama: | {{Runtime infobox|2|Benefits = Special Mini|Benefits runtime = 12:45}} |
2 Discs --:-- + --:-- |
Special Talk | Special Edition Talk CD: | {{Runtime infobox|2|Benefits = Special Talk|Benefits runtime = 25:15}} |
2 Discs --:-- + --:-- |
TemplateData
To format the runtime in CD infoboxes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Number of Discs | 1 | The number of discs.
| String | required |
Disc 1 Runtime | 2 | Runtime of the 1st disc, formatted --:--.
| String | optional |
Disc 2 Runtime | 3 | Runtime of the 2nd disc, formatted --:--.
| String | optional |
Disc 3 Runtime | 4 | Runtime of the 3rd disc, formatted --:--.
| String | optional |
Disc 4 Runtime | 5 | Runtime of the 4th disc, formatted --:--.
| String | optional |
Disc 5 Runtime | 6 | Runtime of the 5th disc, formatted --:--.
| String | optional |
Disc 6 Runtime | 7 | Runtime of the 6th disc, formatted --:--.
| String | optional |
Disc 7 Runtime | 8 | Runtime of the 7th disc, formatted --:--.
| String | optional |
Disc 8 Runtime | 9 | Runtime of the 8th disc, formatted --:--.
| String | optional |
Disc 9 Runtime | 10 | Runtime of the 9th disc, formatted --:--.
| String | optional |
Disc 10 Runtime | 11 | Runtime of the 10th disc, formatted --:--.
| String | optional |
Included Benefits | Benefits | Identifies the type of benefit that is included.
| String | optional |
Runtime of Included Benefits | Benefits runtime | Runtime of the included benefits, formatted --:--.
| String | optional |