Jump to content

Template:Notice: Difference between revisions

From The Perfect Tower II
Notice box in the TPT2 brand kit style. Source: wiki repo onwiki/Template/Notice.wikitext
 
Fix
 
Line 1: Line 1:
<templatestyles src="Notice/styles.css" /><div class="tpt-callout wiki-notice wiki-notice--{{{type|info}}}{{#if:{{{small|}}}| wiki-notice--small}}" role="note"><span class="tpt-tag {{#switch:{{{type|info}}}|tip|info=tpt-tag--info|warning|outdated|rebuilding=tpt-tag--warning|spoiler=tpt-tag--new|important=tpt-tag--danger|checked=tpt-tag--success|#default=}} tpt-callout__tag">{{{tag|{{#switch:{{{type|info}}}|tip=Tip|warning=Warning|outdated=Outdated|rebuilding=Rebuilding|spoiler=Spoilers|stub=Stub|historical=Historical|important=Important|checked=Checked|#default=Note}}}}}</span><div class="wiki-notice__body">{{#if:{{{title|}}}|<span class="wiki-notice__title">{{{title}}}</span> }}{{{text|{{{1|}}}}}}</div></div><noinclude>
<templatestyles src="Notice/styles.css" /><div class="tpt-callout wiki-notice wiki-notice--{{{type|info}}} {{#if:{{{small|}}}|wiki-notice--small}}" role="note"><span class="tpt-tag {{#switch:{{{type|info}}}|tip|info=tpt-tag--info|warning|outdated|rebuilding=tpt-tag--warning|spoiler=tpt-tag--new|important=tpt-tag--danger|checked=tpt-tag--success|#default=}} tpt-callout__tag">{{{tag|{{#switch:{{{type|info}}}|tip=Tip|warning=Warning|outdated=Outdated|rebuilding=Rebuilding|spoiler=Spoilers|stub=Stub|historical=Historical|important=Important|checked=Checked|#default=Note}}}}}</span><div class="wiki-notice__body">{{#if:{{{title|}}}|<span class="wiki-notice__title">{{{title}}}</span>}} {{{text|{{{1|}}}}}}</div></div><noinclude>
A notice box in the style of the TPT2 brand kit (<code>tpt-callout</code> with a status tag). [[Template:Stub]], [[Template:Section stub]], [[Template:Spoiler warning]], [[Template:Spoiler hatnote]], [[Template:Historical]] and [[Template:Outdated]] are built on it.
A notice box in the style of the TPT2 brand kit (<code>tpt-callout</code> with a status tag). [[Template:Stub]], [[Template:Section stub]], [[Template:Spoiler warning]], [[Template:Spoiler hatnote]], [[Template:Historical]] and [[Template:Outdated]] are built on it.



Latest revision as of 12:13, 6 October 2026

Note

A notice box in the style of the TPT2 brand kit (tpt-callout with a status tag). Template:Stub, Template:Section stub, Template:Spoiler warning, Template:Spoiler hatnote, Template:Historical and Template:Outdated are built on it.

{{Notice|type=tip|text=Exotic skills cost 500 Exotic Gems each.}}

Types: info (default, tag "Note"), tip, warning, outdated, rebuilding, spoiler, stub, historical, important, checked.

A notice box with a status tag, in the TPT2 brand kit's style.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

info (default), tip, warning, outdated, rebuilding, spoiler, stub, historical, important or checked

Default
info
Stringsuggested
Texttext 1

The message

Contentrequired
Titletitle

Optional bold lead-in before the text

Stringoptional
Tagtag

Replaces the tag text that the type sets

Stringoptional
Smallsmall

Any value makes a smaller box, for sections

Booleanoptional