Template:Character infobox: Difference between revisions
More actions
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Manual revert |
||
Line 3: | Line 3: | ||
! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}} | ! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}} | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
{{!}}- | |||
{{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{image}}}|290px]] | |||
}} | |||
{{#if: {{{caption|}}} | | |||
{{!}}- | |||
{{!}} colspan="2" class="infobox-caption" {{!}} {{{caption}}} | |||
}} | }} | ||
{{#if: {{{race|}}} | | {{#if: {{{race|}}} | | ||
{{!}}- | |||
! scope="row" class="infobox-label" | {{!}} scope="row" class="infobox-label" {{!}} Race | ||
{{!}} class="infobox-data" {{!}} {{{race}}} | |||
}} | }} | ||
{{#if: {{{affiliation|}}} | | {{#if: {{{affiliation|}}} | | ||
{{!}}- | |||
! scope="row" class="infobox-label" | {{!}} scope="row" class="infobox-label" {{!}} Affiliation | ||
{{!}} class="infobox-data" {{!}} {{{affiliation}}} | |||
}} | }} | ||
|}<noinclude> | |} | ||
<noinclude> | |||
{{documentation}} | {{documentation}} | ||
Bu şablon, karakter sayfaları için bir bilgi kutusu oluşturur. | Bu şablon, karakter sayfaları için bir bilgi kutusu oluşturur. |
Revision as of 20:08, 12 June 2025
Character infobox
|
---|
Template: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.
{{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 }}
<templatedata> { "params": { "name": { "label": "Name", "description": "The full name of the character or race. If left blank, it will use the page title.", "type": "line", "suggested": true }, "image": { "label": "Image", "description": "Filename of an image, e.g., Character.jpg. Do not include 'File:'.", "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>