Difference between revisions of "Template:Note"
Jump to navigation
Jump to search
(Enable notes (as used in Project:PD_help).) |
m |
||
Line 1: | Line 1: | ||
− | {{#if: {{{1|}}}|<div class="block-note"><span class="block-contents"> | + | <includeonly>{{#if: {{{1|}}}|<div class="block-note"><span class="block-contents">}}[[Image:Bulbgraph.png|18px|Note|link=]] '''Note:''' {{#if: {{{1|}}}|{{{1}}}</span></div>}}</includeonly><noinclude> |
+ | 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|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 22:12, 12 March 2011
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 |