Template:Infobox Key Item/Wrapper

From HorizonXI Wiki
< Template:Infobox Key Item
Revision as of 04:54, 14 February 2023 by Garnet-HorizonXI (Fandom) (talk | contribs) (Created page with "<noinclude>{{ #ifeq:{{NAMESPACE}}|{{ns:Template}}| Key Item (Infobox)/Wrapper Key Item (Infobox)/Wrapper de:Vorlage:Infobox Schlüssel-Item }} {{Tocright}} ==Usage== This is a sub-template for {{Tl|{{BASEPAGENAME}}}}. It outputs the various DIVs used for formatting the Infobox. This allows for easy adjustment of each one outside of the main template. ===Syntax=== {{CssPre|0||0.1|tag=code|b=n|t=y | content = <nowiki>In...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
de:Vorlage:Infobox Schlüssel-Item

Usage

This is a sub-template for {{Infobox Key Item}}.

It outputs the various DIVs used for formatting the Infobox. This allows for easy adjustment of each one outside of the main template.

Syntax

{{Infobox Key Item/Wrapper|<type>|<content>}}

Parameters

  1. type: The type of wrapper DIV to output. Valid values:
    • image = Image or placeholder row.
    • name = Name of the item.
    • row = Opening DIV for a row.
    • label = Information block label (left side. ex: "Description")
    • info = Information block (right side)
    • Any other value (including blank) will result in an unstyled DIV being output.
  2. content: Optional. The content to be wrapped in the DIV.
    • If a value is provided, a closing </div> will be output.
      Example: {{Infobox Key Item/Wrapper|label|Description:}}
    • If it's not provided, it will need to be closed manually.
      Example: {{Infobox Key Item/Wrapper|info}}<!-- lots of functions here --></div>

Refer to the code of the main template for full usage details.

Default Output

None. This is a sub-template that only creates a DIV element.