Template-info.svg  Templat Dokumentasi (untuk templat di atas, kadang-kadang tersembunyi atau tak terlihat) (lihat - sunting - riwayat)
Description

Template ini memberikan cerita sampul yang dimiliki oleh sampul bab.

Dependencies

This template uses the subpages {{Which cover/numbers}} and {{Which cover/check}}.

Syntax

Type {{Which cover|<chapter number 1>|<chapter number 2>}}.

Parameters
  • 1= the number of a chapter. The chapter cover must belong to a cover story.
  • 2= the number of another chapter. The chapter cover must belong to the same cover story of the first given chapter - optional.
Samples
Updating the template

In order to add a new cover to a cover series, add to {{Which cover/numbers}} the number of the chapter, in four digits format and separated by a single space, to the string associated with the cover story. For example:

...
<!-- cp9 -->
| 14 = 0491 0492 0493 0494 0495 0496 0497 0498 0499 0500 0501 0502 0504 0505 0506 0508 0509 0510 0511 0512 0513 0514 0515 0517 0518 0519 0521 0522 0523 0524 0525 0527 0528

is the string associated to the CP9's Independent Report.

In order to add a new set/cover story, add a new "case" to the switch in {{Which cover/numbers}}, like

...OTHER...
<!-- from the decks 2 -->
| 26 = 0805 0806 0807 0808 0810 0812 0813 0814 0815 0816 0818 0819 0820 0822 0823 0825 0826 0827 0828 0830 0831 0834 0836 0837 0838
...OTHER...
<!-- new cover story
| XX = ####
}}<noinclude>
[[Category:Subpages]]
</noinclude>

where XX is a number following the sequence of the switch and #### is the first chapter of the cover story.

In {{Which cover}}, instead, add a new check in the first part before the output

...OTHER...
{{#ifeq: {{Which cover/check | ch = {{{1}}} | string = 26 }} | 0 
 | <!-- not found -->
 | 26
}}
{{#ifeq: {{Which cover/check | ch = {{{1}}} | string = 27 }} | 0 
 | <!-- not found -->
 | 27
}}
...OTHER...
{{#ifeq: {{Which cover/check | ch = {{{1}}} | string = XX }} | 0 
 | <!-- not found -->
 | XX
}}
<!-- output -->
| 1 = [[Buggy's Crew: After the Battle!]] Vol. {{Which cover/check | ch = {{{1}}} | ch2 = {{{2|}}} | string = 1 }}
...OTHER...

and the actual text line in the output part:

...OTHER...
| 26 = [[From the Decks of the World: The 500,000,000 Man Arc]] Vol. {{Which cover/check | ch = {{{1}}} | ch2 = {{{2|}}} | string = 26 }}
| 27 = [[The Stories of the Self-Proclaimed Straw Hat Grand Fleet]] Vol. {{Which cover/check | ch = {{{1}}} | ch2 = {{{2|}}} | string = 27 }}
...OTHER...
| XX = [[NEW COVER STORY NAME]] Vol. {{Which cover/check | ch = {{{1}}} | ch2 = {{{2|}}} | string = XX }}
}}<noinclude>
{{Documentation}}
</noinclude>

In both sections, the XX is the same code used on {{Which cover/numbers}} for the chapter sequence and it's used to identify that story.

Subpages syntax
  • {{Which cover/numbers|<string>}}
    • 1= given a free parameter the template will output that string line if exists. Strings identified by just numbers in progression and represent the chapters belonging to a cover story.
  • {{Which cover/check|<ch=>|<ch2=>|<string=>}}
    • string= is the string of chapters used on {{Which cover/numbers}}
    • ch= is a chapter number. The template will check if that number is present in the string specified with string= and if it's the case, it will output it's position in the sequence. Example: {{Which cover/check|<ch=37>|<string=1>}} gives 3
    • ch2= is another optional chapter number. If given, the template will check both ch= and ch2=. Example: {{Which cover/check|<ch=373>|<ch2=40>|<string=1>}} gives 3-5
See Also
Kunjungi Templat:Which cover/doc untuk mengedit teks ini! (Bagaimana ini bekerja?) (segarkan teks ini - kenapa?)
Community content is available under CC-BY-SA unless otherwise noted.