Template:Notice: Difference between revisions

From Geometry Dash Expanded Wiki
Jump to navigation Jump to search
geometrydash.wiki.gg>Hackey5
mNo edit summary
m 23 revisions imported: Copied from Official Wiki https://geometrydash.wiki.gg/index.php?title=Template%3ANotice&oldid=239751 ; contributors: https://geometrydash.wiki.gg/index.php?title=Template%3ANotice&action=history
 
(127 intermediate revisions by 21 users not shown)
Line 1: Line 1:
{| style="font-size: 95%; width: 80%; margin: 0 auto; border: 1px #AAA solid; border-collapse: collapse; background-color: #EEE; {{{style|}}}; {{#switch:{{{border|}}}
<div class="notice noexcerpt" style="overflow:hidden;width:75%;margin:1rem auto 2rem;padding:1rem;"><div style="display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0.5rem 1rem;padding:0.5rem;">
  | red      = border-left: 6px solid #b22222
<div style="grid-row:span 2;">{{{image|}}}</div>
  | orange  = border-left: 4px solid #f28500
<div>'''{{{header|header}}}'''</div>
  | yellow  = border-left: 4px solid #f4c430
<div style="font-size:90%;">{{{body|body}}}</div>
  | gold    = border-left: 4px solid gold
</div></div><noinclude>
  | purple  = border-left: 4px solid #9932cc
;Description
  | navy    = border-left: 4px solid navy
:This template is the basis for [[:Category:Notices|notice templates]]. It may be transcluded to produce new notices on-page. However, only staff are permitted to create new notice templates.
  | blue    = border-left: 4px solid #1e90ff
;Syntax
  | green    = border-left: 4px solid #228b22
  | gray    = border-left: 4px solid #bba
  | #default = border-left: 4px solid #228b22
}}"
|-
| style="width: 60px; padding: 2px 0px 2px 0.5em; text-align: center;" | {{{image|[[Image:Wiki.png|70px]]}}}
| style="padding: 0.25em 0.5em; color:#000;" |<span style="font: 100% 'Lucida Sans'; color:#707070;"> {{{type|Header text}}}</span>
<div class="font-size: 110%; margin-top:0.5em; margin-left:0.8em;" style="font-size:11px;">
<span style="font-size: 105%; color:#707070;">{{{info|Explanation}}}</span>
</div>
|}
<noinclude>
==Template Usage==
To use this template replace the CAPITALIZED words with your desired text or color.
<pre>
<pre>
{{Notice
{{Notice
|border = color (lowercase)
|image  =
|image = IMAGE (OPTIONAL)
|header = (required)
|type = HEADING
|body  = (required)
|info  = SUB TEXT
}}
}}
</pre>
</pre>
 
;Sample
For example, if this code was entered into the template...
 
<pre>
<pre>
{{Notice
{{Notice
|border= navy
|image  = <div class="suppress-rounding">[[File:RegularSpike01.png|35px|link=]][[File:RegularSpike01.png|35px|link=]][[File:RegularSpike01.png|35px|link=]]</div>
|image = [[File:Botrack1.png|75px]]
|header = Triple spikes.
|type = Work in Progress!
|body  = Ah spikes, here we go again.
|info = This article is currently under construction and its information may not be complete. You can edit it in order for it to achieve a higher standard.}}
}}
</pre>
</pre>
 
;Sample output
...it would create this:
 
{{Notice
{{Notice
|border= navy
|image  = <div class="suppress-rounding">[[File:RegularSpike01.png|35px|link=]][[File:RegularSpike01.png|35px|link=]][[File:RegularSpike01.png|35px|link=]]</div>
|image = [[File:Botrack1.png|75px]]
|header = Triple spikes.
|type = Work in Progress!
|body  = Ah spikes, here we go again.
|info = This article is currently under construction and its information may not be complete. You can edit it in order for it to achieve a higher standard.}}
}}
</noinclude>
[[Category:Notices| ]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 23:55, 13 October 2026

header
body
Description
This template is the basis for notice templates. It may be transcluded to produce new notices on-page. However, only staff are permitted to create new notice templates.
Syntax
{{Notice
 |image  =
 |header = (required)
 |body   = (required)
}}
Sample
{{Notice
 |image  = <div class="suppress-rounding">[[File:RegularSpike01.png|35px|link=]][[File:RegularSpike01.png|35px|link=]][[File:RegularSpike01.png|35px|link=]]</div>
 |header = Triple spikes.
 |body   = Ah spikes, here we go again.
}}
Sample output
Triple spikes.
Ah spikes, here we go again.