Jump to content

Template:(Real) Person: Difference between revisions

From wiki58
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
Line 2: Line 2:
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}}
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}}
{{#if:{{{image1|}}}|<tr>
{{#if:{{{image1|}}}|<tr>
<td class="infobox-image" colspan="2">
<td class="infobox-image" colspan="2">{{#ifeq:{{#sub:{{{image1|}}}|0|1}}|[|{{{image1|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|6}}}}|image:||File:}}}}{{{image1|}}}|frameless|220px]]}}{{#if:{{{caption1|}}}|<div class="infobox-caption">{{{caption1|}}}</div>|}}</td>
{{#ifeq:{{#sub:{{{image1|}}}|0|1}}|[|{{{image1|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|6}}}}|image:||File:}}}}{{{image1|}}}|frameless|220px]]}}{{#if:{{{caption1|}}}|
<div class="infobox-caption">
{{{caption1|}}}
</div>|}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{born|}}}|<tr>
{{#if:{{{born|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Born</th>
Born
<td class="infobox-data">{{{born|}}}</td>
</th>
<td class="infobox-data">
{{{born|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{nationality|}}}|<tr>
{{#if:{{{nationality|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Nationality</th>
Nationality
<td class="infobox-data">{{{nationality|}}}</td>
</th>
<td class="infobox-data">
{{{nationality|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{education|}}}|<tr>
{{#if:{{{education|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Education</th>
Education
<td class="infobox-data">{{{education|}}}</td>
</th>
<td class="infobox-data">
{{{education|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{occupation|}}}|<tr>
{{#if:{{{occupation|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Occupation</th>
Occupation
<td class="infobox-data">{{{occupation|}}}</td>
</th>
<td class="infobox-data">
{{{occupation|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{years_active|}}}|<tr>
{{#if:{{{years_active|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Years active</th>
Years active
<td class="infobox-data">{{{years_active|}}}</td>
</th>
<td class="infobox-data">
{{{years_active|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{known_for|}}}|<tr>
{{#if:{{{known_for|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Known for</th>
Known for
<td class="infobox-data">{{{known_for|}}}</td>
</th>
<td class="infobox-data">
{{{known_for|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{website|}}}|<tr>
{{#if:{{{website|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Website</th>
Website
<td class="infobox-data">{{{website|}}}</td>
</th>
<td class="infobox-data">
{{{website|}}}
</td>
</tr>|}}
</tr>|}}
</table>|}}
</table>|}}

Latest revision as of 18:52, 11 November 2026

(Real) Person

Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a File:-prefixed name, or complete [[File:…]] markup. Fields, defaults, and categories retain the imported template API.


Example usage:

{{(Real) Person

  | title1=Example

  | image1=Example

  | caption1=Example

  | born=Example

  | nationality=Example

  | education=Example

  | occupation=Example

  | years_active=Example

  | known_for=Example

  | website=Example

}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
title1title1

no description

Unknownsuggested
image1image1

no description

Unknownsuggested
caption1caption1

no description

Unknownsuggested
bornborn

no description

Unknownsuggested
nationalitynationality

no description

Unknownsuggested
educationeducation

no description

Unknownsuggested
occupationoccupation

no description

Unknownsuggested
years_activeyears_active

no description

Unknownsuggested
CreationsCreations

no description

Unknownsuggested
websitewebsite

no description

Unknownsuggested