Template:Track list/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} {{lua|Module:List}} {{tsh|tlist}} __NOTOC__ == Usage == This template creates an ordered Track List. If you would like to include text in the middle of the list that isn't a numbered item you will need to break the list into separate template calls and use the {{para|start}} parameter with the next track number on the next list. See Below == Syntax == ; Simple : {{tji|Track list|entr...")
 
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 5: Line 5:


== Usage ==
== Usage ==
This template creates an ordered Track List. If you would like to include text in the middle of the list that isn't a numbered item you will need to break the list into separate template calls and use the {{para|start}} parameter with the next track number on the next list. [[#Example of breaking a list to include non-numbered text|See Below]]
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 ==
<div style="float:right;width:45%">
{| 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
}}</div>
}}
 
|}
<pre>
{{Track list
  | Track 01
  | Track 02
  | Track 03
  | Track 04
  | Track 05
  | Track 06
  | Track 07
  | Track 08
  | Track 09
  | Track 10
}}</pre>
{{clear}}{{br}}


<div style="float:right;width:45%">
{| style="width: 50%"
{{Tlist|start = 20
|+ '''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|「やきもち」}}
}}
| style="text-align: center" | {{Rarr}}
|{{Tlist
  | start = 20
   | 「オフの日」
   | 「オフの日」
   | 「家でしか見られない顔」
   | 「家でしか見られない顔」
Line 52: Line 71:
   | 「眠れない夜」
   | 「眠れない夜」
   | 「やきもち」
   | 「やきもち」
}}</div>
}}
|}


<pre>
'''Example of breaking a list to include non-numbered text'''
{{Tlist|start:20
{| style="width: 50%"
|+ '''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 61: Line 98:
   | 「番組アンケート」
   | 「番組アンケート」
   | 「キスの息継ぎ」
   | 「キスの息継ぎ」
  {{in|5}} '''Story 2'''
   | 「山瀬のヒヤヒヤ」
   | 「山瀬のヒヤヒヤ」
   | 「三原の悪ふざけ」
   | 「三原の悪ふざけ」
   | 「眠れない夜」
   | 「眠れない夜」
   | 「やきもち」
   | 「やきもち」
}}</pre>
}}
|}
{{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 breaking a list to include non-numbered text ===
<div style="float:right;width:45%">
{{Track list|
  | 「オフの日」
  | 「家でしか見られない顔」
  | 「練習」
  | 「番組アンケート」
  | 「キスの息継ぎ」
}}
{{space|15}} ''' Story 2'''
{{Track list|start = 6
  | 「山瀬のヒヤヒヤ」
  | 「三原の悪ふざけ」
  | 「眠れない夜」
  | 「やきもち」
}}</div>


<pre>
'''Example of creating a break in a long list with the same name for each entry'''
{{Track list|
{| 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|ドラマ:天使が堕ちた日}}
::: ''' Story 2'''
   {{{{tcn|in}}<nowiki>|</nowiki>{{tcv|5}}}} <nowiki>'''~'''</nowiki>
{{Track list|start: 6
   <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
}}
}}
</pre>
|}
 
: Note: You can indent the text (above example '''Story 2''') using the shown method or with the {{tl|space}} template. Just enter the number of spaces you would like to indent. Like: {{tji|space|15}}


== TemplateData ==
== TemplateData ==
Line 122: Line 152:


<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:CD page templates]]
[[Category:Formatting Templates]]
[[Category:List templates]]
[[Category:General use templates]]
[[Category:General use templates]]
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 06:43, 2 February 2024

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.


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

Example 1 - Normal Usage
{{Track list
  | Track 01
  | Track 02
  | Track 03
  | Track 04
  | Track 05
  | Track 06
  | Track 07
  | Track 08
  | Track 09
  | Track 10
}}
  1. Track 01
  2. Track 02
  3. Track 03
  4. Track 04
  5. Track 05
  6. Track 06
  7. Track 07
  8. Track 08
  9. Track 09
  10. Track 10
Example 2 - Using |start=
{{Tlist
 | start = 20
 | 「オフの日」
 | 「家でしか見られない顔」
 | 「練習」
 | 「番組アンケート」
 | 「キスの息継ぎ」
 | 「山瀬のヒヤヒヤ」
 | 「三原の悪ふざけ」
 | 「眠れない夜」
 | 「やきもち」
}}
  1. 「オフの日」
  2. 「家でしか見られない顔」
  3. 「練習」
  4. 「番組アンケート」
  5. 「キスの息継ぎ」
  6. 「山瀬のヒヤヒヤ」
  7. 「三原の悪ふざけ」
  8. 「眠れない夜」
  9. 「やきもち」

Example of breaking a list to include non-numbered text

Use {{Indent}} with a value of 5
{{Track list
 | 「オフの日」
 | 「家でしか見られない顔」
 | 「練習」
 | 「番組アンケート」
 | 「キスの息継ぎ」
 {{in|5}} '''Story 2'''
 | 「山瀬のヒヤヒヤ」
 | 「三原の悪ふざけ」
 | 「眠れない夜」
 | 「やきもち」
}}
  1. 「オフの日」
  2. 「家でしか見られない顔」
  3. 「練習」
  4. 「番組アンケート」
  5. 「キスの息継ぎ」
          Story 2
  6. 「山瀬のヒヤヒヤ」
  7. 「三原の悪ふざけ」
  8. 「眠れない夜」
  9. 「やきもち」

     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

Use {{Indent}} with a value of 5
{{Track list
 | It's On Me
 | ドラマ:天使が堕ちた日
 {{in|5}} '''~'''
 | item3_value = 19
 | ドラマ:天使が堕ちた日
 | LOST ANGEL
}}
  1. It's On Me
  2. ドラマ:天使が堕ちた日
          ~
  3. ドラマ:天使が堕ちた日
  4. LOST ANGEL

TemplateData

Creates an ordered track list for CD pages.

Template parameters

ParameterDescriptionTypeStatus
Startstart

Label for the first item in the list; a positive integer

Default
1
Stringoptional