Jump to content

Template:(Real) Person: Difference between revisions

From wiki58
mNo edit summary
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<infobox>
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}{{{image1|}}}{{{born|}}}{{{nationality|}}}{{{education|}}}{{{occupation|}}}{{{years_active|}}}{{{known_for|}}}{{{website|}}}|<table class="infobox">
  <title source="title1">
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}}
    <default>{{PAGENAME}}</default>
{{#if:{{{image1|}}}|<tr>
  </title>
<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>
  <image source="image1">
</tr>|}}
    <caption source="caption1"/>
{{#if:{{{born|}}}|<tr>
  </image>
<th class="infobox-label" scope="row">Born</th>
  <data source="born">
<td class="infobox-data">{{{born|}}}</td>
    <label>Born</label>
</tr>|}}
  </data>
{{#if:{{{nationality|}}}|<tr>
  <data source="nationality">
<th class="infobox-label" scope="row">Nationality</th>
    <label>Nationality</label>
<td class="infobox-data">{{{nationality|}}}</td>
  </data>
</tr>|}}
  <data source="education">
{{#if:{{{education|}}}|<tr>
    <label>Education</label>
<th class="infobox-label" scope="row">Education</th>
  </data>
<td class="infobox-data">{{{education|}}}</td>
  <data source="occupation">
</tr>|}}
    <label>Occupation</label>
{{#if:{{{occupation|}}}|<tr>
  </data>
<th class="infobox-label" scope="row">Occupation</th>
  <data source="years_active">
<td class="infobox-data">{{{occupation|}}}</td>
    <label>Years active</label>
</tr>|}}
  </data>
{{#if:{{{years_active|}}}|<tr>
  <data source="known_for">
<th class="infobox-label" scope="row">Years active</th>
    <label>Known for</label>
<td class="infobox-data">{{{years_active|}}}</td>
  </data>
</tr>|}}
  <data source="website">
{{#if:{{{known_for|}}}|<tr>
    <label>Website</label>
<th class="infobox-label" scope="row">Known for</th>
  </data>
<td class="infobox-data">{{{known_for|}}}</td>
</infobox>
</tr>|}}
{{#if:{{{website|}}}|<tr>
<th class="infobox-label" scope="row">Website</th>
<td class="infobox-data">{{{website|}}}</td>
</tr>|}}
</table>|}}
<noinclude>
<noinclude>
Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a <code>File:</code>-prefixed name, or complete <code><nowiki>[[File:…]]</nowiki></code> markup. Fields, defaults, and categories retain the imported template API.
Example usage:
Example usage:
<pre>
<pre>

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