Difference between revisions of "Template:Notice"
From A3! Wiki
Fimbulvetr (talk | contribs) (Created page with "<noinclude> Category:Template Creates a notice containing information or a spoiler warning. ==How to Use== <pre>{{Notice|Whatever is here will be the text of the page unl...") |
Fimbulvetr (talk | contribs) |
||
Line 15: | Line 15: | ||
<includeonly> | <includeonly> | ||
{{#css: | {{#css: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.noticeInfo { | .noticeInfo { | ||
color: #0c5460; | color: #0c5460; | ||
Line 35: | Line 28: | ||
.noticeOuter { | .noticeOuter { | ||
− | text-align: center; | + | padding: .75rem 1.25rem; |
+ | margin: 0 auto; | ||
+ | margin-bottom: 1rem; | ||
+ | border: 1px solid transparent; | ||
+ | border-radius: .25rem; | ||
+ | max-width: 50%; | ||
+ | text-align: center; | ||
} | } | ||
}} | }} | ||
− | <div class="noticeOuter | + | <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> |
− | |||
</includeonly> | </includeonly> |
Revision as of 03:20, 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.