Template:C infobox/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 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 enteries in Infoboxes. If you find the Kanji is splitting between multiple lines then please use the second option 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 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|c infobox|Name in Romaji|Name in Kanji}}
* {{tji|C infobox|Name in Romaji|Name in Kanji}}


* {{tji|c infobox|Name in Romaji|Name in Kanji|br: yes}}
* {{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|c infobox|Enzou|エンゾウ}} {{Rarr}} {{c infobox|Enzou|エンゾウ}}
* {{tlc|C infobox|Enzou|エンゾウ}} {{Rarr}} {{C infobox|Enzou|エンゾウ}}
 
* {{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.


* {{tlc|c infobox||エンゾウ}} {{Rarr}} {{c infobox||エンゾウ}}
* <code><nowiki>{{c infobox||エンゾウ}}</nowiki></code> {{Rarr}} {{c infobox||エンゾウ}}


* {{tlc|c infobox|Enzou|}} {{Rarr}} {{c infobox|Enzou|}}
* <code><nowiki>{{c infobox|Enzou|}}</nowiki></code> {{Rarr}} {{c infobox|Enzou|}}


== TemplateData ==
== TemplateData ==
Line 32: 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": "The creator or company name in Kanji",
"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": true
"required": false
},
},
"3": {
"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" ],
"aliases": [ "br" ],
"required": false
"required": false
}
}

Latest revision as of 07:11, 7 September 2023

Light bulb.png }}
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

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.

Template parameters

ParameterDescriptionTypeStatus
Name in Romaji1

The creator or company name in Romaji

Example
Enzou
Stringrequired
Name in Kanji/Alternate Name2

The creator or company name in Kanji, unless the Category text needs to be changed.

Example
エンゾウ or Libre Shuppan
Stringrequired
Name in Kanji3

If the creator or company names needs alternate category name text then the Kanji name will go here.

Example
エンゾウ
Stringoptional
Line Breakbr

To insert a break between the Name in Romaji and Name in Kanji.

Suggested values
yes y
Stringoptional