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
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Character_infobox/styles.css" />
<table class="infobox">
<div class="infobox-div">
<tbody>
    <div class="infobox-div-title">{{{name|{{PAGENAME}}}}}</div>
<tr><th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>
 
{{#if: {{{image|}}} |
    {{#if: {{{image|}}} |
{{!}}-
    <div class="infobox-div-image">
{{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{image}}}|298px]]
        [[File:{{{image}}}|288px]]
{{#if: {{{caption|}}} |
        {{#if: {{{caption|}}} |
  {{!}}-
        <div class="infobox-div-caption">{{{caption}}}</div>
  {{!}} colspan="2" class="infobox-caption" {{!}} {{{caption}}}
        }}
}}
    </div>
}}
    }}
<tr><th colspan="2" class="infobox-header">General Information</th></tr>
 
{{Infobox row | label = Race | data = {{{race|}}} }}
    {{#if: {{{race|}}} |
{{Infobox row | label = Affiliation | data = {{{affiliation|}}} }}
    <div class="infobox-div-row">
<tr><th colspan="2" class="infobox-header">Physical Description</th></tr>
        <div class="infobox-div-label">Race</div>
{{Infobox row | label = Lifespan | data = {{{lifespan|}}} }}
        <div class="infobox-div-data">{{{race}}}</div>
{{Infobox row | label = Distinctions | data = {{{distinctions|}}} }}
    </div>
{{Infobox row | label = Average Height | data = {{{height|}}} }}
    }}
</tbody>
 
</table><noinclude>
    {{#if: {{{affiliation|}}} |
{{documentation}}
    <div class="infobox-div-row">
        <div class="infobox-div-label">Affiliation</div>
        <div class="infobox-div-data">{{{affiliation}}}</div>
    </div>
    }}
 
    {{#if: {{{title|}}} |
    <div class="infobox-div-row">
        <div class="infobox-div-label">Title</div>
        <div class="infobox-div-data">{{{title}}}</div>
    </div>
    }}
</div>
 
<noinclude>
Bu, karakterler için bir bilgi kutusu şablonudur.
 
<templatedata>
<templatedata>
{
{
    "params": {
  "description": "Creates a standard information box for characters.",
        "name": { "label": "Name", "type": "line" },
  "format": "block",
        "image": { "label": "Image", "type": "wiki-file-name" },
  "params": {
        "caption": { "label": "Image Caption", "type": "string" },
    "name": {
        "race": { "label": "Race", "type": "line" },
      "label": "Character Name",
        "affiliation": { "label": "Affiliation", "type": "line" },
      "description": "The full name of the character.",
        "lifespan": { "label": "Lifespan", "type": "line" },
      "type": "string",
        "distinctions": { "label": "Distinctions", "type": "line" },
      "suggested": true
        "height": { "label": "Average Height", "type": "line" }
     },
     },
     "description": "Creates an information box for characters or races.",
     "image": {
     "format": "block"
      "label": "Image",
      "description": "Image file name from the wiki (e.g., Geralt.png).",
      "type": "wiki-file-name",
      "suggested": true
    },
    "caption": {
      "label": "Image Caption",
      "description": "Text to display under the image.",
      "type": "string"
    },
    "race": {
      "label": "Race",
      "description": "The character's race (e.g., Human, Elf).",
      "type": "string"
    },
    "affiliation": {
      "label": "Affiliation",
      "description": "Groups or factions the character belongs to.",
      "type": "string"
    },
     "title": {
      "label": "Title",
      "description": "The character's title (e.g., King of Gondor).",
      "type": "string"
    }
  }
}
}
</templatedata>
</templatedata>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 21:30, 12 June 2025

Character infobox






Bu, karakterler için bir bilgi kutusu şablonudur.

<templatedata> {

 "description": "Creates a standard information box for characters.",
 "format": "block",
 "params": {
   "name": {
     "label": "Character Name",
     "description": "The full name of the character.",
     "type": "string",
     "suggested": true
   },
   "image": {
     "label": "Image",
     "description": "Image file name from the wiki (e.g., Geralt.png).",
     "type": "wiki-file-name",
     "suggested": true
   },
   "caption": {
     "label": "Image Caption",
     "description": "Text to display under the image.",
     "type": "string"
   },
   "race": {
     "label": "Race",
     "description": "The character's race (e.g., Human, Elf).",
     "type": "string"
   },
   "affiliation": {
     "label": "Affiliation",
     "description": "Groups or factions the character belongs to.",
     "type": "string"
   },
   "title": {
     "label": "Title",
     "description": "The character's title (e.g., King of Gondor).",
     "type": "string"
   }
 }

} </templatedata>