Jump to content

Template:For Characters: Difference between revisions

From wiki58
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image2"> <caption source="caption2"/> </image> <data source="genre"..."
 
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history
Line 1: Line 1:
<infobox>
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}{{{image2|}}}{{{genre|}}}{{{country|}}}{{{status|}}}{{{species|}}}{{{side_of|}}}|<table class="infobox">
  <title source="title1">
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}}
    <default>{{PAGENAME}}</default>
{{#if:{{{image2|}}}|<tr>
  </title>
<td class="infobox-image" colspan="2">
  <image source="image2">
{{#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|}}}|
    <caption source="caption2"/>
<div class="infobox-caption">
  </image>
{{{caption2|}}}
  <data source="genre">
</div>|}}
    <label>Genre</label>
</td>
  </data>
</tr>|}}
  <data source="country">
{{#if:{{{genre|}}}|<tr>
    <label>Country</label>
<th class="infobox-label" scope="row">
  </data>
Genre
  <data source="status">
</th>
    <label>Status</label>
<td class="infobox-data">
  </data>
{{{genre|}}}
  <data source="species">
</td>
    <label>Species</label>
</tr>|}}
  </data>
{{#if:{{{country|}}}|<tr>
  <data source="side_of">
<th class="infobox-label" scope="row">
    <label>Side of</label>
Country
  </data>
</th>
</infobox>
<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>

Revision as of 17:59, 11 November 2026

For Characters

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
title1title1

no description

Unknownsuggested
image2image2

no description

Unknownsuggested
caption2caption2

no description

Unknownsuggested
genregenre

no description

Unknownsuggested
countrycountry

no description

Unknownsuggested
statusstatus

no description

Unknownsuggested
speciesspecies

no description

Unknownsuggested
side_ofside_of

no description

Unknownsuggested