×
Create a new article
Write your page title here:
We currently have 3,089 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,089Articles

Template:CustomNotice: Difference between revisions

(fix border radius, increase inner padding, allow templates to choose details formatting)
(remove default value)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="width:fit-content; min-width:min(600px, 100%);">
<div style="width:fit-content; min-width:min(600px, 100%);">
{| style="margin:3px 0; border:1pt solid {{{border_color|#303030}}}; border-radius:10px; box-sizing:border-box; width:auto; min-height:64px;" class="plainlinks"
<table style="margin:3px 0; border:1pt solid {{{border_color|#303030}}}; border-radius:10px; box-sizing:border-box; width:auto; min-height:64px;" class="plainlinks">
|-
<tr>
| style="padding: 0.5em 0 0.5em 0.9em; text-align:center;" | [[File:{{{image|UroSign.png}}}|{{{imagewidth|{{{image_size|36}}}}}}px|link=]]
<td style="padding: 0.5em 0 0.5em 0.9em; text-align:center;">[[File:{{{image|UroSign.png}}}|{{{imagewidth|{{{image_size|48}}}}}}px|link=|class={{{image_class|}}}]]</td>
| style="padding: 0.25em 0.9em; width:100%;" | {{{description|This user wants to be noticed.}}}{{#if: {{{details|}}} |<br>{{{details}}} }}
<td style="padding: 0.25em 0.9em; width:100%;"> {{{description|This user wants to be noticed.}}}{{#if: {{{details|}}} |<br>{{{details}}} }}</td>
|}
</tr></table>
</div><noinclude>
</div><noinclude>
{{documentation}}
{{documentation}}
[[Category:Formatting templates]]
[[Category:Notice templates]]
[[Category:User templates]]
</noinclude>
</noinclude>

Latest revision as of 21:46, 17 November 2024

Documentation (for the above template, sometimes hidden or invisible)

Description

This is the base template for notices on the wiki.

Usage

You can use this template directly to make any notice. More commonly, you would use a template that has this one as a base. The point is to allow wiki notices to have a consistent format.

Parameters

Base notice template

Template parameters

ParameterDescriptionTypeStatus
Border Colorborder_color

Color of the box border.

Default
#303030
Stringoptional
Imageimage

Image to accompany the notice.

Default
UroSign.png
Filerequired
Image Widthimagewidth image_size

Size of the notice image, in px.

Default
48
Numberoptional
Descriptiondescription

The notice text.

Contentrequired
Detailsdetails

A distinct second section (or line) to the notice text.

Contentoptional

Sample

Check one of the notice templates, such as {{stub}}.

Visit Template:CustomNotice/doc to edit this text! (How does this work?)