Permanently protected template

Difference between revisions of "Template:Japanese names"

From Yugipedia
Jump to: navigation, search
(fix kana_only and no_ruby for main pages)
(if a manual translated name is given, pass it through the query via #userparam instead of abusing variables to pass state between templates (no needed for the non-query branch since that passes in the translated name directly already))
Line 1: Line 1:
{{ #vardefine: $ja_trans_name | {{{3|}}} }}<!--
+
{{ #if: {{{main|}}}
 
 
-->{{ #if: {{{main|}}}
 
 
| {{IfSemantics
 
| {{IfSemantics
 
   | {{ #ask: [[{{{main}}}]]
 
   | {{ #ask: [[{{{main}}}]]
Line 9: Line 7:
 
     |?Japanese base name
 
     |?Japanese base name
 
     |?Japanese kana name
 
     |?Japanese kana name
     |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }}
+
     |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} {{{3|}}}
 
     |format = template
 
     |format = template
 
     |template = Japanese names/core
 
     |template = Japanese names/core

Revision as of 14:37, 16 June 2019

Japanese
{{{1}}}
Rōmaji
{{{2}}}
Translated
{{{3}}}