Difference between revisions of "Template:Item List-Start"
From sureai
m (Add spacing between title and content) |
(Move title to the inside of the container, might fix spacing issues when a float is to the right of the item list) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#if: {{{title|}}}|<{{#if: {{{noheader|}}}|div|h2}} style = "height: 50px; border: 0; border-radius: 5px; margin: 0 5px 5px 0; padding: 0 5px; display: flex; flex-flow: row nowrap; align-items: center; justify-content: center; font-weight: bold; font-size: 1.75em; background: RGB(73, 73, 59); color: white; font-family: sans-serif; ">{{{title}}}</{{#if: {{{noheader|}}}|div|h2}}>|}} | + | <includeonly><div style="display: flex; flex-flow: row wrap; align-items: stretch; ">{{#if: {{{title|}}}|<{{#if: {{{noheader|}}}|div|h2}} style = "flex: 100%; height: 50px; border: 0; border-radius: 5px; margin: 0 5px 5px 0; padding: 0 5px; display: flex; flex-flow: row nowrap; align-items: center; justify-content: center; font-weight: bold; font-size: 1.75em; background: RGB(73, 73, 59); color: white; font-family: sans-serif; ">{{{title}}}</{{#if: {{{noheader|}}}|div|h2}}>|}}</includeonly><noinclude> |
− | + | ||
== Usage == | == Usage == | ||
This template is used to begin an Item List. Add items to the item list with [[:Template:Item List-Item]] and close it with [[:Template:Item List-End]]. For more info on how to use an item list, check [[:Template:Item List-Item]]. | This template is used to begin an Item List. Add items to the item list with [[:Template:Item List-Item]] and close it with [[:Template:Item List-End]]. For more info on how to use an item list, check [[:Template:Item List-Item]]. |
Latest revision as of 18:50, 13 July 2017
Usage
This template is used to begin an Item List. Add items to the item list with Template:Item List-Item and close it with Template:Item List-End. For more info on how to use an item list, check Template:Item List-Item.
Parameters
- title: If present, adds an h2 title to the top of the container.
- noheader: If nonempty, makes the title created with the parameter above a normal div instead of an h2, making it not appear in the Table of Contents.