Template:Notice: Difference between revisions

From A3! Wiki
Fimbulvetr (talk | contribs)
No edit summary
Fimbulvetr (talk | contribs)
No edit summary
Line 27: Line 27:
}
}


.noticeOuter {
.notice {
     padding: .75rem 1.25rem;
     padding: .75rem 1.25rem;
margin: 0 auto;
    margin: 0 auto 1rem auto;
    margin-bottom: 1rem;
     border: 1px solid transparent;
     border: 1px solid transparent;
     border-radius: .25rem;
     border-radius: .25rem;
     max-width: 50%;
     display: inline-block;
text-align: center;
    text-align: center;
}
}
}}
}}


<div class="noticeOuter {{#if: {{{1|}}}|{{#switch: {{{1}}}|Spoiler|spoiler=noticeSpoiler|#default=noticeInfo}}|}}">{{#switch: {{{1}}}|Spoiler|spoiler=<b>Warning!</b> The following text may contain spoilers for aspects of the story. Proceed with caution.|#default={{{1}}} }}</div>
<div style="text-align: center"><div class="notice {{#if: {{{1|}}}|{{#switch: {{{1}}}|Spoiler|spoiler=noticeSpoiler|#default=noticeInfo}}|}}">{{#switch: {{{1}}}|Spoiler|spoiler=<b>Warning!</b> The following text may contain spoilers for aspects of the story. Proceed with caution.|#default={{{1}}} }}</div></div>
</includeonly>
</includeonly>

Revision as of 06:33, 18 January 2018

Creates a notice containing information or a spoiler warning.

How to Use

{{Notice|Whatever is here will be the text of the page unless the contents is the word spoiler, in which case it will create a yellow spoiler warning.}}




Whatever is here will be the text of the page unless the contents is the word spoiler, in which case it will create a yellow spoiler warning.


{{Notice|spoiler}}




Warning! The following text may contain spoilers for aspects of the story. Proceed with caution.