Difference between revisions of "Template:Infobox character"

From HGRPG Wiki
Jump to: navigation, search
(Created page with "{{Infobox | bodystyle = border-spacing: 2px 5px; | above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | abovestyle = background: {{If...")
 
m
Line 2: Line 2:
 
| bodystyle    = border-spacing: 2px 5px;
 
| bodystyle    = border-spacing: 2px 5px;
  
| above        = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }}
+
| above        = {{{name|}}}
| abovestyle  = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} | color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }}
+
| abovestyle  = background: #DEDEE2; color: black;
  
 
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
 
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
 
| caption      = {{{caption|}}}
 
| caption      = {{{caption|}}}
  
| headerstyle  = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} |color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }}
+
| headerstyle  = background: #DEDEE2; color: black;
 
+
  
 
| label4      = Link to bio
 
| label4      = Link to bio
Line 20: Line 19:
 
| data5        = {{{faceclaim|}}}
 
| data5        = {{{faceclaim|}}}
  
| header20    = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{nickname|}}} {{{nicknames|}}} {{{gender|}}} {{{district|}}} {{{family|}}} {{{spouse|}}} {{{spouses|}}} {{{significant_other|}}} {{{significant_others|}}} {{{children|}}} {{{relatives|}}} {{{origin|}}} {{{data1|}}} {{{data2|}}} {{{data3|}}} {{{data4|}}} {{{data5|}}} | {{If empty |{{{info-hdr|}}} |Information }} }} }}
+
| header20    = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{nickname|}}} {{{nicknames|}}} {{{gender|}}} {{{district|}}} {{{family|}}} {{{spouse|}}} {{{spouses|}}} {{{significant_other|}}} {{{significant_others|}}} {{{children|}}} {{{relatives|}}} {{{origin|}}} {{{data1|}}} {{{data2|}}} {{{data3|}}} {{{data4|}}} {{{data5|}}} | {{#if:{{{info-hdr|}}} |{{{info-hdr}}} |Information}} }} }}
  
 
| label21      = Full name
 
| label21      = Full name
Line 26: Line 25:
  
 
| label22      = {{#if: {{{alias|}}} | Alias | Aliases }}
 
| label22      = {{#if: {{{alias|}}} | Alias | Aliases }}
| data22      = {{If empty |{{{alias|}}} |{{{aliases|}}} }}
+
| data22      = {{#if:{{{alias|}}} |{{{alias}}} |{{#if:{{{aliases|}}} |{{{aliases}}} |}} }}
  
 
| label23      = {{#if: {{{nickname|}}} | Nickname | Nicknames }}
 
| label23      = {{#if: {{{nickname|}}} | Nickname | Nicknames }}
| data23      = {{If empty |{{{nickname|}}} |{{{nicknames|}}} }}
+
| data23      = {{#if:{{{nickname|}}} |{{{nickname}}} |{{#if:{{{nicknames|}}} |{{{nicknames}}} |}} }}
  
 
| label25      = Gender
 
| label25      = Gender
Line 47: Line 46:
  
 
| label32      = {{#if: {{{spouse|}}} | Spouse | Spouses }}
 
| label32      = {{#if: {{{spouse|}}} | Spouse | Spouses }}
| data32      = {{If empty |{{{spouse|}}} |{{{spouses|}}} }}
+
| data32      = {{#if:{{{spouse|}}} |{{{spouse}}} |{{#if:{{{spouses|}}} |{{{spouses}}} |}} }}
  
 
| label33      = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }}
 
| label33      = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }}
| data33      = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }}
+
| data33      = {{#if:{{{significant_other|}}} |{{{significant_other}}} |{{#if:{{{significant_others|}}} |{{{significant_others}}} |}} }}
  
 
| label34      = Children
 
| label34      = Children
Line 61: Line 60:
 
| dat36      = {{{plot|}}}
 
| dat36      = {{{plot|}}}
  
| label37      = {{#if: {{{origin|}}} | District of origin | District of origin }}
+
| label37      = District of origin
| data37      = {{If empty |{{{origin|}}} |{{{home|}}} }}
+
| data37      = {{{origin|}}}
  
 
| label11      = {{{lbl1|}}}
 
| label11      = {{{lbl1|}}}

Revision as of 13:29, 1 September 2019

{{#invoke:InfoboxImage|InfoboxImage|image=|size=|sizedefault=frameless|upright=1|alt=}}

Template:Infobox character/doc