Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Nice List Box: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
<templatestyles src="Nice List Box/styles.css"/><includeonly><div class="template-nice-list-box" style="font-family:var(--font-family-header-custom,var(--font-family-serif));border:2px solid {{#if:{{{Color|}}}|{{{Color}}}|var(--color-amaranth-legacy-scope)}}">
<templatestyles src="Nice List Box/styles.css"/><includeonly>
<div class="template-nice-list-box" style="font-family:var(--font-family-header-custom,var(--font-family-serif));border:2px solid {{#if:{{{Color|}}}|{{{Color}}}|var(--color-amaranth-legacy-scope)}}">
<div class="template-nice-list-box-title">{{{Title|unknown}}}</div>
<div class="template-nice-list-box-title">{{{Title|unknown}}}</div>
{{#if: {{{Subtitle|}}}|<div class="template-nice-list-box-subtitle">{{{Subtitle}}}</div>}}
{{#if: {{{Subtitle|}}}|<div class="template-nice-list-box-subtitle">{{{Subtitle}}}</div>}}
Line 7: Line 8:
{{#if: {{{Label1|}}}|<div class="template-nice-list-box-label">{{{Label1}}} - {{{Field1}}}</div>}}
{{#if: {{{Label1|}}}|<div class="template-nice-list-box-label">{{{Label1}}} - {{{Field1}}}</div>}}
{{#if: {{{Label2|}}}|<div class="template-nice-list-box-label">{{{Label2}}} - {{{Field2}}}</div>}}
{{#if: {{{Label2|}}}|<div class="template-nice-list-box-label">{{{Label2}}} - {{{Field2}}}</div>}}
{{#if: {{{Description|}}}|<hr/><span class="template-nice-list-box-description">{{{Description}}}</span><br><hr/>}}
{{#if: {{{Description|}}}|<hr><div class="template-nice-list-box-description">{{{Description}}}</div><hr>}}
{{#if: {{{SubLabel|}}}
{{#if: {{{SubLabel|}}}|<div class="template-nice-list-box-label">{{{SubLabel}}} - {{{SubField}}}</div>}}
{{#if: {{{OptionalLabel1|}}}|<div class="template-nice-list-box-label">{{{OptionalLabel1}}} - {{{OptionalField1}}}</div>}}
|<span style="font-size:var(--font-size-x-large); font-family: var(--font-family-header-custom, var(--font-family-serif)); color:var(--color-base--emphasized);">{{{SubLabel}}} - {{{SubField}}}</span><br>
{{#if: {{{OptionalLabel2|}}}|<div class="template-nice-list-box-label">{{{OptionalLabel2}}} - {{{OptionalField2}}}</div>}}
}}
{{#if: {{{OptionalLabel3|}}}|<div class="template-nice-list-box-label">{{{OptionalLabel3}}} - {{{OptionalField3}}}</div>}}
{{#if: {{{OptionalLabel1|}}}
{{#if: {{{OptionalLabel4|}}}|<div class="template-nice-list-box-label">{{{OptionalLabel4}}} - {{{OptionalField4}}}</div>}}
| <span style="font-size:var(--font-size-x-large); font-family: var(--font-family-header-custom, var(--font-family-serif)); color:var(--color-base--emphasized);">{{{OptionalLabel1}}} - {{{OptionalField1}}}</span><br>
}}
{{#if: {{{OptionalLabel2|}}}
| <span style="font-size:var(--font-size-x-large); font-family: var(--font-family-header-custom, var(--font-family-serif)); color:var(--color-base--emphasized);">{{{OptionalLabel2}}} - {{{OptionalField2}}}</span><br>
}}
{{#if: {{{OptionalLabel3|}}}
| <span style="font-size:var(--font-size-x-large); font-family: var(--font-family-header-custom, var(--font-family-serif)); color:var(--color-base--emphasized);">{{{OptionalLabel3}}} - {{{OptionalField3}}}</span><br>
}}
{{#if: {{{OptionalLabel4|}}}
| <span style="font-size:var(--font-size-x-large); font-family: var(--font-family-header-custom, var(--font-family-serif)); color:var(--color-base--emphasized);">{{{OptionalLabel4}}} - {{{OptionalField4}}}</span><br>
}}
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
Line 52: Line 43:
|OptionalField4=Example
|OptionalField4=Example
}}
}}

==Description==
==Description==
Based on [[Template:Star]] use for lists that you want to look nice. Works great on mobile (better than tables by a LOT). Optional Fields and Labels only show up if the label field is not empty.
Based on [[Template:Star]] use for lists that you want to look nice. Works great on mobile (better than tables by a LOT). Optional Fields and Labels only show up if the label field is not empty.
Line 84: Line 76:
}}
}}
</pre>
</pre>

<templatedata>
<templatedata>
{"params":{
{"params":{

Revision as of 03:09, January 16, 2025

Example
Example
Example
Example - Example
Example - Example

This is the description of my list entry!

Example - Example
Optional1 - Example
Optional2 - Example
Optional3 - Example
Optional4 - Example


Description

Based on Template:Star use for lists that you want to look nice. Works great on mobile (better than tables by a LOT). Optional Fields and Labels only show up if the label field is not empty.

Syntax

{{Nice List Box
|Title=Example
|Color=#FFFFFF
|Font=Helvetica
|Image=Unknown.png
|Gallery=<gallery>
File:Unknown.png
File:Community.png
File:Glypht.png
</gallery>
|Label1=Example
|Field1=Example
|Label2=Example
|Field2=Example
|Description=This is the description of my list entry!
|SubLabel=Example
|SubField=Example
|OptionalLabel1=Optional1
|OptionalField1=Example
|OptionalLabel2=Optional2
|OptionalField2=Example
|OptionalLabel3=Optional3
|OptionalField3=Example
|OptionalLabel4=Optional4
|OptionalField4=Example
}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
TitleTitle

no description

Unknownsuggested
ColorColor

no description

Unknownsuggested
SubtitleSubtitle

no description

Unknownsuggested
ImageImage

no description

Unknownsuggested
GalleryGallery

Enter proper gallery formatting here.

Unknownsuggested
SubsubtitleSubsubtitle

no description

Unknownsuggested
Label1Label1

no description

Unknownsuggested
Field1Field1

no description

Unknownsuggested
Label2Label2

no description

Unknownsuggested
Field2Field2

no description

Unknownsuggested
DescriptionDescription

no description

Unknownsuggested
SubLabelSubLabel

no description

Unknownsuggested
SubFieldSubField

no description

Unknownsuggested
OptionalLabel1OptionalLabel1

Does not show up if it is empty

Unknownsuggested
OptionalField1OptionalField1

Does not show up if its label is empty

Unknownsuggested
OptionalLabel2OptionalLabel2

Does not show up if it is empty

Unknownsuggested
OptionalField2OptionalField2

Does not show up if its label is empty

Unknownsuggested
OptionalLabel3OptionalLabel3

Does not show up if it is empty

Unknownsuggested
OptionalField3OptionalField3

Does not show up if its label is empty

Unknownsuggested
OptionalLabel4OptionalLabel4

Does not show up if it is empty

Unknownsuggested
OptionalField4OptionalField4

Does not show up if its label is empty

Unknownsuggested