Template:(Real) Person: Difference between revisions
Appearance
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"> | ||
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}} | |||
{{#if:{{{image1|}}}|<tr> | |||
<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> | |||
</tr>|}} | |||
{{#if:{{{born|}}}|<tr> | |||
<th class="infobox-label" scope="row">Born</th> | |||
<td class="infobox-data">{{{born|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{nationality|}}}|<tr> | |||
<th class="infobox-label" scope="row">Nationality</th> | |||
<td class="infobox-data">{{{nationality|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{education|}}}|<tr> | |||
<th class="infobox-label" scope="row">Education</th> | |||
<td class="infobox-data">{{{education|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{occupation|}}}|<tr> | |||
<th class="infobox-label" scope="row">Occupation</th> | |||
<td class="infobox-data">{{{occupation|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{years_active|}}}|<tr> | |||
<th class="infobox-label" scope="row">Years active</th> | |||
<td class="infobox-data">{{{years_active|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{known_for|}}}|<tr> | |||
<th class="infobox-label" scope="row">Known for</th> | |||
<td class="infobox-data">{{{known_for|}}}</td> | |||
</ | </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
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title1 | title1 | no description | Unknown | suggested |
| image1 | image1 | no description | Unknown | suggested |
| caption1 | caption1 | no description | Unknown | suggested |
| born | born | no description | Unknown | suggested |
| nationality | nationality | no description | Unknown | suggested |
| education | education | no description | Unknown | suggested |
| occupation | occupation | no description | Unknown | suggested |
| years_active | years_active | no description | Unknown | suggested |
| Creations | Creations | no description | Unknown | suggested |
| website | website | no description | Unknown | suggested |