Difference between revisions of "Template:Item List-Item"
From sureai
(Created page with "<includeonly><!-- Container --> <div style = "flex: 1 0 200px; margin-right: 5px; display: flex; flex-flow: column nowrap; align-items: stretch; "> {{#if: {{{title|}}}| <!-- T...") |
(Move item spacing to the outer container, Add titleless examples) |
||
| Line 1: | Line 1: | ||
<includeonly><!-- Container --> | <includeonly><!-- Container --> | ||
| − | <div style = "flex: 1 0 200px; margin | + | <div style = "flex: 1 0 200px; margin: 0 5px 5px 0; display: flex; flex-flow: column nowrap; align-items: stretch; "> |
{{#if: {{{title|}}}| | {{#if: {{{title|}}}| | ||
<!-- Title --> | <!-- Title --> | ||
| Line 7: | Line 7: | ||
|}} | |}} | ||
<!-- Content --> | <!-- Content --> | ||
| − | <div style = "flex: 1; border: 1px solid gray; border-radius | + | <div style = "flex: 1; border: 1px solid gray; border-radius: 5px; padding: 5px; display: flex; flex-flow: column nowrap; "> |
{{{1|}}} | {{{1|}}} | ||
</div> | </div> | ||
| Line 25: | Line 25: | ||
Well, would you look at that! I'm inside the item list! | Well, would you look at that! I'm inside the item list! | ||
}} | }} | ||
| − | {{Item List-Item | + | {{Item List-Item| |
| − | + | Your item has no title? Don't worry, it ''just works''! | |
}} | }} | ||
{{Item List-Item|title=Things|noheader=1| | {{Item List-Item|title=Things|noheader=1| | ||
| Line 33: | Line 33: | ||
*# Just Fine | *# Just Fine | ||
*# Inside | *# Inside | ||
| − | ==== The Item === | + | ==== The Item ==== |
Don't worry. | Don't worry. | ||
}} | }} | ||
| Line 43: | Line 43: | ||
Well, would you look at that! I'm inside the item list! | Well, would you look at that! I'm inside the item list! | ||
}} | }} | ||
| − | {{Item List-Item|title= | + | {{Item List-Item|title=Climb it|noheader=1| |
| − | + | You see that mountain over there? ''You can climb it!'' | |
}} | }} | ||
{{Item List-Item|title=Things|noheader=1| | {{Item List-Item|title=Things|noheader=1| | ||
| Line 53: | Line 53: | ||
==== The Item ==== | ==== The Item ==== | ||
Don't worry. | Don't worry. | ||
| + | }} | ||
| + | {{Item List-End}} | ||
| + | |||
| + | <pre>{{Item List-Start}} | ||
| + | {{Item List-Item|title=Hello|noheader=1| | ||
| + | Your container doesn't need to have a title! | ||
| + | }} | ||
| + | {{Item List-Item| | ||
| + | And neither do your items! | ||
| + | |||
| + | '''IT JUST WORKS!''' | ||
| + | }} | ||
| + | {{Item List-End}} | ||
| + | </pre> | ||
| + | |||
| + | {{Item List-Start}} | ||
| + | {{Item List-Item|title=Hello|noheader=1| | ||
| + | Your container doesn't need to have a title! | ||
| + | }} | ||
| + | {{Item List-Item| | ||
| + | And neither do your items! | ||
| + | |||
| + | '''IT JUST WORKS!''' | ||
}} | }} | ||
{{Item List-End}} | {{Item List-End}} | ||
Revision as of 18:23, 13 July 2017
This template is used to add an item to an Item List that was begun with Template:Item List-Start.
Parameters
- title: Adds a title to the top of this item. Title is hidden if this parameter is empty.
- 1: This item's content.
- noheader: If nonempty, makes the item's title a div instead of an h3, which hides it from the Table of Contents.
Examples
{{Item List-Start|title=Fancy!|noheader=1}}
{{Item List-Item|title=An item|noheader=1|
Well, would you look at that! I'm inside the item list!
}}
{{Item List-Item|
Your item has no title? Don't worry, it ''just works''!
}}
{{Item List-Item|title=Things|noheader=1|
* Formatting
** '''Works'''
*# Just Fine
*# Inside
==== The Item ====
Don't worry.
}}
{{Item List-End}}
Fancy!
An item
Well, would you look at that! I'm inside the item list!
Climb it
You see that mountain over there? You can climb it!
Things
- Formatting
- Works
- Just Fine
- Inside
The Item
Don't worry.
{{Item List-Start}}
{{Item List-Item|title=Hello|noheader=1|
Your container doesn't need to have a title!
}}
{{Item List-Item|
And neither do your items!
'''IT JUST WORKS!'''
}}
{{Item List-End}}
Hello
Your container doesn't need to have a title!
And neither do your items!
IT JUST WORKS!