Difference between revisions of "Template:Navbox/Row"

From Mizuumi Wiki
Jump to navigation Jump to search
m
m (Updated documentation to show parameters use original images sizes now as default.)
Line 11: Line 11:
 
*'''data''': [[Template:Navbox-Text]] or [[Template:Navbox-Icon]] to show as elements in the right column.
 
*'''data''': [[Template:Navbox-Text]] or [[Template:Navbox-Icon]] to show as elements in the right column.
 
===Optional Parameters===
 
===Optional Parameters===
 +
*'''iconwidth''': Default icon width in pixels, but each icon can still be adjusted individually. Setting to "0" tries to use image's original width. (Default:0)
 +
*'''iconheight''': Default icon height in pixels, but each icon can still be adjusted individually. Setting to "0" tries to use image's original height. (Default:0)
 +
*'''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)
 
*'''textsize''': Default text size of any row elements. (Default: 1.0)
*'''textwidth''': Default text area width. To be used when text doesn't fit underneath icons nicely. (Default in pixels: Match iconwidth)
 
*'''iconwidth''': Default icon width, but each icon can still be adjusted individually. (Default in pixels: 50)
 
*'''iconheight''': Default icon height, but each icon can still be adjusted individually. (Default in pixels: 50)
 
 
==Example==
 
==Example==
 
===Example:===
 
===Example:===
  <nowiki>{{Navbox
+
  <nowiki>{{Navbox | title=UNI Example | link=Under Night In-Birth/UNIST
| title=UNI Example
 
| link=Under Night In-Birth/UNIST
 
 
  | rows=
 
  | rows=
{{Navbox-Row| text=General | iconwidht=68
+
{{Navbox-Row| text=Characters | iconwidth=68
 
  | data=
 
  | data=
 
{{Navbox-Icon| image=uni hyde icon.png | text=Hyde | link=Under Night In-Birth/UNIST/Hyde}}
 
{{Navbox-Icon| image=uni hyde icon.png | text=Hyde | link=Under Night In-Birth/UNIST/Hyde}}
Line 30: Line 28:
 
}}</nowiki>
 
}}</nowiki>
 
===Output:===
 
===Output:===
{{Navbox
+
{{Navbox | title=UNI Example | link=Under Night In-Birth/UNIST
| title=UNI Example
 
| link=Under Night In-Birth/UNIST
 
 
  | rows=
 
  | rows=
 
{{Navbox-Row| text=Characters | iconwidth=68
 
{{Navbox-Row| text=Characters | iconwidth=68

Revision as of 09:55, 22 December 2019

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. Setting to "0" tries to use image's original width. (Default:0)
  • iconheight: Default icon height in pixels, but each icon can still be adjusted individually. Setting to "0" tries to use image's original height. (Default:0)
  • 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