Template:Notice: Difference between revisions
From questden
Jump to navigationJump to search
mNo edit summary |
(okay, let's try this with some minimum spacing) |
||
Line 5: | Line 5: | ||
;majortext:Bold, leading part of the message, e.g. "this is a stub". | ;majortext:Bold, leading part of the message, e.g. "this is a stub". | ||
;minortext:Rest of the message, e.g. "you should add stuff". Remember that you can put (most) markup in template arguments, like links. | ;minortext:Rest of the message, e.g. "you should add stuff". Remember that you can put (most) markup in template arguments, like links. | ||
</noinclude>{| style="border:1px solid black; margin-left: auto; margin-right: auto;" | </noinclude>{| style="border:1px solid black; margin-left: auto; margin-right: auto; margin-top: 1em; margin-bottom: 1em" | ||
|- | |- | ||
|style="{{#if:{{{color|}}}|border-{{#if:{{{image|}}}|right: 10px|left: 40px}} solid {{{color}}}; min-height: 40px;"|}}|{{#if:{{{color|}}}|{{#if:{{{image|}}}|[[Image:{{{image}}}|40px]]|}}|[[Image:{{{image|Tgchan_logo.png}}}|40px]]}} '''{{{majortext|Note:}}}''' {{{minortext|}}} | |style="{{#if:{{{color|}}}|border-{{#if:{{{image|}}}|right: 10px|left: 40px}} solid {{{color}}}; min-height: 40px;"|}}|{{#if:{{{color|}}}|{{#if:{{{image|}}}|[[Image:{{{image}}}|40px]]|}}|[[Image:{{{image|Tgchan_logo.png}}}|40px]]}} '''{{{majortext|Note:}}}''' {{{minortext|}}} | ||
|}<noinclude>[[Category:Templates]] [[Category:Banners]]</noinclude> | |}<noinclude>[[Category:Templates]] [[Category:Banners]]</noinclude> |
Revision as of 20:28, 23 October 2015
Creates a nice little box for some kind of notification on the article. Used for formatting things like Template:Stub and Template:Spoilers, amongst others. Takes arguments:
- color
- Color bar to hint the box with. Defaults to no hinting. Use CSS colours, e.g. names or hash-prefixed hex.
- image
- Icon to use. Defaults to the tgchan logo unless a color is specified.
- majortext
- Bold, leading part of the message, e.g. "this is a stub".
- minortext
- Rest of the message, e.g. "you should add stuff". Remember that you can put (most) markup in template arguments, like links.
Note: |