Template:Infobox Key Item/Wrapper: Difference between revisions
From HorizonXI Wiki
(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...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{ #ifeq:{{NAMESPACE}}|{{ns:Template}}| [[Category:Templates|Key Item (Infobox)/Wrapper]] [[Category:Infoboxes|Key Item (Infobox)/Wrapper | <noinclude>{{ #ifeq:{{NAMESPACE}}|{{ns:Template}}| [[Category:Templates|Key Item (Infobox)/Wrapper]] [[Category:Infoboxes|Key Item (Infobox)/Wrapper]] }} | ||
{{Tocright}} | {{Tocright}} | ||
==Usage== | ==Usage== |
Latest revision as of 04:57, 14 February 2023
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
- 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.
- 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>
- If a value is provided, a closing
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.