Misplaced Pages

Template:Single notice links: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 14:02, 25 November 2023 view sourceSuntooooth (talk | contribs)Extended confirmed users, IP block exemptions, Pending changes reviewers, Rollbackers9,663 edits Add longsd← Previous edit Revision as of 01:27, 16 January 2024 view source Northern Moonlight (talk | contribs)Extended confirmed users8,487 edits UnnecessaryNext edit →
Line 5: Line 5:
|selected = {{{1|}}} |selected = {{{1|}}}


|titlestyle = background:none; |titlestyle =
|liststyle = text-align:left; |liststyle = text-align:left;
|group1style = background:royalblue; color:white; |group1style = background:royalblue; color:white;

Revision as of 01:27, 16 January 2024

Single-issue user warning or notice templates
Notices
Warnings
Template documentation[view] [edit] [history] [purge]
This template should not be substituted.

Usage

This template is a navbox listing various single-issue notifications and warnings from the user warnings project. It can be used on documentation pages of templates that differ from the standard user warning format, which is documented by {{Single notice}}:

{{Single notice links}}


This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.

To change this template's initial visibility, the |state= parameter may be used:

  • {{Single notice links|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{Single notice links|state=expanded}} will show the template expanded, i.e. fully visible.


How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
    • notices
    • warnings
  • For example: {{Single notice links |warnings}}
Single-issue user warning or notice templates
Notices
Warnings

(Click to see example)

The above documentation is transcluded from Template:Single notice links/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Category: