Difference between revisions of "Template:Japanese subscript"

From Detective Conan Wiki
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}|<small>({{lang|ja|{{{1}}}}})</small>}}</includeonly><noinclude>{{Documentation}}
 
<includeonly>{{#if:{{{1|}}}|<small>({{lang|ja|{{{1}}}}})</small>}}</includeonly><noinclude>{{Documentation}}
This template is a shortcut for applying the '''[[Template:Lang]]''' Japanese template, and the HTML tag '''small'''. Since immediate and selectable tooltips are not enabled in this wiki, the [[Template:Bracket]] does not operate as well as in other ''Detective Conan'' wikis such as '''[https://www.conanpedia.com/%E9%A6%96%E9%A1%B5 Conanpedia]'''. As such, when writing biography (mainly) for staff pages, corresponding Japanese terminologies/appendages need to be added beside the English translation. However, Japanese characters of normal sizes sabotages the website's display slightly, so a small Japanese text is conducted.
+
This template is a shortcut for applying the '''[[Template:Lang]]''' Japanese template, and the HTML tag <code><nowiki><small></nowiki></code>. Since immediate and selectable tooltips are not enabled in this wiki, the [[Template:Bracket]] does not operate as well as in other ''Detective Conan'' wikis such as '''[https://www.conanpedia.com/%E9%A6%96%E9%A1%B5 Conanpedia]'''. As such, when writing biography (mainly) for staff pages, corresponding Japanese terminologies/appendages need to be added beside the English translation. However, Japanese characters of normal sizes sabotages the website's display slightly, so a small Japanese text is conducted.
  
This template has been in need since the staff pages expanded, as there are many pages from the staff section require this feature.
+
The original combination of tags to attain same effect is: <code><nowiki><small>({{lang|ja|扇沢 延男}})</small></nowiki></code>. This template has been in need since the staff pages expanded, as there are many pages from the staff section require this feature. '''Note: there is no need to insert full name of this template ("Japanese subscript") when calling this subroutine, a shorthand version "Jp" is preferred.'''
 
 
<!-- The original combination of tags to attain same effect is: <small>({{lang|ja|扇沢 延男}})</small> -->
 
  
 
By utilising this template, the source code of each staff page will become much cleaner and user/editor friendly; meanwhile, it also saves the number of bytes contained in a single page too! Take the [[Junichi Miyashita]] page for example, by replacing everything with the current template, it reduces 420 bytes in total!
 
By utilising this template, the source code of each staff page will become much cleaner and user/editor friendly; meanwhile, it also saves the number of bytes contained in a single page too! Take the [[Junichi Miyashita]] page for example, by replacing everything with the current template, it reduces 420 bytes in total!

Latest revision as of 02:29, 3 August 2024

Documentation icon Template documentation[create]

This template is a shortcut for applying the Template:Lang Japanese template, and the HTML tag <small>. Since immediate and selectable tooltips are not enabled in this wiki, the Template:Bracket does not operate as well as in other Detective Conan wikis such as Conanpedia. As such, when writing biography (mainly) for staff pages, corresponding Japanese terminologies/appendages need to be added beside the English translation. However, Japanese characters of normal sizes sabotages the website's display slightly, so a small Japanese text is conducted.

The original combination of tags to attain same effect is: <small>({{lang|ja|扇沢 延男}})</small>. This template has been in need since the staff pages expanded, as there are many pages from the staff section require this feature. Note: there is no need to insert full name of this template ("Japanese subscript") when calling this subroutine, a shorthand version "Jp" is preferred.

By utilising this template, the source code of each staff page will become much cleaner and user/editor friendly; meanwhile, it also saves the number of bytes contained in a single page too! Take the Junichi Miyashita page for example, by replacing everything with the current template, it reduces 420 bytes in total!

Hirohito Ochi {{jp|越智 浩仁}} directed the anime under alias Koujin Ochi {{jp|於地 紘仁}}.

Results in
Hirohito Ochi (越智 浩仁) directed the anime under alias Koujin Ochi (於地 紘仁).