Template:Notice: Difference between revisions

From Mamiya Wiki
mNo edit summary
No edit summary
Line 28: Line 28:
     background-color: #f8d7da;
     background-color: #f8d7da;
     border-color: #f5c6cb;
     border-color: #f5c6cb;
} }} <div style="text-align: center"><div class="notice {{#if: {{{1|}}}|{{#switch: {{{1}}}|Spoiler|spoiler=noticeSpoiler|Warning|warning=noticeWarning|#default=noticeInfo}}|}}">{{#switch: {{{1}}}|Spoiler|spoiler=<b>Warning!</b> The following text contains MAJOR SPOILERS for aspects of MAMIYA's story. Proceed with caution.|Warning|warning={{{2}}}|#default={{{1}}} }}</div></div> </includeonly>
} }} <div style="text-align: center"><div class="notice {{#if: {{{1|}}}|{{#switch: {{{1}}}|Spoiler|spoiler=noticeSpoiler|Warning|warning=noticeWarning|#default=noticeInfo}}|}}">{{#switch: {{{1}}}|Spoiler|spoiler=<b>Warning!</b> The following text contains spoilers for aspects of MAMIYA's story. Proceed with caution.|Warning|warning={{{2}}}|#default={{{1}}} }}</div></div> </includeonly>

Revision as of 16:02, 2 June 2023


Creates 1 of 3 types of Notice boxes: general (green), spoiler (yellow), and warning (red).

How to Use

Click the respective header links to see live examples of each Notice box.

General

{{Notice|Whatever is here will be the notice text. There is no need to state a 'type', unlike for the other 2 Notice boxes.}}

would generate this:

Whatever is here will be the notice text. There is no need to state a 'type', unlike for the other 2 Notice boxes.

Spoiler

{{Notice|spoiler}}

would automatically generate this standard spoiler tag:

Warning! The following text contains spoilers for aspects of MAMIYA's story. Proceed with caution.

Warning

{{Notice|warning|<b>Trigger warning</b>: A section of the story summary below depicts [insert topics here]. Reader discretion is advised.}}

would generate this:

Trigger warning: A section of the story summary below depicts [insert topics here]. Reader discretion is advised.

Note that the use of this box is not restricted to trigger warnings only, and may be used for any other important warnings for wiki visitors.