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
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Character_infobox/styles.css" />
<templatestyles src="Template:Character_infobox/styles.css" />
{| class="character-infobox"
<div class="infobox-div">
! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}}
    <div class="infobox-div-title">{{{name|{{PAGENAME}}}}}</div>
{{#if: {{{image|}}} |
|-
| colspan="2" class="infobox-image" | [[File:{{{image}}}|290px]]
{{#if: {{{caption|}}} |
  |-
  | colspan="2" class="infobox-caption" | {{{caption}}}
}}
}}
{{#if: {{{race|}}} |
|-
! scope="row" class="infobox-label" | Race
| class="infobox-data" | {{{race}}}
}}
{{#if: {{{affiliation|}}} |
|-
! scope="row" class="infobox-label" | Affiliation
| class="infobox-data" | {{{affiliation}}}
}}
|}<noinclude>
Bu şablon, karakter sayfaları için bir bilgi kutusu oluşturur.


Kullanım Örneği:
    {{#if: {{{image|}}} |
<pre>
    <div class="infobox-div-image">
{{Character infobox
        [[File:{{{image}}}|288px]]
| name = Karakterin Adı
        {{#if: {{{caption|}}} |
| image = KarakterinResmi.jpg
        <div class="infobox-div-caption">{{{caption}}}</div>
| caption = Resim alt yazısı
        }}
| race = Irkı
    </div>
| affiliation = Tarafı / Grubu
    }}
}}
</pre>


    {{#if: {{{race|}}} |
    <div class="infobox-div-row">
        <div class="infobox-div-label">Race</div>
        <div class="infobox-div-data">{{{race}}}</div>
    </div>
    }}
    {{#if: {{{affiliation|}}} |
    <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>
{
  "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>
[[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>