Template:Infobox (AL)/doc: Difference between revisions

From Exiled Kingdoms Wiki
No edit summary
No edit summary
Line 4: Line 4:
== Usage ==
== Usage ==
<pre>
<pre>
{{Infobox
{{Infobox (AL)
|Title =  
|Title =  
|Surtitle =  
|Surtitle =  
Line 32: Line 32:
<tr><td>Style1...Style9</td><td>No</td><td>Inline CSS properties for formatting Content1...Content9, respectively.</td><td>"CSS properties" (in quotation marks), e.g. "text-align:left; font-size:large;"</td></tr>
<tr><td>Style1...Style9</td><td>No</td><td>Inline CSS properties for formatting Content1...Content9, respectively.</td><td>"CSS properties" (in quotation marks), e.g. "text-align:left; font-size:large;"</td></tr>
</table>
</table>
== Example ==
The following example defines an infobox template for quest pages which accepts named parameters such as <nowiki>{{{QuestName}}}</nowiki>, <nowiki>{{{QuestType}}}</nowiki>, etc.
<pre>
{{Infobox
|Title = {{{QuestName}}}
|Surtitle = {{{QuestType}}}
|Subtitle =
|Content0 = {{{Image}}}
|Style0 = "height:200px"
|Header1 = Starting Location
|Content1 = {{{Location}}}
|Style1 = "font-style:italic"
|Header2 = Initiated by
|Content2 = {{{Giver}}}
|Style2 = "font-style:italic"
|Header3 = Rewards
|Content3 = {{{Rewards}}}
|Style3 = "font-style:italic"
}}
</pre>

Revision as of 12:48, 2 February 2020

Description

This is a simply base template for infoboxes. It is not meant to be directly called from within Wiki pages, but for implementing customized infobox templates for specific pages (e.g. quests, characters, items, etc.).

Usage

{{Infobox (AL)
|Title = 
|Surtitle = 
|Subtitle = 
|Content0 = 
|Style0 = 
|Header1 = 
|Content1 = 
|Style1 = 
<!-- ...up to 9... -->
|Header9 = 
|Content9 = 
|Style9 = 
}}

Parameters

NameRequiredDescriptionValues
TitleYesThe title of the infobox.arbitrary text
SurtitleNoText to be displayed directly above the title.arbitrary text
SubtitleNoText to be displayed directly below the title.arbitrary text
Content0NoThe content of the cell below the title.arbitrary text / image
Style0NoInline CSS properties for formatting Content0."CSS properties" (in quotation marks), e.g. "text-align:left; font-size:large;"
Header1...Header9NoThe different headers of the infobox. Up to 9 are possible. Empty headers will not be displayed.arbitrary text
Content1...Content9NoThe content of the cells below Header1...Header9, respectively. Will only display if the corresponding Header is not empty.arbitrary text / image
Style1...Style9NoInline CSS properties for formatting Content1...Content9, respectively."CSS properties" (in quotation marks), e.g. "text-align:left; font-size:large;"