Template:Note/doc: Difference between revisions
Jump to navigation
Jump to search
(Removed blank line in the beginning of the page and added "otherparams", "otherexamples" and "othersections" parameters) |
Thunder4ik (talk | contribs) m (→Examples: clean up) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{doc/subpage}} | ||
{{Inline note templates}} | {{Inline note templates}} | ||
<!-- Please place categories where indicated at the bottom of this page --> | <!-- Please place categories where indicated at the bottom of this page --> | ||
== Usage == | == Usage == | ||
=== Parameters === | === Parameters === | ||
* {{ | * {{Param}} – The text to show on the right. The characters <code>=</code> and <code>|</code> can break this template because they are special characters in template calls. Use <code>[[Template:=|<nowiki>{{</nowiki>=}}]]</code> and <code>[[Template:!|<nowiki>{{</nowiki>!}}]]</code> instead; See [[:Category:Templates for within templates]]. | ||
{{{otherparams|}}} | {{{otherparams|}}} | ||
=== Examples === | === Examples === | ||
{| border=1 style="border-collapse:collapse; background:none" cellpadding=8 | {| border=1 style="border-collapse:collapse; background:none" cellpadding=8 | ||
!colspan=2| Wikitext !! Result | !colspan=2| Wikitext !! Result | ||
|- | |- | ||
| < | | <tt><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki></tt> | ||
| | | → | ||
| {{ {{ROOTPAGENAME}} }} | | {{ {{ROOTPAGENAME}} | nocat=1}} | ||
|- | |- | ||
|style=white-space:nowrap| < | |style=white-space:nowrap| <tt><nowiki>{{</nowiki>{{ROOTPAGENAME}}|This is an example text.}}</tt> | ||
| | | → | ||
| {{ {{ROOTPAGENAME}} |This is an example text.}} | | {{ {{ROOTPAGENAME}} |This is an example text.| nocat=1 }} | ||
|- | |- | ||
|style=white-space:nowrap| < | |style=white-space:nowrap| <tt><nowiki>{{</nowiki>{{ROOTPAGENAME}}|<br># Enum<br># Eration<br>}}</tt> | ||
| | | → | ||
| {{ {{ROOTPAGENAME}} | | | {{ {{ROOTPAGENAME}} | | ||
# Enum | # Enum | ||
# Eration | # Eration | ||
|nocat=1 | |||
}} | }} | ||
|- | |- | ||
| < | | <tt>text<br><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|text}}</nowiki><br>text</tt> | ||
| | | → | ||
| {{ | | {{Lorem ipsum}} | ||
{{ {{ROOTPAGENAME}} | {{ | {{ {{ROOTPAGENAME}} | nocat=1 | {{Lorem ipsum}} }} | ||
{{ | {{Lorem ipsum}} | ||
{{{otherexamples|}}} | {{{otherexamples|}}} | ||
|} | |} | ||
{{Clr}} | |||
{{{othersections|}}} <!-- such as Tracking category --> | {{{othersections|}}} <!-- such as Tracking category --> | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| |
Latest revision as of 02:26, 12 January 2024

This is a documentation subpage for Template:Note.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Template | Pages using it |
---|---|
28 August 2024 | |
{{note}} | 6,436 |
{{warning}} | 1,253 |
{{bug}} | 1,192 |
{{tip}} | 1,516 |
{{todo}} | 1,628 |
{{inline note}} | 2,188 |
{{confirm}} | 672 |
{{question}} | 11 |
{{fix}} | 170 |
{{important}} | 459 |
{{clarify}} | 169 |
{{elaborate}} | 18 |
{{main}} | 143 |
{{distinguish}} | 85 |
{{workaround}} | 122 |
{{seealso}} | 145 |
{{when}} | 1 |
{{where}} | 0 |
{{which}} | 2 |
{{why}} | 38 |
{{idea}} | 21 |
{{placementTip}} | 13 |
{{codenote}} | 21 |
{{altnames}} | 35 |
{{deprecated}} | 109 |
{{how}} | 23 |
{{example}} | 16 |
{{confusion}} | 53 |
{{thanks}} | 7 |
{{code Fix}} | 9 + 7 (16) |
{{vote}} | 4 |
Usage
Parameters
- {{{1}}} – The text to show on the right. The characters
=
and|
can break this template because they are special characters in template calls. Use{{=}}
and{{!}}
instead; See Category:Templates for within templates.
Examples
Wikitext | Result | |
---|---|---|
{{Note}} | → | ![]() |
{{Note|This is an example text.}} | → | ![]() |
{{Note| # Enum # Eration }} |
→ | ![]()
|
text {{Note|text}} text |
→ | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
![]() Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |