The official discord link if you wish to join the discord: https://discord.gg/j5RKwCvAFu

Support the wiki on our official Ko-Fi page or Patreon page!

Template:Notice

From The Codex
Revision as of 19:47, 16 June 2023 by GiverOfThePeace (talk | contribs) (Protected "Template:Notice" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Purpose

This template creates a standard notice box, which can be used as totally custom notices or to simplify other notice boxes. By default, this template creates a stand-alone message.

Usage

To use this template, type: {{#vardefine:parameters|{{#vardefine:count16|0}}{{#vardefine:count15|0}}{{#vardefine:count14|0}}{{#vardefine:count13|0}}{{#vardefine:count12|0}}{{#vardefine:count11|0}}{{#vardefine:count10|0}}{{#vardefine:count9|0}}{{#vardefine:count8|0}}{{#vardefine:count7|0}}{{#vardefine:count6|0}}{{#vardefine:count5|0}}{{#vardefine:count4|0}}{{#vardefine:count3|0}}{{#vardefine:count2|1}}{{#vardefine:count1|1}}{{#vardefine:count|Expression error: Unrecognized punctuation character "{".}}{{#var:count}}}}{{#vardefine:content| }}    {{Notice{{#var:content}}}}

  • Text — This is the main, one or two word, message for the notice.
  • Subtext — This is a short text summary of the message. Appears when hovering over the main text.

Use Template:Notice/Start and Template:Notice/End to wrap some content. The notice will have a "hide/show" button to toggle visibility of this content. Template:Notice/Start accepts the parameters as Template:Notice.

Example 1

Code:

{{Notice
|text= Adult Warning!
|subtext= May contain content that is inappropriate for children.
}}

Result:

Adult Warning!

Example 2

Code:

{{Notice/Start
|text= Theory Warning
|subtext= Be advised that the following article or section contains unconfirmed, fan-made theories or speculation.
}}
A theory!
{{Notice/End}}

Result: Template:Notice/Start A theory! Template:Notice/End

The above documentation is transcluded from Template:Notice/Documentation. (edit | history)