Difference between revisions of "Template:Note"
Jump to navigation
Jump to search
(Enable notes (as used in Project:PD_help).) |
(Add example for important attribute) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#if: {{{1|}}}|<div class="block-note"><span class="block-contents"> | + | {{#if: {{{1|}}}|<div class="block-note"><span class="block-contents">}}[[Image:Bulbgraph.png|18px|Note|link=]] {{#ifeq:{{{important}}}|yes|'''Important note:'''|'''Note:'''}} {{#if: {{{1|}}}|{{{1}}}</span></div>}}<includeonly></includeonly><noinclude> |
+ | ==Documentation== | ||
+ | This template inserts a note with a decorative icon into a wiki page. | ||
− | == Usage == | + | === Usage === |
− | <nowiki>{{note|This is a note | + | {| class="wikitable" |
+ | ! Description | ||
+ | ! width=40% | You type | ||
+ | ! width=40% | You get | ||
+ | |- | ||
+ | | A block-level note | ||
+ | | | ||
+ | <pre> | ||
+ | Text before | ||
+ | <nowiki>{{note|This is a block note.}}</nowiki> | ||
+ | Text after | ||
+ | </pre> | ||
+ | | | ||
+ | Text before | ||
+ | {{note|This is a block note.}} | ||
+ | Text after | ||
+ | |- | ||
+ | | An inline note | ||
+ | | | ||
+ | <pre> | ||
+ | Text before | ||
+ | <nowiki>{{note}} This is an inline note.</nowiki> | ||
+ | Text after | ||
+ | </pre> | ||
+ | | | ||
+ | Text before | ||
+ | {{note}} This is an inline note. | ||
+ | Text after | ||
− | [[Category:Templates | + | |- |
+ | | An important note | ||
+ | | | ||
+ | <pre> | ||
+ | Text before | ||
+ | <nowiki>{{note|important=yes}} This is an important note.</nowiki> | ||
+ | Text after | ||
+ | </pre> | ||
+ | | | ||
+ | Text before | ||
+ | {{note|important=yes}} This is an important note. | ||
+ | Text after | ||
+ | |} | ||
+ | |||
+ | ==Parameters== | ||
+ | ;important | ||
+ | If equals 'yes' adds '''Important''' to text. | ||
+ | |||
+ | |||
+ | [[Category:Templates highlighting]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:02, 21 April 2024
Note:
Documentation
This template inserts a note with a decorative icon into a wiki page.
Usage
Description | You type | You get |
---|---|---|
A block-level note |
Text before {{note|This is a block note.}} Text after |
Text before Note: This is a block note.
Text after |
An inline note |
Text before {{note}} This is an inline note. Text after |
Text before Note: This is an inline note. Text after |
An important note |
Text before {{note|important=yes}} This is an important note. Text after |
Text before Important note: This is an important note. Text after |
Parameters
- important
If equals 'yes' adds Important to text.