Template:Character infobox: Difference between revisions
Template page
More actions
No edit summary Tags: Manual revert Reverted |
No edit summary |
||
(11 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" /> | ||
<div class="infobox-div"> | |||
<div class="infobox-div-title">{{{name|{{PAGENAME}}}}}</div> | |||
== | {{#if: {{{image|}}} | | ||
<div class="infobox-div-image"> | |||
[[File:{{{image}}}|288px]] | |||
{{#if: {{{caption|}}} | | |||
<div class="infobox-div-caption">{{{caption}}}</div> | |||
}} | |||
</div> | |||
}} | |||
< | {{#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> | ||
{ | { | ||
"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> | </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>