Template:Notice: Difference between revisions
Speedybrain (talk | contribs) Notice box in the TPT2 brand kit style. Source: wiki repo onwiki/Template/Notice.wikitext |
Speedybrain (talk | contribs) 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Type | type | info (default), tip, warning, outdated, rebuilding, spoiler, stub, historical, important or checked
| String | suggested |
| Text | text 1 | The message | Content | required |
| Title | title | Optional bold lead-in before the text | String | optional |
| Tag | tag | Replaces the tag text that the type sets | String | optional |
| Small | small | Any value makes a smaller box, for sections | Boolean | optional |