Template:For Characters: Difference between revisions
Appearance
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image2"> <caption source="caption2"/> </image> <data source="genre"..." |
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}}}}{{{image2|}}}{{{genre|}}}{{{country|}}}{{{status|}}}{{{species|}}}{{{side_of|}}}|<table class="infobox"> | ||
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}} | |||
{{#if:{{{image2|}}}|<tr> | |||
<td class="infobox-image" colspan="2">{{#ifeq:{{#sub:{{{image2|}}}|0|1}}|[|{{{image2|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image2|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image2|}}}|0|6}}}}|image:||File:}}}}{{{image2|}}}|frameless|220px]]}}{{#if:{{{caption2|}}}|<div class="infobox-caption">{{{caption2|}}}</div>|}}</td> | |||
</tr>|}} | |||
{{#if:{{{genre|}}}|<tr> | |||
<th class="infobox-label" scope="row">Genre</th> | |||
<td class="infobox-data">{{{genre|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{country|}}}|<tr> | |||
<th class="infobox-label" scope="row">Country</th> | |||
<td class="infobox-data">{{{country|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{status|}}}|<tr> | |||
<th class="infobox-label" scope="row">Status</th> | |||
<td class="infobox-data">{{{status|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{species|}}}|<tr> | |||
<th class="infobox-label" scope="row">Species</th> | |||
<td class="infobox-data">{{{species|}}}</td> | |||
</tr>|}} | |||
{{#if:{{{side_of|}}}|<tr> | |||
</ | <th class="infobox-label" scope="row">Side of</th> | ||
<td class="infobox-data">{{{side_of|}}}</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:
{{For Characters
| title1=Example
| image2=Example
| caption2=Example
| genre=Example
| country=Example
| status=Example
| species=Example
| side_of=Example
}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title1 | title1 | no description | Unknown | suggested |
| image2 | image2 | no description | Unknown | suggested |
| caption2 | caption2 | no description | Unknown | suggested |
| genre | genre | no description | Unknown | suggested |
| country | country | no description | Unknown | suggested |
| status | status | no description | Unknown | suggested |
| species | species | no description | Unknown | suggested |
| side_of | side_of | no description | Unknown | suggested |