Template:Track list/doc: Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
mNo edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
This template creates an ordered Track List | This template creates an ordered Track List. [[#Example of breaking a list to include non-numbered text|See below]] on how to include text in the middle of the list that isn't a numbered item. | ||
== Syntax == | == Syntax == | ||
Line 12: | Line 12: | ||
== Examples == | == Examples == | ||
{| style="width: 30%" | |||
{{Track list | |+ '''Example 1 - Normal Usage''' | ||
|- style="vertical-align:middle;" | |||
| style="width: 45%" | | |||
{{Pre|{{{{tcn|Track list}} | |||
<nowiki>|</nowiki> {{tcv|Track 01}} | |||
<nowiki>|</nowiki> {{tcv|Track 02}} | |||
<nowiki>|</nowiki> {{tcv|Track 03}} | |||
<nowiki>|</nowiki> {{tcv|Track 04}} | |||
<nowiki>|</nowiki> {{tcv|Track 05}} | |||
<nowiki>|</nowiki> {{tcv|Track 06}} | |||
<nowiki>|</nowiki> {{tcv|Track 07}} | |||
<nowiki>|</nowiki> {{tcv|Track 08}} | |||
<nowiki>|</nowiki> {{tcv|Track 09}} | |||
<nowiki>|</nowiki> {{tcv|Track 10}} | |||
}} }} | |||
| style="text-align: center" | {{Rarr}} | |||
|{{Track list | |||
| Track 01 | | Track 01 | ||
| Track 02 | | Track 02 | ||
Line 24: | Line 40: | ||
| Track 09 | | Track 09 | ||
| Track 10 | | Track 10 | ||
}} | }} | ||
|} | |||
{{ | {| style="width: 50%" | ||
| {{ | |+ '''Example 2 - Using {{para|start}}''' | ||
| {{ | |- style="vertical-align:middle;" | ||
| {{ | | style="width: 45%" | | ||
| {{ | {{{{tcn|Tlist}} | ||
| {{ | <nowiki>|</nowiki> {{tcp|start}} {{=}} {{tcv|20}} | ||
| {{ | <nowiki>|</nowiki> {{tcv|「オフの日」}} | ||
| {{ | <nowiki>|</nowiki> {{tcv|「家でしか見られない顔」}} | ||
| {{ | <nowiki>|</nowiki> {{tcv|「練習」}} | ||
| {{ | <nowiki>|</nowiki> {{tcv|「番組アンケート」}} | ||
| {{ | <nowiki>|</nowiki> {{tcv|「キスの息継ぎ」}} | ||
<nowiki>|</nowiki> {{tcv|「山瀬のヒヤヒヤ」}} | |||
<nowiki>|</nowiki> {{tcv|「三原の悪ふざけ」}} | |||
<nowiki>|</nowiki> {{tcv|「眠れない夜」}} | |||
<nowiki>|</nowiki> {{tcv|「やきもち」}} | |||
{{Tlist|start = 20 | }} | ||
| style="text-align: center" | {{Rarr}} | |||
|{{Tlist | |||
| start = 20 | |||
| 「オフの日」 | | 「オフの日」 | ||
| 「家でしか見られない顔」 | | 「家でしか見られない顔」 | ||
Line 51: | Line 71: | ||
| 「眠れない夜」 | | 「眠れない夜」 | ||
| 「やきもち」 | | 「やきもち」 | ||
}} | }} | ||
|} | |||
'''Example of breaking a list to include non-numbered text''' | '''Example of breaking a list to include non-numbered text''' | ||
{| style="width: 50%" | |||
{{Track list | |+ '''Use {{tlb|Indent}} with a value of 5''' | ||
|- style="vertical-align:middle;" | |||
| style="width: 45%" | | |||
{{{{tcn|Track list}} | |||
<nowiki>|</nowiki> {{tcv|「オフの日」}} | |||
<nowiki>|</nowiki> {{tcv|「家でしか見られない顔」}} | |||
<nowiki>|</nowiki> {{tcv|「練習」}} | |||
<nowiki>|</nowiki> {{tcv|「番組アンケート」}} | |||
<nowiki>|</nowiki> {{tcv|「キスの息継ぎ」}} | |||
{{{{tcn|in}}<nowiki>|</nowiki>{{tcv|5}}}} <nowiki>'''Story 2'''</nowiki> | |||
<nowiki>|</nowiki> {{tcv|「山瀬のヒヤヒヤ」}} | |||
<nowiki>|</nowiki> {{tcv|「三原の悪ふざけ」}} | |||
<nowiki>|</nowiki> {{tcv|「眠れない夜」}} | |||
<nowiki>|</nowiki> {{tcv|「やきもち」}} | |||
}} | |||
| style="text-align: center" | {{Rarr}} | |||
|{{Track list | |||
| 「オフの日」 | | 「オフの日」 | ||
| 「家でしか見られない顔」 | | 「家でしか見られない顔」 | ||
Line 73: | Line 98: | ||
| 「番組アンケート」 | | 「番組アンケート」 | ||
| 「キスの息継ぎ」 | | 「キスの息継ぎ」 | ||
{{in|5}} '''Story 2''' | |||
{{ | |||
| 「山瀬のヒヤヒヤ」 | | 「山瀬のヒヤヒヤ」 | ||
| 「三原の悪ふざけ」 | | 「三原の悪ふざけ」 | ||
| 「眠れない夜」 | | 「眠れない夜」 | ||
| 「やきもち」 | | 「やきもち」 | ||
}} | }} | ||
|} | |||
{{space|5}}Note: Indent the text (above example '''Story 2''') using the shown method or using {{tl|Block indent}} with {{para|left|4}}, like {{tlc|bi|left {{=}} 4|Text}}. | |||
{{in|10}}Do {{fc|red|not}} use {{tl|br}} because it does not indent the text enough. | |||
: | '''Example of creating a break in a long list with the same name for each entry''' | ||
{| style="width: 50%" | |||
|+ '''Use {{tlb|Indent}} with a value of 5''' | |||
|- style="vertical-align:middle;" | |||
| style="width: 45%" | | |||
{{{{tcn|Track list}} | |||
<nowiki>|</nowiki> {{tcv|It's On Me}} | |||
<nowiki>|</nowiki> {{tcv|ドラマ:天使が堕ちた日}} | |||
{{{{tcn|in}}<nowiki>|</nowiki>{{tcv|5}}}} <nowiki>'''~'''</nowiki> | |||
<nowiki>|</nowiki> {{tcp|item3_value}} {{=}} {{tcv|19}} | |||
<nowiki>|</nowiki> {{tcv|ドラマ:天使が堕ちた日}} | |||
<nowiki>|</nowiki> {{tcv|LOST ANGEL}} | |||
}} | |||
| style="text-align: center" | {{Rarr}} | |||
|{{Track list | |||
| It's On Me | |||
| ドラマ:天使が堕ちた日 | |||
{{in|5}} ~ | |||
| item3_value = 19 | |||
| ドラマ:天使が堕ちた日 | |||
| LOST ANGEL | |||
}} | |||
|} | |||
== TemplateData == | == TemplateData == | ||
Line 118: | Line 152: | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category: | [[Category:CD page templates]] | ||
[[Category: | [[Category:List templates]] | ||
[[Category:General | [[Category:General use templates]] | ||
}}}}</includeonly> | }}}}</includeonly> |
Latest revision as of 05:43, 2 February 2024
It contains usage information, categories and other content that is not part of the original template page.
|
This template uses Lua: |
Usage
This template creates an ordered Track List. See below on how to include text in the middle of the list that isn't a numbered item.
Syntax
- Simple
- {{Track list
|entry1 |entry2 |...}} - Offset starting value
- {{Track list
|start=start number |entry1 |entry2 |...}}
Examples
{{Track list | Track 01 | Track 02 | Track 03 | Track 04 | Track 05 | Track 06 | Track 07 | Track 08 | Track 09 | Track 10 }} |
→ |
|
{{Tlist | start = 20 | 「オフの日」 | 「家でしか見られない顔」 | 「練習」 | 「番組アンケート」 | 「キスの息継ぎ」 | 「山瀬のヒヤヒヤ」 | 「三原の悪ふざけ」 | 「眠れない夜」 | 「やきもち」 }} |
→ |
|
Example of breaking a list to include non-numbered text
{{Track list | 「オフの日」 | 「家でしか見られない顔」 | 「練習」 | 「番組アンケート」 | 「キスの息継ぎ」 {{in|5}} '''Story 2''' | 「山瀬のヒヤヒヤ」 | 「三原の悪ふざけ」 | 「眠れない夜」 | 「やきもち」 }} |
→ |
|
Note: Indent the text (above example Story 2) using the shown method or using {{Block indent}} with |left=4
, like {{bi|left = 4|Text}}
.
Do not use {{br}} because it does not indent the text enough.
Example of creating a break in a long list with the same name for each entry
{{Track list | It's On Me | ドラマ:天使が堕ちた日 {{in|5}} '''~''' | item3_value = 19 | ドラマ:天使が堕ちた日 | LOST ANGEL }} |
→ |
|
TemplateData
Creates an ordered track list for CD pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Start | start | Label for the first item in the list; a positive integer
| String | optional |