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: Reverted
No edit summary
 
(14 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>
{{documentation}}


<pre>
    {{#if: {{{image|}}} |
{{Character infobox
    <div class="infobox-div-image">
| name = Karakterin Tam Adı
        [[File:{{{image}}}|288px]]
| image = ResimDosyası.jpg
        {{#if: {{{caption|}}} |
| caption = Resmin altında görünecek yazı
        <div class="infobox-div-caption">{{{caption}}}</div>
| race = Karakterin ırkı
        }}
| affiliation = Dahil olduğu gruplar
    </div>
}}
    }}
</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>
<templatedata>
{
{
"params": {
  "description": "Creates a standard information box for characters.",
"name": {
  "format": "block",
"label": "Name",
  "params": {
"description": "The full name of the character or race. If left blank, it will use the page title.",
    "name": {
"type": "line",
      "label": "Character Name",
"suggested": true
      "description": "The full name of the character.",
},
      "type": "string",
"image": {
      "suggested": true
"label": "Image",
    },
"description": "Filename of an image, e.g., Character.jpg. Do not include 'File:'.",
    "image": {
"type": "wiki-file-name",
      "label": "Image",
"suggested": true
      "description": "Image file name from the wiki (e.g., Geralt.png).",
},
      "type": "wiki-file-name",
"caption": {
      "suggested": true
"label": "Image Caption",
    },
"description": "A brief description to display under the image.",
    "caption": {
"type": "string"
      "label": "Image Caption",
},
      "description": "Text to display under the image.",
"race": {
      "type": "string"
"label": "Race",
    },
"description": "The character's race (e.g., Human, Elf, Orc).",
    "race": {
"type": "line",
      "label": "Race",
"example": "[[Human]] ([[Dúnedain]])"
      "description": "The character's race (e.g., Human, Elf).",
},
      "type": "string"
"affiliation": {
    },
"label": "Affiliation",
    "affiliation": {
"description": "Groups or factions the character is affiliated with.",
      "label": "Affiliation",
"type": "string",
      "description": "Groups or factions the character belongs to.",
"example": "[[Fellowship of the Ring]]"
      "type": "string"
}
    },
},
    "title": {
"description": "This template creates a standard information box for characters or races.",
      "label": "Title",
"format": "block"
      "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>