Jump to content

Template:Aside: Difference between revisions

From NixOS Wiki
Sdht0 (talk | contribs)
Add proper sections
DoggoBit (talk | contribs)
No edit summary
Line 1: Line 1:
<noinclude>
{{Notice
{{Template}}
  |color=var(--color-base)
 
  |background=var(--background-color-neutral-subtle)
== About ==
  |borderColor=var(--border-color-base)
An 'Aside' box, for a comment that is not really notable.
  |small=yes
 
  |'''{{{leading|{{{title|{{{heading|Sidenote}}}}}}}}}:''' {{{text|{{{1|}}}}}}
== Usage ==
}}<noinclude>{{Documentation}}</noinclude>
 
{{ic|<nowiki>{{Aside|This text should be heeded.}}</nowiki>}}
 
{{ic|<nowiki>{{Aside|text=This text should be heeded.}}</nowiki>}}
 
{{ic|<nowiki>{{Aside|title=To be noted|text=This text should be heeded.}}</nowiki>}}
 
== Example ==
 
{{Aside|This text should be heeded.}}
{{Aside|text=This text should be heeded.}}
{{Aside|title=To be noted:|text=This text should be heeded.}}
 
</noinclude><includeonly>{{META Box|{{{title|Aside:}}}|{{{text|{{{1|{{META Error}}}}}}}}}}</includeonly>

Revision as of 19:13, 5 June 2025

Sidenote:

Template Documentation [edit source| uses| help]

This is a template for displaying related information, that is not essential to the main body of the article.

Sidenote: Templates are generally useful for reusing bits of code across different pages, as well as standardising formatting across the wiki.

Usage

You can simply include this template alongside a message to display. The notice above can be replicated as such:

{{aside|Templates are generally useful for reusing bits of code across different pages, as well as standardising formatting across the wiki.}}

You can also customise the "Sidenote" text:

{{aside|leading=For your information:|You can change the leading text}}
For your information:: You can change the leading text