Difference between revisions of "Template:Navbox/Row"

From Mizuumi Wiki
Jump to navigation Jump to search
(Moved documentation and made a slight change for row markers)
(Undo because I broke it)
(Tag: Undo)
Line 3: Line 3:
 
{{#vardefine:textsize|{{{textsize|1.0}}}}}
 
{{#vardefine:textsize|{{{textsize|1.0}}}}}
 
{{#vardefine:textwidth|{{{textwidth|{{#var:iconwidth}}}}}}}
 
{{#vardefine:textwidth|{{{textwidth|{{#var:iconwidth}}}}}}}
|-
 
 
| width="10%" | '''{{{text|}}}'''
 
| width="10%" | '''{{{text|}}}'''
| {{{data|}}}</includeonly><noinclude>{{Documentation}}
+
| {{{data|}}}
[[Category:Universal]]</noinclude>
+
|-</includeonly><noinclude>__NOTOC__==Usage==
 +
Creates a row in a Navigation box. To be used exclusively with [[Template:Navbox]].
 +
===Template Parameters===
 +
*'''text''': Text to display in left column.
 +
*'''data''': [[Template:Navbox-Text]] or [[Template:Navbox-Icon]] to show as elements in the right column.
 +
===Optional Parameters===
 +
*'''iconwidth''': Default icon width in pixels, but each icon can still be adjusted individually. (Default:50)
 +
*<del>'''iconheight''': Default icon height in pixels, but each icon can still be adjusted individually. (Default:0)</del> Just use "iconwidth" for the indefinite future. This variable doesn't play nice with "textwidth".
 +
*'''textwidth''': Default text area width in pixels. To be used when text doesn't fit underneath icons nicely. (Default:inherit)
 +
*'''textsize''': Default text size of any row elements. (Default: 1.0)
 +
==Example==
 +
===Example:===
 +
<nowiki>{{Navbox | title=UNI Example | link=Under Night In-Birth/UNIST
 +
| rows=
 +
{{Navbox-Row| text=Characters | iconwidth=68
 +
| data=
 +
{{Navbox-Icon| image=uni hyde icon.png | text=Hyde | link=Under Night In-Birth/UNIST/Hyde}}
 +
{{Navbox-Icon| image=uni linne icon.png | text=Linne | link=Under Night In-Birth/UNIST/Linne}}
 +
{{Navbox-Icon| image=uni waldstein icon.png | text=Waldstein| link=Under Night In-Birth/UNIST/Waldstein}}
 +
{{Navbox-Icon| image=uni carmine icon.png | text=Carmine | link=Under Night In-Birth/UNIST/Carmine}}
 +
}}
 +
}}</nowiki>
 +
===Output:===
 +
{{Navbox | title=UNI Example | link=Under Night In-Birth/UNIST
 +
| rows=
 +
{{Navbox-Row| text=Characters | iconwidth=68
 +
| data=
 +
{{Navbox-Icon| image=uni hyde icon.png | text=Hyde | link=Under Night In-Birth/UNIST/Hyde}}
 +
{{Navbox-Icon| image=uni linne icon.png | text=Linne | link=Under Night In-Birth/UNIST/Linne}}
 +
{{Navbox-Icon| image=uni waldstein icon.png | text=Waldstein| link=Under Night In-Birth/UNIST/Waldstein}}
 +
{{Navbox-Icon| image=uni carmine icon.png | text=Carmine | link=Under Night In-Birth/UNIST/Carmine}}
 +
}}
 +
}}
 +
</noinclude>

Revision as of 07:19, 20 January 2020

Usage

Creates a row in a Navigation box. To be used exclusively with Template:Navbox.

Template Parameters

Optional Parameters

  • iconwidth: Default icon width in pixels, but each icon can still be adjusted individually. (Default:50)
  • iconheight: Default icon height in pixels, but each icon can still be adjusted individually. (Default:0) Just use "iconwidth" for the indefinite future. This variable doesn't play nice with "textwidth".
  • textwidth: Default text area width in pixels. To be used when text doesn't fit underneath icons nicely. (Default:inherit)
  • textsize: Default text size of any row elements. (Default: 1.0)

Example

Example:

{{Navbox | title=UNI Example | link=Under Night In-Birth/UNIST
 | rows=
{{Navbox-Row| text=Characters | iconwidth=68
 | data=
{{Navbox-Icon| image=uni hyde icon.png | text=Hyde | link=Under Night In-Birth/UNIST/Hyde}}
{{Navbox-Icon| image=uni linne icon.png | text=Linne | link=Under Night In-Birth/UNIST/Linne}}
{{Navbox-Icon| image=uni waldstein icon.png | text=Waldstein| link=Under Night In-Birth/UNIST/Waldstein}}
{{Navbox-Icon| image=uni carmine icon.png | text=Carmine | link=Under Night In-Birth/UNIST/Carmine}}
}}
}}

Output:

UNI Example

Template:Navbox-Row