Difference between revisions of "Template:Notice"
From A3! Wiki
Fimbulvetr (talk | contribs) |
Fimbulvetr (talk | contribs) |
||
Line 27: | Line 27: | ||
} | } | ||
− | . | + | .notice { |
padding: .75rem 1.25rem; | padding: .75rem 1.25rem; | ||
− | margin: 0 auto | + | margin: 0 auto 1rem auto; |
− | |||
border: 1px solid transparent; | border: 1px solid transparent; | ||
border-radius: .25rem; | border-radius: .25rem; | ||
− | + | display: inline-block; | |
− | text-align: center; | + | text-align: center; |
} | } | ||
}} | }} | ||
− | <div class=" | + | <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.