Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character infobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<templatestyles src="Template:Character_infobox/styles.css" />
<templatestyles src="Template:Infobox/styles.css" />
{| class="character-infobox"
<table class="infobox">
! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}}
<tbody>
<tr><th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
  |-
  {{!}}-
  | colspan="2" class="infobox-image" | [[File:{{{image}}}|290px]]
  {{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{image}}}|298px]]
  {{#if: {{{caption|}}} |
  {{#if: {{{caption|}}} |
   |-
   {{!}}-
   | colspan="2" class="infobox-caption" | {{{caption}}}
   {{!}} colspan="2" class="infobox-caption" {{!}} {{{caption}}}
  }}
  }}
}}
}}
{{#if: {{{race|}}} |
<tr><th colspan="2" class="infobox-header">General Information</th></tr>
|-
{{Infobox row | label = Race | data = {{{race|}}} }}
! scope="row" class="infobox-label" | Race
{{Infobox row | label = Affiliation | data = {{{affiliation|}}} }}
| class="infobox-data" | {{{race}}}
<tr><th colspan="2" class="infobox-header">Physical Description</th></tr>
}}
{{Infobox row | label = Lifespan | data = {{{lifespan|}}} }}
{{#if: {{{affiliation|}}} |
{{Infobox row | label = Distinctions | data = {{{distinctions|}}} }}
|-
{{Infobox row | label = Average Height | data = {{{height|}}} }}
! scope="row" class="infobox-label" | Affiliation
</tbody>
| class="infobox-data" | {{{affiliation}}}
</table><noinclude>
}}
{{documentation}}
|}<noinclude>
<templatedata>
Bu şablon, karakter sayfaları için bir bilgi kutusu oluşturur.
{
 
    "params": {
Kullanım Örneği:
        "name": { "label": "Name", "type": "line" },
<pre>
        "image": { "label": "Image", "type": "wiki-file-name" },
{{Character infobox
        "caption": { "label": "Image Caption", "type": "string" },
| name = Karakterin Adı
        "race": { "label": "Race", "type": "line" },
| image = KarakterinResmi.jpg
        "affiliation": { "label": "Affiliation", "type": "line" },
| caption = Resim alt yazısı
        "lifespan": { "label": "Lifespan", "type": "line" },
| race = Irkı
        "distinctions": { "label": "Distinctions", "type": "line" },
| affiliation = Tarafı / Grubu
        "height": { "label": "Average Height", "type": "line" }
}}
    },
</pre>
    "description": "Creates an information box for characters or races.",
 
    "format": "block"
}
</templatedata>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 20:25, 12 June 2025

<tbody>








</tbody>

Character infobox
General Information
Physical Description

Template:Documentation <templatedata> {

   "params": {
       "name": { "label": "Name", "type": "line" },
       "image": { "label": "Image", "type": "wiki-file-name" },
       "caption": { "label": "Image Caption", "type": "string" },
       "race": { "label": "Race", "type": "line" },
       "affiliation": { "label": "Affiliation", "type": "line" },
       "lifespan": { "label": "Lifespan", "type": "line" },
       "distinctions": { "label": "Distinctions", "type": "line" },
       "height": { "label": "Average Height", "type": "line" }
   },
   "description": "Creates an information box for characters or races.",
   "format": "block"

} </templatedata>