Template:C infobox/doc: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
This template is a variation of the {{tl|c}} template and is to be used only for the creator and company enteries in Infoboxes. If | This template is a variation of the {{tl|c}} template and is to be used only for the creator and company enteries in Infoboxes. If the Kanji is splitting between multiple lines then please use the {{para|br}} to have the template insert a {{tag|br|e}} tag in the proper place. A {{tag|br|e}} tag may be included in the name but please try to avoid it as much a possible. This template can also handle when the Category name text needs to be altered for whatever reason by including the Alternate Name in the second parameter. | ||
== Usages == | == Usages == | ||
* {{tji| | * {{tji|C infobox|Name in Romaji|Name in Kanji}} | ||
* {{tji| | * {{tji|C infobox|Name in Romaji|Name in Kanji|br: yes}} | ||
* {{tji|C infobox|Name in Romaji|Alteration of Name|Name in Kanji}} | |||
== Examples == | == Examples == | ||
* {{tlc| | * {{tlc|C infobox|Enzou|エンゾウ}} {{Rarr}} {{C infobox|Enzou|エンゾウ}} | ||
* {{tlc| | * {{tlc|C infobox|Libre|Libre Shuppan|リブレ出版}} {{Rarr}} {{C infobox|Libre|Libre Shuppan|リブレ出版}} | ||
You will get an error message if you forget to include either the Romanji or Kanji. If the person or company name is written in Romanji only then please use the {{tl|C}} template instead. | You will get an error message if you forget to include either the Romanji or Kanji. If the person or company name is written in Romanji only then please use the {{tl|C}} template instead. | ||
* {{ | * <code><nowiki>{{c infobox||エンゾウ}}</nowiki></code> {{Rarr}} {{c infobox||エンゾウ}} | ||
* {{ | * <code><nowiki>{{c infobox|Enzou|}}</nowiki></code> {{Rarr}} {{c infobox|Enzou|}} | ||
== TemplateData == | == TemplateData == | ||
Line 34: | Line 36: | ||
}, | }, | ||
"2": { | "2": { | ||
"label": "Name in Kanji/Alternate Name", | |||
"description": "The creator or company name in Kanji, unless the Category text needs to be changed.", | |||
"type": "string", | |||
"example": "エンゾウ or Libre Shuppan", | |||
"required": true | |||
}, | |||
"3": { | |||
"label": "Name in Kanji", | "label": "Name in Kanji", | ||
"description": " | "description": "If the creator or company names needs alternate category name text then the Kanji name will go here.", | ||
"type": "string", | "type": "string", | ||
"example": "エンゾウ", | "example": "エンゾウ", | ||
"required": | "required": false | ||
}, | }, | ||
" | "br": { | ||
"label": "Line Break", | "label": "Line Break", | ||
"description": "To insert a break between the Name in Romaji and Name in Kanji.", | "description": "To insert a break between the Name in Romaji and Name in Kanji.", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ "yes", "y" ], | "suggestedvalues": [ "yes", "y" ], | ||
"required": false | "required": false | ||
} | } | ||
Line 56: | Line 64: | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category:Infobox formatting templates]] | [[Category:Infobox formatting templates]] | ||
}}}}</includeonly> | }}}}</includeonly> |
Latest revision as of 06:11, 7 September 2023
It contains usage information, categories and other content that is not part of the original template page.
|
This template is a variation of the {{c}} template and is to be used only for the creator and company enteries in Infoboxes. If the Kanji is splitting between multiple lines then please use the |br=
to have the template insert a <br />
tag in the proper place. A <br />
tag may be included in the name but please try to avoid it as much a possible. This template can also handle when the Category name text needs to be altered for whatever reason by including the Alternate Name in the second parameter.
Usages
- {{C infobox
|Name in Romaji |Name in Kanji}}
- {{C infobox
|Name in Romaji |Name in Kanji |br=yes}}
- {{C infobox
|Name in Romaji |Alteration of Name |Name in Kanji}}
Examples
{{C infobox|Libre|Libre Shuppan|リブレ出版}}
→ Libre Shuppan (リブレ出版)
You will get an error message if you forget to include either the Romanji or Kanji. If the person or company name is written in Romanji only then please use the {{C}} template instead.
{{c infobox||エンゾウ}}
→ Missing name in Romaji
{{c infobox|Enzou|}}
→ Enzou Missing name in Kanji
TemplateData
To format the creator and company enteries in infoboxes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name in Romaji | 1 | The creator or company name in Romaji
| String | required |
Name in Kanji/Alternate Name | 2 | The creator or company name in Kanji, unless the Category text needs to be changed.
| String | required |
Name in Kanji | 3 | If the creator or company names needs alternate category name text then the Kanji name will go here.
| String | optional |
Line Break | br | To insert a break between the Name in Romaji and Name in Kanji.
| String | optional |