Template:Infobox: Difference between revisions

test>Primefac
Undid revision 855063393 by Jdlrobson (talk) rather problematic change mentioned on talk page, reverting until it can be sorted
 
m 1 revision imported
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
<div class="infobox" style="width:300px; border:1px solid #aaa; padding:8px; background:#f9f9f9; float:right; clear:right;">
{{documentation}}
 
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
<!-- Title -->
<div style="font-size:140%; font-weight:bold; text-align:center; margin-bottom:6px;">
  {{{title|{{PAGENAME}}}}}
</div>
 
<!-- Image -->
<div style="text-align:center; margin:6px 0;">
  {{#if:{{{image|}}}|
    [[File:{{{image}}}|250px|center]]
  }}
  <div style="font-size:85%; color:#555;">
    {{{image_desc|}}}
  </div>
</div>
 
<!-- Section Header -->
<div style="font-weight:bold; font-size:120%; margin-top:10px; border-bottom:1px solid #ccc;">
  General Information
</div>
 
<!-- Fields -->
<div style="margin-top:6px;">
  <b>Full Name:</b> {{{fullname|}}}<br />
  <b>Pronouns:</b> {{{pronouns|}}}<br />
  <b>Born:</b> {{{born|}}}<br />
  <b>Nationality:</b> {{{nationality|}}}<br />
  <b>Profession:</b> {{{profession|}}}<br />
  <b>Works:</b> {{{works|}}}<br />
</div>
 
</div>
 
<noinclude>
== Template Parameters ==
This template supports the following parameters:
 
;title
:Page title to display. Defaults to the page's name.
 
;image
:Filename of an image (without File:).
 
;image_desc
:Caption or description of the image.
 
;fullname
:Character’s or person’s full name.
 
;pronouns
:Preferred pronouns.
 
;born
:Birth date or era.
 
;nationality
:Country, species, or origin.
 
;profession
:Main role or occupation.
 
;works
:Major creations, publications, or notable work.
 
<templatedata>
{
"description": "Standard infobox for character or person pages.",
"params": {
"title": {
"label": "Title",
"description": "Title shown at the top of the infobox.",
"type": "string"
},
"image": {
"label": "Image",
"description": "Filename of an image (without the File: prefix).",
"type": "string"
},
"image_desc": {
"label": "Image Description",
"description": "Description or caption of the image.",
"type": "string"
},
"fullname": {
"label": "Full Name",
"description": "Complete name of the character or person.",
"type": "string"
},
"pronouns": {
"label": "Pronouns",
"description": "Preferred pronouns.",
"type": "string"
},
"born": {
"label": "Born",
"description": "Birth date or era.",
"type": "string"
},
"nationality": {
"label": "Nationality",
"description": "Country, species, or origin.",
"type": "string"
},
"profession": {
"label": "Profession",
"description": "Occupation or role.",
"type": "string"
},
"works": {
"label": "Works",
"description": "Notable works, creations, or publications.",
"type": "string"
}
}
}
</templatedata>
</noinclude>
</noinclude>