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
Tag: Manual revert
No edit summary
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|}}} |
{{#if: {{{image|}}} |
{{!}}-
    <div class="infobox-div-image">
{{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{image}}}|290px]]
        [[File:{{{image}}}|288px]]
}}
        {{#if: {{{caption|}}} |
{{#if: {{{caption|}}} |
            <div class="infobox-div-caption">{{{caption}}}</div>
{{!}}-
        }}
{{!}} colspan="2" class="infobox-caption" {{!}} {{{caption}}}
    </div>
}}
}}
<div class="infobox-div-header">General Information</div>
{{#if: {{{race|}}} |
{{#if: {{{race|}}} |
{{!}}-
    <div class="infobox-div-row">
{{!}} scope="row" class="infobox-label" {{!}} Race
        <div class="infobox-div-label">Race</div>
{{!}} class="infobox-data" {{!}} {{{race}}}
        <div class="infobox-div-data">{{{race}}}</div>
    </div>
}}
}}
{{#if: {{{affiliation|}}} |
{{#if: {{{affiliation|}}} |
{{!}}-
    <div class="infobox-div-row">
{{!}} scope="row" class="infobox-label" {{!}} Affiliation
        <div class="infobox-div-label">Affiliation</div>
{{!}} class="infobox-data" {{!}} {{{affiliation}}}
        <div class="infobox-div-data">{{{affiliation}}}</div>
    </div>
}}
}}
|}
{{#if: {{{weapon|}}} |
<noinclude>
    <div class="infobox-div-row">
        <div class="infobox-div-label">Weapon</div>
        <div class="infobox-div-data">{{{weapon}}}</div>
    </div>
}}
</div><noinclude>
{{documentation}}
{{documentation}}
Bu şablon, karakter sayfaları için bir bilgi kutusu oluşturur.
==Kullanım==
Bu şablon, bir karakter hakkında özet bilgileri sağlayan bir kutu ekler. VisualEditor ile kullanıldığında, parametreleri doldurmak için bir form sunar.
<pre>
{{Character infobox
| name = Karakterin Tam Adı
| image = ResimDosyası.jpg
| caption = Resmin altında görünecek yazı
| race = Karakterin ırkı
| affiliation = Dahil olduğu gruplar
}}
</pre>
<templatedata>
<templatedata>
{
{
"params": {
    "params": {
"name": {
        "name": { "label": "Name", "description": "The full name of the character or race.", "type": "line" },
"label": "Name",
        "image": { "label": "Image", "description": "Filename of an image, e.g., Character.jpg.", "type": "wiki-file-name" },
"description": "The full name of the character or race. If left blank, it will use the page title.",
        "caption": { "label": "Image Caption", "description": "A brief description to display under the image.", "type": "string" },
"type": "line",
        "race": { "label": "Race", "description": "The character's race.", "type": "line" },
"suggested": true
        "affiliation": { "label": "Affiliation", "description": "Groups or factions.", "type": "line" },
},
        "weapon": { "label": "Weapon", "description": "Primary weapon of the character.", "type": "line" }
"image": {
    },
"label": "Image",
    "description": "Creates a standard information box for characters or races.",
"description": "Filename of an image, e.g., Character.jpg. Do not include 'File:'.",
    "format": "block"
"type": "wiki-file-name",
"suggested": true
},
"caption": {
"label": "Image Caption",
"description": "A brief description to display under the image.",
"type": "string"
},
"race": {
"label": "Race",
"description": "The character's race (e.g., Human, Elf, Orc).",
"type": "line",
"example": "[[Human]] ([[Dúnedain]])"
},
"affiliation": {
"label": "Affiliation",
"description": "Groups or factions the character is affiliated with.",
"type": "string",
"example": "[[Fellowship of the Ring]]"
}
},
"description": "This template creates a standard information box for characters or races.",
"format": "block"
}
}
</templatedata>
</templatedata>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 20:11, 12 June 2025

Character infobox
General Information


Template:Documentation <templatedata> {

   "params": {
       "name": { "label": "Name", "description": "The full name of the character or race.", "type": "line" },
       "image": { "label": "Image", "description": "Filename of an image, e.g., Character.jpg.", "type": "wiki-file-name" },
       "caption": { "label": "Image Caption", "description": "A brief description to display under the image.", "type": "string" },
       "race": { "label": "Race", "description": "The character's race.", "type": "line" },
       "affiliation": { "label": "Affiliation", "description": "Groups or factions.", "type": "line" },
       "weapon": { "label": "Weapon", "description": "Primary weapon of the character.", "type": "line" }
   },
   "description": "Creates a standard information box for characters or races.",
   "format": "block"

} </templatedata>