Template:Person image/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 8: Line 8:
{{tj|Person image
{{tj|Person image
   | Image:  
   | Image:  
   | Image Width:
   | Width:
   | Caption:
   | Caption:
}}
}}


== Parameters ==
== Parameters ==
; {{para|Image}} : The creator or company's picture, format should be Romanji Name.jpg. Do not include the {{code|File:}}, {{code|[[]]}}, or anything else.
; {{para|Image}} : The creator or company's picture, format should be Romaji Name. Do not include the {{code|File:}}, {{code|[[]]}}, or anything else.
; {{para|Image Width}} : This is used for an image that is smaller than the default 100px width. You only need to enter the number. '''Example:''' 50 or 75.
; {{para|Width}} : This is used for an image that is smaller than the default 100px width. You only need to enter the number. '''Example:''' 50 or 75.
; {{para|Caption}} : Put the creator or company's Romanji name (for creators always format them {{code|Last Name First Name}}) here. This will also be used for the {{code|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:''' Intercommunications
; {{para|Caption}} : Put the creator or company's Romaji name (for creators always format them {{code|Family Name First Name}}) here. This will also be used for the {{code|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:''' Intercommunications


== TemplateData ==
== TemplateData ==
Line 22: Line 22:
"description": "Displays an image in a creator or company infobox.",
"description": "Displays an image in a creator or company infobox.",
"params": {
"params": {
"image": {
"Image": {
"label": "Name",
"label": "Name",
"description": "The file name of the image.",
"description": "The file name of the image.",
Line 28: Line 28:
"required": true
"required": true
},
},
"image width": {
"Width": {
"label": "Width",
"label": "Width",
"description": "The width of the image if it is smaller then the default.",
"description": "The width of the image if it is smaller then the default.",
Line 35: Line 35:
"required": false
"required": false
},
},
"caption": {
"Caption": {
"label": "Cation",
"label": "Cation",
"description": "The name of the creator, or company.",
"description": "The name of the creator, or company in Romaji.",
"type": "string",
"type": "string",
"required": true
"required": true
Line 44: Line 44:
}
}
</templatedata>
</templatedata>


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


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

Latest revision as of 03: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 an image to the {{Infobox Creator}} or {{Infobox Company}}.

Usage

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

{{Person image
| Image =
| Width =
| Caption =
}}

Parameters

|Image=
The creator or company's picture, format should be Romaji Name. Do not include the File:, [[]], or anything else.
|Width=
This is used for an image that is smaller than the default 100px width. You only need to enter the number. Example: 50 or 75.
|Caption=
Put the creator or company's Romaji name (for creators always format them Family Name First 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: Intercommunications

TemplateData

Displays an image in a creator or company infobox.

Template parameters

ParameterDescriptionTypeStatus
NameImage

The file name of the image.

Stringrequired
WidthWidth

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

Default
100
Numberoptional
CationCaption

The name of the creator, or company in Romaji.

Stringrequired