Editing
Template:Infobox/Base/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!
== Usage == <pre> {{Infobox/Base | ibname = | ibtype = | traits = | image = | imagebgcolor = | website = | pubcode = | ibclass = | bgcolor = | fgcolor = | paramname1 = | param1 = ... | source = {{{source|}}} | page = {{{page|}}} | footnote = {{{footnote|}}} }} </pre> All of {{tl|Infobox/Base}}'s parameters are optional, and except for '''name''' do not appear if not passed or are passed with an empty parameter. Most uses of {{tl|Infobox/Base}}es should be in templates that pass the necessary parameters to {{tl|Infobox/Base}}. See the examples below for more details. === Title and type metadata === ; ibname: The name that appears at the top of the infobox. : ''Default: {{xt|<nowiki>{{PAGENAME}}</nowiki>}}'' ; ibtype: The type of content this infobox summarizes. This is wrapped in parentheses in the rendered infobox. ; image: An image link that illustrates the article's subject. Should be given without <code>[[]]</code> or any settings. ; website: A link associated with the article. This typically appears beneath the image. ; pubcode: The stock code associated with a product. This typically replaces the default text of the '''website''' link. === Style attributes === ; imagebgcolor: A CSS color code for the background of the '''image''' parameter. : ''Default: {{xt|#FFF}}'' ; ibclass: The name of a CSS class to associate with the infobox. {{xt|tantable}} and {{xt|infobox}} are always assigned; any classes added here are added to the infobox and do not override these classes. ; bgcolor: A CSS color code for the background of the '''ibname''' and '''ibtype''' parameters. : ''Default: {{xt|#000}}'' ; fgcolor: A CSS color code for the text of the '''ibname''' and '''ibtype''' parameters. : ''Default: {{xt|#FFF}}'' === Parameters === ; paramname<sup>n</sup>: The name of a parameter in the infobox, presented in order from top to bottom in the infobox's body. This text is bolded in the left column of the infobox's body. You can include as many '''paramname<sup>n</sup>''' entries as you wish, but each should be accompanied by a '''param<sup>n</sup>''' of the same number. : Certain '''paramname'''s have special properties: :: '''''artworkby, imagesof, gallery, worksby''''': Links the '''param''' to a category, either {{xt|:Category:Artwork by '''param'''}} for artwork by creator, {{xt|:Category:Images of '''param'''}} for artwork categorized by subject, {{xt|:Category:Artwork from '''param'''}} for artwork categorized by source, or {{xt|:Category:Works by '''param'''}} for published works by creator, respectively. Only the '''param''' is displayed, only one of these two options should be used, and only one instance of it should be used per infobox. ::: ''Default, if no '''param''' is provided: {{xt|<nowiki>{{PAGENAME}}</nowiki>}}'' :: '''''custom''''': Renders arbitrary wikitext instead of a key/value pair. The same optional '''customclass''' and '''customstyle''' values are applied to all custom parameter containers. :: '''''isbn, ISBN, isbne, ISBNE''''': Precedes the content with "ISBN", triggering special handling of a valid ISBN '''param'''. :: '''''regionmap''''': An image with no preceding text, designed to display a regional map for a location. Only the regionmap's '''param''' content is displayed. :: '''''source''''': Italicized source spanning the infobox body, preceded by a horizontal line and "Source:" and suffixed by a page number if the '''page''' parameter is provided. Only the source's '''param''' content is displayed, only one source should be used per infobox, and the source should be the last '''paramname'''/'''param''' in the infobox. ; param<sup>n</sup>: The content of the associated parameter, typically displayed as plain text in the right column of the infobox's body unless noted otherwise above. ; page: A page number for a provided ''source'' '''paramname<sup>n</sup>'''. '''page''' only appears if there is a ''source''. ; footnote: An additional footnote for the bottom of the infobox. A common use case for the footnote parameter is to denote information that differs between multiple books about the subject. For example, [[dhampir]] creatures have the common trait in ''[[Monster Core]]'', but dhampir player characters have the {{2eTrait|Uncommon}} trait in ''[[Player Core 2]]''. Changes that occurred in the [[Pathfinder Remaster]] project might label [[legacy content]] as follows: "Legacy 2E: In ''[[Core Rulebook (Second Edition)|Core Rulebook]]'' 409, ''[[awaken animal]]'' additionally had the {{2eTrait|Divination}} trait." ; 1E,2E: If present this will create a tabbed 1E/2E section in the infobox. ; aon1e,aon2e: Can contain a link to an Archive of Nethys page, starting after the first slash (e.g. <code>Monsters.aspx?ID=490</code>)
Summary:
Please note that all contributions to 2d4chan 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
2d4chan: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
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information