Editing
Template:Infobox/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Parameters === ====View/discuss/edit links==== ;name : The template page name that the "view/discuss/edit" links should point to. You can use <nowiki>{{subst:PAGENAME}}</nowiki>. If this parameter is omitted the view/discuss/edit links will not be displayed. ====Title==== {{Infobox |title = Text in caption over infobox |subheader = Subheader of the infobox |data1 = (the rest of the infobox goes here) }} {{Infobox |above = Text in uppermost cell of infobox |subheader = Subheader of the infobox |subheader2 = Second subheader of the infobox |data1 = (the rest of the infobox goes here) }} There are two different ways to put a title on an infobox. One contains the title inside the infobox's border, the other puts it on top as a caption. You can use both of them together if you like, or just one or the other, or even neither (though this is not recommended). ;title : Text to put in the caption over top of the table. ;above : Text to put within the uppermost cell of the table. ====Optional content==== ;subheader, subheader2 : additional title fields which fit between {{{title}}} and {{{above}}}. ;image, image2 : images to display at the top of the template. Use full image syntax, for example <nowiki>[[File:example.png|200px|alt=Example alt text]]</nowiki>. Image is centered by default. See [[WP:ALT]] for more on alt text. ;caption, caption2 : Text to put underneath the images. ;header(n) : Text to use as a header in row n. ;label(n): Text to use as a label in row n. ;data(n): Text to display as data in row n. ;below: Text to put in the bottom cell. The bottom cell is intended for footnotes, see-also, and other such information. ;child: See the [[#Embedding|embedding]] section for details. Note: currently, headers, labels and data items with the same n-value are not mutually exclusive; all of them will be displayed. See the rendering of header4, label4, and data4 in the examples section below. ====Optional CSS styling==== ;bodystyle : Applies to the infobox table as a whole ;titlestyle : Applies only to the title caption. Adding a background color is usually inadvisable since the text is rendered "outside" the infobox. ;abovestyle : Applies only to the "above" cell at the top. The default style has font-size:large; since this cell is usually used for a title, if you want to use the above cell for regular-sized text include "font-size:medium;" in the abovestyle. ;imagestyle : Applies to the cell the image is in. This includes the text of the image caption, but you should set text properties with captionstyle instead of imagestyle in case the caption is moved out of this cell in the future. ;captionstyle : Applies to the text of the image caption. ;headerstyle : Applies to all header cells ;labelstyle : Applies to all label cells ;datastyle : Applies to all data cells ;belowstyle : Applies only to the below cell ==== HTML classes ==== ;bodyclass : This parameter is inserted into the "class" attribute for the infobox as a whole. ;titleclass : This parameter is inserted into the "class" attribute for the infobox's title caption. ;aboveclass : This parameter is inserted into the "class" attribute for the infobox's "above" cell. ; aboverowclass : This parameter is inserted into the "class" attribute for the complete table row the "above" cell is on. ; subheaderclass : This parameter is inserted into the "class" attribute for the infobox's subheader. ; subheaderrowclass : This parameter is inserted into the "class" attribute for the complete table row the subheader is on. ;imageclass : This parameter is inserted into the "class" attribute for the image. ; imagerowclass1, imagerowclass2 : These parameters are inserted into the "class" attribute for the complete table row the respective images are on. ;rowclass(n) : This parameter is inserted into the "class" attribute for the specified row '''including''' the label or other explanatory text. ;class(n) : This parameter is inserted into the "class" attribute for the data cell of the specified row. If there's no data cell it has no effect. ;belowclass : This parameter is inserted into the "class" attribute for the infobox's below cell. ==== Microformats ==== This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag an infobox as containing hCard information, for example, add the following parameter: <pre> |bodyclass = vcard </pre> And for each row containing a data cell that's part of the vcard, add a corresponding class parameter: <pre> |class1 = fn |class2 = org |class3 = tel </pre> ...and so forth. "above" and "title" can also be given classes, since these are usually used to display the name of the subject of the infobox. See [[Wikipedia:WikiProject Microformats]] for more information on adding microformat information to Wikipedia, and [[microformat]] for more information on microformats in general.
Summary:
Please note that all contributions to Syra D&D Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SyraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Request account
Namespaces
Template
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information