Changes

Jump to: navigation, search

Template:Japanese names/core

2,896 bytes added, 1 year ago
top: Restoring revision 5061100 by User:Dinoguy1000 on 2022-09-19 01:58:35. fix for pages that 1) grab their Japanese name from the main page, 2) have kana-only names, 3) the main page has a kanji+kana name, and 4) the main page has a base roma...
5 = Base name
6 = Kana name
7 = Base romaji name8 = Translated base name
-->{{{temp|[[SMW::on]]}}}<!--
-->{{ #vardefine: $kana_only | {{ #pos: {{{#userparam}}} | kana_only }} }}<!---->{{ #vardefine: $ja_name no_ruby | {{ #pos: {{{#userparam}}} | no_ruby }} }}<!---->{{ #vardefine: $no_properties | {{ #pos: {{{#userparam}}} | no_properties }} }}<!---->{{ #vardefine: $ja_trans_name | {{ #replace: {{ #replace: {{ #replace: {{{#userparam|}}} | kana_only }} | no_ruby }} | no_properties }} }}<!---->{{ #switch: {{ lc: {{ #replace: {{ #var: $ja_trans_name }} }} }}| {{lc: {{ #replace: {2{ #explode: {{{1}}} | ( }} }} }} | {{ lc: {{ #replace: {{ #explode: {{ #titleparts: {{PAGENAME}} }} | ( }}}} }} = [[Category:Pages with an unnecessary translated Japanese name]]}}<!---->{{ #vardefine: $romaji_name | {{{3<includeonly>|</includeonly>}}}}} {{ #if: {{ #var: $no_properties }}|| [[Romaji name::{{ #var: $romaji_name }}| ]]}}<!---->{{ #vardefine: $ja_trans_name | {{ #var: $ja_trans_name | {{ #if: {{{4<includeonly>|</includeonly>}}} | {{ #ifeq: {{ lc: {{ #replace: {{{4}}} }} }} | {{ lc: {{ #replace: {{ #explode: {{ #titleparts: {{PAGENAME}} }} | ( }} }} }} | | {{{4}}} }} | {{ #ifeq: {{ lc: {{ #replace: {{ #explode: {{{1}}} | ( }} }} }} | {{ lc: {{ #replace: {{ #explode: {{PAGENAME}} | ( }} }}} } | | {{ #explode: {{{1|} }}| ( }} }} }} }}}}{{ #if: {{ #var: $no_properties }} || [[Translated Japanese name::{{ #var: $ja_trans_name }}| ]]}}<!---->{{ #vardefine: $ja_base_name | {{ #if: {{ #var: $kana_only }} | {{{6|}}} | {{{5<includeonly>|</includeonly>}}} }}}}{{ #if: {{ #var: $no_properties }} || [[Japanese base name::{{ #var: $ja_base_name }}| ]]}}<!---->{{ #vardefine: $ja_kana_name | {{ #if: {{ #var: $no_ruby }} | {{{5|}}} | {{{6<includeonly>|</includeonly>}}} }}} }{{ #if: {{ #var: $no_properties }}|| [[Japanese kana name::{{ #var: $ja_kana_name }}| ]]}}<!---->{{ #vardefine: $ja_name base_romaji_name | {{ #if: {{ #var: $kana_only }} || {{{7<includeonly>|</includeonly>}}} }} }}{{ #if: {{ #var: $no_properties }} || [[Base romaji name::{{ #var: $base_romaji_name }}| ]] }}<!---->{{ #vardefine: $ja_base_trans_name | {{ #switchif: {{ #var: $kana_only }} || {{{8<includeonly>|</includeonly>}}} }} }}{{#userparamif: {{ #var: $no_properties }} || [[Translated Japanese base name::{{ #var: $ja_base_trans_name }}| ]] }} <!---->{{ #vardefine: $ja_name | {{ #if: {{ #var: $kana_only = }} | {{ #var: $ja_kana_name }} | no_ruby = {{ #if: {{ #var: $ja_base_name no_ruby }} | #default = {{ #var: $ja_name ja_base_name }} | {{{2<includeonly>|</includeonly>}}} }} }} }}{{ #if: {{ #var: $no_properties }} || [[Japanese name::{{ #var: $ja_name }}| ]]}}<!-- 
--><div class="hlist">
; Japanese: <span class="nowrap" lang="ja">{{ #var: $ja_name }}</span><!--
-->{{ #ifeq: {{ #var: $ja_name }} | {{ #var: $ja_base_name }} ||
; Base: <span classlang="nowrapja-Jpan" >{{ #var: $ja_base_name }}</span> }}<!---->{{ #if: {{ #var: $base_romaji_name }} |; Base ''rōmaji'': ''<span lang="ja-JpanLatn-Hepburn">{{ #var: $ja_base_name base_romaji_name }}</span> '' }}<!---->{{ #if: {{ #var: $ja_base_trans_name }} |; Base translated: {{ #var: $ja_base_trans_name }} }}<!--
-->{{ #ifeq: {{ #var: $ja_name }} | {{ #var: $ja_kana_name }} ||
; Kana: <span class="nowrap" lang="ja-Hrkt">{{ #var: $ja_kana_name }}</span> }}<!---->{{ #if: {{{3<includeonly>|</includeonly>}#var: $romaji_name }} |; Romaji{{ #if: {{ #var: $base_romaji_name }} | Furigana ''rōmaji'' | ''Rōmaji'' }}: ''<span class="nowrap" lang="ja-Latn-Hepburn">{{ #var: $romaji_name }}</span>'' }}<!---->{{ #if: {{ #var: $ja_trans_name }} | ; {{ #ifeqif: {{ #var: $ja_trans_name ja_base_trans_name }} | {{ #explode: {{ #titleparts: {{PAGENAME}} }} Furigana translated | ( Translated }} ||; Translated: <span class="nowrap">{{ #var: $ja_trans_name }}</span> }} }}
</div><!--
 -->{{{temp|[[SMW::off]]}}}<!--errors/missing info tracking-->{{ #if: {{ #var: $ja_name }} | {{ #if: {{ #var: $romaji_name }} || [[Category:Pages needing a romaji name]] }}{{ #ifeq: {{ #var: $ja_name }} | {{ #var: $ja_base_name }} | {{ #if: {{ #var: $base_romaji_name }} | [[Category:Pages with a romaji base name but no Japanese base name]] }}{{ #if: {{ #var: $ja_base_trans_name }} | [[Category:Pages with a translated Japanese base name but no Japanese base name]] }} }} | {{ #if: {{ #var: $romaji_name }}{{ #var: $base_romaji_name }} | [[Category:Pages with a romaji name but no Japanese name]] }}{{ #if: {{ #var: $ja_trans_name }}{{ #var: $ja_base_trans_name }} | [[Category:Pages with a translated Japanese name but no Japanese name]] }}}}<noinclude>{{Documentation|Template:Japanese names/doc}}</noinclude>

Navigation menu