Template:Multiple covers/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:


==Usage==
==Usage==
When using it, copy the text below and paste it in the infobox under the '''Cover''' option. Do {{font color|red|'''not'''}} delete the items that do not have information, leave them as they are.
When using it, copy the text below and paste it in the infobox under the {{para|Cover}} parameter. Do {{fcb|red|not}} delete the items that do not have information, leave them as they are.


{{tj|Multiple Covers
{{Pre|
   | Tab1:
{{{{fcb|#4169e1|Multiple Covers}}
   | Regular:
   | {{fcb|#2e8b57|Tab1}} = 
   | Regular Width:
   | {{fcb|#2e8b57|Regular}} =
   | Caption1:
   | {{fcb|#2e8b57|Regular width}} =
<br />
   | {{fcb|#2e8b57|Caption1}} =
   | Tab2
 
   | Limited:
   | {{fcb|#2e8b57|Tab2}} =
   | Limited Width:
   | {{fcb|#2e8b57|Limited}} =
   | Caption2:
   | {{fcb|#2e8b57|Limited width}} =
}}
   | {{fcb|#2e8b57|Caption2}} =
}} }}




Line 22: Line 23:
; {{para|Tab1}} : This is the tab name. If you leave it blank the default display will be '''Regular Edition'''.
; {{para|Tab1}} : This is the tab name. If you leave it blank the default display will be '''Regular Edition'''.
; {{para|Regular}} : The file name goes here for the CD's '''Regular''' cover, format should be Romanji Name.jpg. Do not include the <code>File:</code>, <code>[[]]</code>, or anything else.
; {{para|Regular}} : The file name goes here for the CD's '''Regular''' cover, format should be Romanji Name.jpg. Do not include the <code>File:</code>, <code>[[]]</code>, or anything else.
; {{para|Regular Width}} : This is used for a cover that is smaller than the default 300px width. You only need to enter the number. '''Example:''' 150 or 200.
; {{para|Regular width}} : This is used for a cover that is smaller than the default 300px width. You only need to enter the number. '''Example:''' 150 or 200.
; {{para|Caption1}} : Use the Romanji title of the cd here. This will also be used for the Alt Text which is rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser). {{font color|red|PLEASE ALWAYS INCLUDE THIS!}} '''Example:''' Saezuru Tori wa Habatakanai Cover
; {{para|Caption1}} : Use the Romanji title of the cd here. This will also be used for the Alt Text which is rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser). {{font color|red|PLEASE ALWAYS INCLUDE THIS!}} '''Example:''' Saezuru Tori wa Habatakanai Cover
; {{para|Tab2}} : This is the tab name. If you leave it blank the default display will be '''Limited Edition'''.
; {{para|Tab2}} : This is the tab name. If you leave it blank the default display will be '''Limited Edition'''.
; {{para|Limited}} : The file name goes here for the CD's '''Limited/Special Edition''' cover, format should be Romanji Name Limited Edition.jpg. Do not include the <code>File:</code>, <code>[[]]</code>, or anything else.
; {{para|Limited}} : The file name goes here for the CD's '''Limited/Special Edition''' cover, format should be Romanji Name Limited Edition.jpg. Do not include the <code>File:</code>, <code>[[]]</code>, or anything else.
; {{para|Limited Width}} : This is used for a cover that is smaller than the default 300px width. You only need to enter the number. '''Example:''' 150 or 200.
; {{para|Limited width}} : This is used for a cover that is smaller than the default 300px width. You only need to enter the number. '''Example:''' 150 or 200.
; {{para|Caption2}} : You can use a descriptive name here. This will also be used for the Alt Text which is rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser). {{font color|red|PLEASE ALWAYS INCLUDE THIS!}} '''Example:''' Animate Limited Edition Cover
; {{para|Caption2}} : You can use a descriptive name here. This will also be used for the Alt Text which is rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser). {{font color|red|PLEASE ALWAYS INCLUDE THIS!}} '''Example:''' Animate Limited Edition Cover
== TemplateData ==
<templatedata>
{
"description": "Displays the Cover image in CD Infoboxes.",
"params": {
"Tab1": {
"label": "Tab 1 Name",
"description": "Text displayed on first tab.",
"type": "string",
"default": "Regular Edition",
"required": false
},
"Regular": {
"label": "Regular Edition Cover",
"description": "The file name of the regular edition cover image.",
"type": "number",
"required": true
},
"Regular width": {
"label": "Width",
"description": "The width of the image if it is smaller then the default.",
"type": "string",
"default": "300",
"required": false
},
"Caption1": {
"label": "Regular Cover Caption",
"description": "The Romanji title of CD is generally used for this.",
"type": "string",
"required": true
},
"Tab2": {
"label": "Tab 2 Name",
"description": "Text displayed on second tab.",
"type": "string",
"default": "Limited Edition",
"required": false
},
"Limited": {
"label": "Limited Edition Cover",
"description": "The file name of the limited or special edition cover image.",
"type": "number",
"required": true
},
"Limited width": {
"label": "Width",
"description": "The width of the image if it is smaller then the default.",
"type": "string",
"default": "300",
"required": false
},
"Caption2": {
"label": "Limited or Special Cover Caption",
"description": "The Romanji title of CD is generally used for this.",
"type": "string",
"required": true
}
}
}
</templatedata>


<includeonly>{{sandbox other||{{testcases other||
<includeonly>{{sandbox other||{{testcases other||


<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Infobox formatting templates]]
[[Category:General Use Templates]]
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 04:31, 20 August 2023

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

This is a template for adding multiple images to the infobox of CD pages.

Usage

When using it, copy the text below and paste it in the infobox under the |Cover= parameter. Do not delete the items that do not have information, leave them as they are.

{{Multiple Covers
  | Tab1 =  
  | Regular =
  | Regular width =
  | Caption1 = 

  | Tab2 = 
  | Limited =
  | Limited width = 
  | Caption2 = 
}}


Parameters Expained

|Tab1=
This is the tab name. If you leave it blank the default display will be Regular Edition.
|Regular=
The file name goes here for the CD's Regular cover, format should be Romanji Name.jpg. Do not include the File:, [[]], or anything else.
|Regular width=
This is used for a cover that is smaller than the default 300px width. You only need to enter the number. Example: 150 or 200.
|Caption1=
Use the Romanji title of the cd here. This will also be used for the Alt Text which is rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser). PLEASE ALWAYS INCLUDE THIS! Example: Saezuru Tori wa Habatakanai Cover
|Tab2=
This is the tab name. If you leave it blank the default display will be Limited Edition.
|Limited=
The file name goes here for the CD's Limited/Special Edition cover, format should be Romanji Name Limited Edition.jpg. Do not include the File:, [[]], or anything else.
|Limited width=
This is used for a cover that is smaller than the default 300px width. You only need to enter the number. Example: 150 or 200.
|Caption2=
You can use a descriptive name here. This will also be used for the Alt Text which is rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser). PLEASE ALWAYS INCLUDE THIS! Example: Animate Limited Edition Cover

TemplateData

Displays the Cover image in CD Infoboxes.

Template parameters

ParameterDescriptionTypeStatus
Tab 1 NameTab1

Text displayed on first tab.

Default
Regular Edition
Stringoptional
Regular Edition CoverRegular

The file name of the regular edition cover image.

Numberrequired
WidthRegular width

The width of the image if it is smaller then the default.

Default
300
Stringoptional
Regular Cover CaptionCaption1

The Romanji title of CD is generally used for this.

Stringrequired
Tab 2 NameTab2

Text displayed on second tab.

Default
Limited Edition
Stringoptional
Limited Edition CoverLimited

The file name of the limited or special edition cover image.

Numberrequired
WidthLimited width

The width of the image if it is smaller then the default.

Default
300
Stringoptional
Limited or Special Cover CaptionCaption2

The Romanji title of CD is generally used for this.

Stringrequired