Difference between revisions of "Template:Infobox person"

From PKC
Jump to navigation Jump to search
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:first (list)|last (list)|gender (list)|birthday (list)}}
{{#template_params:first (list)|last (list)|wp-link (list)|wikidata (list)|gender (list)|birthday (list)|died (list)}}
</noinclude>
</noinclude><includeonly>
 
<includeonly>
Test last: {{#If: {{{last}}}|<P>Person Last Name: {{{last}}}</P>|}}
Test Gender: {{#If: {{{gender|}}} | {{{gender}}} | no info|}}
This Birthday: {{#If: {{{birthday|}}} | {{{birthday}}} | no info|}}
Test NULL: {{#If: {{{birthday}}} | SOME THING is {{{birthday|}}}| NOTHING|}}
 
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
Line 17: Line 10:
! Last Name
! Last Name
| {{{last|}}}
| {{{last|}}}
{{#if: {{{gender|}}} |  
|-
! Wikipedia
| {{#If:{{{wp-link}}} | [[wikipedia:{{{wp-link|}}}|{{{wp-link|}}}]]| no entry|}}
|-
! wikidata
| {{#If:{{{wikidata}}} | [[wikidata:{{{wikidata|}}}|{{{wikidata|}}}]]| no entry|}}
|-
! Gender  
! Gender  
| {{{gender}}}  
| {{{gender|}}}  
|- |}}
|-  
! Birthday
! Birthday
| {{#If: {{{birthday}}}|{{{birthday}}}| No Info|}}  
|{{{birthday|}}}
|-
!{{#If:{{{died}}} | Died | Still alive |}}
|{{#If:{{{died}}} | {{{died}}} | TBD |}}
|}
|}
</includeonly>
</includeonly>

Latest revision as of 06:23, 31 January 2022

This is the "Infobox person" template.

It should be called in the following format:

{{Infobox person
|first=
|last=
|wp-link=
|wikidata=
|gender=
|birthday=
|died=
}}

Edit the page to see the template text.