Template:Track list/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
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|width=25%|{{{{tcn|Track list}}
{| style="width: 50%"
  | {{tcv|Track 01}}
|+ '''Example 2 - Using {{para|start}}'''
   | {{tcv|Track 02}}
|- style="vertical-align:middle;"
   | {{tcv|Track 03}}
| style="width: 45%" |
   | {{tcv|Track 04}}
{{Pre|{{{{tcn|Tlist}}<nowiki>|</nowiki>{{tcp|start}} {{=}} {{tcv|20}}
   | {{tcv|Track 05}}
   <nowiki>|</nowiki> {{tcv|「オフの日」}}
   | {{tcv|Track 06}}
   <nowiki>|</nowiki> {{tcv|「家でしか見られない顔」}}
   | {{tcv|Track 07}}
   <nowiki>|</nowiki> {{tcv|「練習」}}
   | {{tcv|Track 08}}
   <nowiki>|</nowiki> {{tcv|「番組アンケート」}}
   | {{tcv|Track 09}}
   <nowiki>|</nowiki> {{tcv|「キスの息継ぎ」}}
   | {{tcv|Track 10}}
   <nowiki>|</nowiki> {{tcv|「山瀬のヒヤヒヤ」}}
   <nowiki>|</nowiki> {{tcv|「三原の悪ふざけ」}}
   <nowiki>|</nowiki> {{tcv|「眠れない夜」}}
   <nowiki>|</nowiki> {{tcv|「やきもち」}}
}} }}
}} }}
{{clear}}{{br}}
| style="text-align: center" | {{Rarr}}
 
|{{Tlist|start = 20
<div style="float:right;width:45%">
{{Tlist|start = 20
   | 「オフの日」
   | 「オフの日」
   | 「家でしか見られない顔」
   | 「家でしか見られない顔」
Line 51: Line 69:
   | 「眠れない夜」
   | 「眠れない夜」
   | 「やきもち」
   | 「やきもち」
}}</div>
}}
 
|}
{{Pre|width=25%|{{{{tcn|Tlist}}|{{tcp|start}} {{=}} {{tcv|20}}
  | {{tcv|「オフの日」}}
  | {{tcv|「家でしか見られない顔」}}
  | {{tcv|「練習」}}
  | {{tcv|「番組アンケート」}}
  | {{tcv|「キスの息継ぎ」}}
  | {{tcv|「山瀬のヒヤヒヤ」}}
  | {{tcv|「三原の悪ふざけ」}}
  | {{tcv|「眠れない夜」}}
  | {{tcv|「やきもち」}}
}} }}</pre>


'''Example of breaking a list to include non-numbered text'''
'''Example of breaking a list to include non-numbered text'''
* Use {{tl|Indent}} with a value of 5.
{| style="width: 50%"
 
|+ '''Use {{tl|Indent}} with a value of 5'''
<div style="float:right;width:45%">
|- style="vertical-align:middle;"
{{Track list|
| style="width: 45%" |
{{Pre|{{{{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 80: Line 101:
   | 「眠れない夜」
   | 「眠れない夜」
   | 「やきもち」
   | 「やきもち」
}}</div>
}}
 
|}
{{Pre|width=25%|{{{{tcn|Track list}}
  | {{tcv|「オフの日」}}
  | {{tcv|「家でしか見られない顔」}}
  | {{tcv|「練習」}}
  | {{tcv|「番組アンケート」}}
  | {{tcv|「キスの息継ぎ」}}
  {{((}}{{tcn|in}}|{{tcv|5}}{{))}} <nowiki>''' Story 2'''</nowiki>
  | {{tcv|「山瀬のヒヤヒヤ」}}
  | {{tcv|「三原の悪ふざけ」}}
  | {{tcv|「眠れない夜」}}
  | {{tcv|「やきもち」}}
}} }}
{{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}}.
{{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.
{{in|10}}Do {{fc|red|not}} use {{tl|br}} because it does not indent the text enough.

Revision as of 08:23, 19 August 2023

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.

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