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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Character_infobox/styles.css" />
<div class="infobox-div">
<div class="infobox-div">
     <div class="infobox-div-title">{{{name|{{PAGENAME}}}}}</div>
     <div class="infobox-div-title">{{{name|{{PAGENAME}}}}}</div>
{{#if: {{{image|}}} |
 
    {{#if: {{{image|}}} |
     <div class="infobox-div-image">
     <div class="infobox-div-image">
         [[File:{{{image}}}|288px]]
         [[File:{{{image}}}|288px]]
         {{#if: {{{caption|}}} |
         {{#if: {{{caption|}}} |
            <div class="infobox-div-caption">{{{caption}}}</div>
        <div class="infobox-div-caption">{{{caption}}}</div>
         }}
         }}
     </div>
     </div>
}}
    }}
{{#if: {{{race|}}} |
 
    {{#if: {{{race|}}} |
     <div class="infobox-div-row">
     <div class="infobox-div-row">
         <div class="infobox-div-label">Race</div>
         <div class="infobox-div-label">Race</div>
         <div class="infobox-div-data">{{{race}}}</div>
         <div class="infobox-div-data">{{{race}}}</div>
     </div>
     </div>
}}
    }}
{{#if: {{{affiliation|}}} |
 
    {{#if: {{{affiliation|}}} |
     <div class="infobox-div-row">
     <div class="infobox-div-row">
         <div class="infobox-div-label">Affiliation</div>
         <div class="infobox-div-label">Affiliation</div>
         <div class="infobox-div-data">{{{affiliation}}}</div>
         <div class="infobox-div-data">{{{affiliation}}}</div>
     </div>
     </div>
}}
    }}
{{#if: {{{title|}}} |
 
    {{#if: {{{title|}}} |
     <div class="infobox-div-row">
     <div class="infobox-div-row">
         <div class="infobox-div-label">Title</div>
         <div class="infobox-div-label">Title</div>
         <div class="infobox-div-data">{{{title}}}</div>
         <div class="infobox-div-data">{{{title}}}</div>
     </div>
     </div>
}}
    }}
</div><noinclude>
</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": "Character Name",
  "params": {
"description": "The full name of the character.",
    "name": {
"type": "line",
      "label": "Character Name",
"suggested": true
      "description": "The full name of the character.",
},
      "type": "string",
"image": {
      "suggested": true
"label": "Image",
    },
"description": "Image file name from the wiki (e.g., Geralt.png).",
    "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": "Text 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).",
    "race": {
"type": "line"
      "label": "Race",
},
      "description": "The character's race (e.g., Human, Elf).",
"affiliation": {
      "type": "string"
"label": "Affiliation",
    },
"description": "Groups or factions the character belongs to.",
    "affiliation": {
"type": "line"
      "label": "Affiliation",
},
      "description": "Groups or factions the character belongs to.",
"title": {
      "type": "string"
"label": "Title",
    },
"description": "The character's title (e.g., King of Gondor).",
    "title": {
"type": "line"
      "label": "Title",
}
      "description": "The character's title (e.g., King of Gondor).",
},
      "type": "string"
"description": "Creates a standard information box for characters.",
    }
"format": "block"
  }
}
}
</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>