Template:Infobox tabbed

From PathfinderWiki
Template documentation (for the above template, sometimes hidden or invisible)
Subpages of this template:
See also: Template:2E, Template:1E name, and Template:2E disambiguation

Infoboxes are informational summaries of an article's key points. {{Infobox}} allows you to create infoboxes that follow a standard appearance and style with minimal markup. {{Infobox tabbed}} is based on the Person and Book infoboxes from the Forgotten Realms wiki, and extended to use the Tabber extension.

Usage

{{Infobox tabbed
| ibname     = 
| ibtype     = 
| image      = 
| imagebgcolor = 
| website    = 
| pubcode    = 

| ibclass    = 
| bgcolor    = 
| fgcolor    = 

| 1E = {{Infobox tabbed/tab

| paramname1 = Some parameter
| param1     = {{{1E-...|}}}
...
| page        = {{{1E-page|}}}
}}

| 2E = {{Infobox tabbed/tab

| paramname1 = Some parameter
| param1     = {{{...|}}}
...
| page        = {{{page|}}}
}}
}}

All of {{infobox}}'s parameters are optional, and except for name do not appear if not passed or are passed with an empty parameter. Most uses of {{infobox}}es should be in templates that pass the necessary parameters to {{infobox}}. See the examples below for more details.

Title and type metadata

ibname
The name that appears at the top of the infobox.
Default: {{PAGENAME}}
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. This should almost always be 250px wide.
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: #FFF
ibclass
The name of a CSS class to associate with the infobox. tantable and 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: #000
fgcolor
A CSS color code for the text of the ibname and ibtype parameters.
Default: #FFF

Parameters

Parameters for each edition should be set as parameters of the child templates {{Infobox tabbed/tab}}.

The parameters for each edition must have unique names. An easy way to implement this is to prefix the parameters with an edition identifier, such as {{{1E-type|}}} for first edition and {{{type|}}}. The second edition tab is shown by default, so first edition parameters should be considered divergent.

The parameters below should populate each child template.

paramnamen
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 paramnamen entries as you wish, but each should be accompanied by a paramn of the same number.
Certain paramnames have special properties:
artworkby, imagesof, gallery, worksby: Links the param to a category, either :Category:Artwork by param for artwork by creator, :Category:Images of param for artwork categorized by subject, :Category:Artwork from param for artwork categorized by source, or :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: {{PAGENAME}}
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.
paramn
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 paramnamen. page only appears if there is a source.

Example

Subject template example

You can create an infobox template that itself calls {{Infobox tabbed}}. Indeed, this is the preferred way to use {{Infobox tabbed}}—you can create an infobox that employs a reusable, standard set of parameters for a common subject without needing to use complex wiki code or HTML.

Infobox tabbed
(City)

{{Infobox tabbed
| ibname     = {{{name|}}}
| ibtype     = City
| image      = {{{image|}}}

| bgcolor    = #363
| fgcolor    = #fff

| 1E = {{Infobox tabbed/1E

| paramname1 = Titles
| param1     = {{{titles|}}}

| paramname2 = Nation
| param2     = {{{nation|}}}

| paramname3 = Region
| param3     = {{{region|}}}

| paramname4 = Size
| param4     = {{{size|}}}

| paramname5 = Population
| param5     = {{{population|}}}

| paramname6 = Demographics
| param6     = {{{demographics|}}}

| paramname7 = Government
| param7     = {{{government|}}}

| paramname8 = Alignment
| param8     = {{{alignment|}}}

| paramname9 = Demonym
| param9     = {{{natives|}}}

| paramname10 = Adjective
| param10     = {{{adjective|}}}

| paramname11 = Ruler
| param11     = {{{ruler|}}}

| paramname12 = Leader
| param12     = {{{leader|}}}

| paramname13 = regionmap
| param13     = {{{regionmap|}}}

| paramname14 = source
| param14     = {{{source|}}}
| page        = {{{page|}}}
}}

| 2E = {{Infobox tabbed/2E

| paramname1 = Titles
| param1     = {{{titles|}}}

| paramname2 = Nation
| param2     = {{{nation|}}}

| paramname3 = Region
| param3     = {{{region|}}}

| paramname4 = Size
| param4     = {{{size|}}}

| paramname5 = Population
| param5     = {{{population|}}}

| paramname6 = Demographics
| param6     = {{{demographics|}}}

| paramname7 = Government
| param7     = {{{government|}}}

| paramname8 = Alignment
| param8     = {{{alignment|}}}

| paramname9 = Demonym
| param9     = {{{natives|}}}

| paramname10 = Adjective
| param10     = {{{adjective|}}}

| paramname11 = Ruler
| param11     = {{{ruler|}}}

| paramname12 = Leader
| param12     = {{{leader|}}}

| paramname13 = regionmap
| param13     = {{{regionmap|}}}

| paramname14 = source
| param14     = {{{source|}}}
| page        = {{{page|}}}
}}
}}