Difference between revisions of "Template:Infobox/Yu-Gi-Oh!/Person"

From Yugipedia
Jump to: navigation, search
(tweak the defaultsort code per {{Infobox character}})
(Restoring revision 4993212 by User:Deltaneos on 2022-06-05 23:57:02. "italicise romanised names (HTML rather than wiki markup to avoid breaking pages that have already added the italics manually)")
 
(11 intermediate revisions by 3 users not shown)
Line 3: Line 3:
  
 
</noinclude>
 
</noinclude>
{| class="box info colored bordered innerbordered type-animanga fill-td list-noicon {{#switch:{{{float|}}}|left=float-left-clear|none=|right|float-right-clear}}" style="line-height:160%"
+
{| class="box info colored bordered innerbordered type-animanga fill-td plainlist float-right-clear" style="line-height:160%"
 
|-
 
|-
 
! colspan=2 class="mainheader" | {{var|{{{name|}}}|{{PAGENAME}}}}{{
 
! colspan=2 class="mainheader" | {{var|{{{name|}}}|{{PAGENAME}}}}{{
Line 9: Line 9:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan=2 class="imagecell" {{!}}
 
{{!}} colspan=2 class="imagecell" {{!}}
{{#if:{{{image name|}}}
+
{{ #if: {{{image name|}}}
| [[File:{{{image name|}}}|{{var|{{{image size|}}}|300px}}|{{var|{{{image caption|}}}|{{var|{{{name|}}}|{{PAGENAME}}}}}}]]
+
| [[File:{{{image name}}}|{{ #vardefine: $width | {{ #ifexpr: {{ #imgw: {{{image name}}} }} < 300 | {{ #imgw: {{{image name}}} }} | 300 }} }}{{ #iferror: {{ #ifexpr: {{{image size}}} < 300 | {{{image size}}} | {{ #var: $width }} }} | {{ #var: $width }} }}px|{{var|{{{image caption|}}}|{{var|{{{name|}}}|{{PAGENAME}}}}}}]]
| {{#if:{{{image|}}}|{{{image|}}}| }}
+
| {{ #if: {{{image|}}} | {{{image}}} }}
 
}}
 
}}
 
| }}{{#if:{{{english name|}}}|<nowiki/>
 
| }}{{#if:{{{english name|}}}|<nowiki/>
Line 27: Line 27:
 
!{{!}} Rōmaji name
 
!{{!}} Rōmaji name
 
{{!}}
 
{{!}}
{{{romaji name}}}
+
<i>{{{romaji name}}}</i>
 
| }}{{#if:{{{korean name|}}}|<nowiki/>
 
| }}{{#if:{{{korean name|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
Line 42: Line 42:
 
!{{!}} Romanized Korean name
 
!{{!}} Romanized Korean name
 
{{!}}
 
{{!}}
{{{romanized korean name}}}
+
<i>{{{romanized korean name}}}</i>
 
| }}{{#if:{{{alternate name|}}}|<nowiki/>
 
| }}{{#if:{{{alternate name|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
Line 51: Line 51:
 
{{!}}-
 
{{!}}-
 
!{{!}} Birth
 
!{{!}} Birth
{{!}}
+
{{!}} [[Birthdate::{{ #explode: {{ #explode: {{{birthdate}}} | &lt;ref }} | {{citation needed}} }} | ]]{{{birthdate}}}
{{IfSemantics
 
  |{{IfNegref
 
    |{{#negref:{{{birthdate}}}|$s$|$ref$|[[Birthdate::$s$]]$ref$}}
 
    |{{{birthdate}}}
 
  }}
 
  |{{{birthdate}}}
 
}}
 
 
| }}{{#if:{{{deathdate|}}}|<nowiki/>
 
| }}{{#if:{{{deathdate|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!{{!}} Death
 
!{{!}} Death
{{!}}
+
{{!}} [[Death date::{{ #explode: {{{deathdate}}} | &lt;ref }}| ]]{{{deathdate}}}
{{IfSemantics
 
  |{{IfNegref
 
    |{{#negref:{{{deathdate}}}|$s$|$ref$|[[Death date::$s$]]$ref$}}
 
    |{{{deathdate}}}
 
  }}
 
  |{{{deathdate}}}
 
}}
 
 
| }}{{#if:{{{gender|}}}|<nowiki/>
 
| }}{{#if:{{{gender|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
!{{!}} Gender
 
!{{!}} Gender
{{!}}
+
{{!}} [[Gender::{{ ucfirst: {{ #explode: {{{gender}}} | &lt;ref }} }}| ]]{{ ucfirst: {{{gender}}} }}
{{IfSemantics
 
  |&nbsp;{{#arraymap:{{{gender|}}}|*|x|{{IfNegref|{{#negref:{{ucfirst:x}}|$s$|$ref$|[[Gender::$s$]]$ref$}}|{{{gender}}}}}|<br />&nbsp;}}
 
  |{{{gender}}}
 
}}
 
 
| }}{{#if:{{{relatives|}}}|<nowiki/>
 
| }}{{#if:{{{relatives|}}}|<nowiki/>
 
{{Infobox/Character/Other
 
{{Infobox/Character/Other
Line 100: Line 82:
 
         #if: {{{defaultsort|}}}
 
         #if: {{{defaultsort|}}}
 
         | {{{defaultsort}}}
 
         | {{{defaultsort}}}
         | {{Last name}}, {{ #explode: {{PAGENAME}} | {{ #explode: {{PAGENAME}} || -1 }} }}
+
         | {{Last name|full=1}}
 
       }}}}
 
       }}}}
 
     }}
 
     }}
Line 109: Line 91:
 
<pre>
 
<pre>
 
{{Infobox/Yu-Gi-Oh!/Person
 
{{Infobox/Yu-Gi-Oh!/Person
| name                   =  
+
| name         =  
| image name             =  
+
| image name   =  
| image size             =  
+
| image size   =  
| image caption           =  
+
| image caption =  
| english name           =  
+
| english name =  
| japanese name           =  
+
| japanese name =  
| romaji name             =  
+
| romaji name   =  
| gender                 =  
+
| gender       =  
| birthdate               =  
+
| birthdate     =  
| deathdate               =  
+
| deathdate     =  
| relatives               =  
+
| relatives     =  
| occupation             =  
+
| occupation   =  
 
}}</pre>
 
}}</pre>
  
Line 144: Line 126:
 
* '''occupation''' the person's occupation(s). Only list their occupations relevant to ''Yu-Gi-Oh!''.
 
* '''occupation''' the person's occupation(s). Only list their occupations relevant to ''Yu-Gi-Oh!''.
  
[[Category:Templates/Infobox|{{SUBPAGENAME}}]]
+
[[Category:Templates/Infobox|Person]]
[[Category:Templates/Infobox/Yu-Gi-Oh!|{{SUBPAGENAME}}]]</noinclude>
+
[[Category:Templates/Infobox/Yu-Gi-Oh!|Person]]</noinclude>

Latest revision as of 02:25, 15 March 2023

Person infoboxes are used for

articles on real people

.


Infobox/Yu-Gi-Oh!/Person

Documentation[edit]

{{Infobox/Yu-Gi-Oh!/Person
| name          = 
| image name    = 
| image size    = 
| image caption = 
| english name  = 
| japanese name = 
| romaji name   = 
| gender        = 
| birthdate     = 
| deathdate     = 
| relatives     = 
| occupation    = 
}}
  • name changes the name displayed at the top of the infobox. This is only used if the person's name is different than the page title.
  • image name is the name of the image to be displayed at the top of the infobox. Only the image name without the File: prefix should be entered here.
  • image size is used to change the size of the image. Images default to 300px wide when this is not used.
  • image caption is used to change the caption of the image. Captions default to the page name when this is not used.
  • english name the person's name in English.

Use these if the person is Japanese or has a Japanese name.

  • japanese name the person's name in Japanese characters.
  • romaji name the person's Japanese name in rōmaji.

Use these if the person is Korean or has a Korean name.

  • korean name the person's Korean name in Hangul.
  • hanja name the person's Korean name in Hanja.
  • korean romanized name the revised romanization of the person's Korean name.
  • gender the person's gender.
  • birthdate the person's birthdate.
  • deathdate the date of person's death.
  • relatives the person's relatives if they have articles on the wiki.
  • occupation the person's occupation(s). Only list their occupations relevant to Yu-Gi-Oh!.