Difference between revisions of "Template:Bu/doc"
From MidrangeWiki
MrDolomite (talk | contribs) m (creating sub-page for documentation) |
MrDolomite (talk | contribs) m (→Examples: add a blank column for readability) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> |
− | ---- | + | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> |
− | + | =Documentation= | |
+ | <big>{{tl|bu}}</big> is a shorthand notation to make the required first parameter text emphasized with both <big>big</big> and <u>underlined</u>. It is most useful when defining an acronym. | ||
+ | |||
+ | An optional second parameter text can be included for non-emphasized text, which can make text entry simpler. | ||
+ | :'''{{PAGENAME}}''' stands for {{bu|B}}ig {{bu|U}}nderlined. | ||
+ | |||
+ | == Usage == | ||
+ | <pre> | ||
+ | {{ bu | letter(s) to emphasize }} optional letter(s) to not emphasize | ||
+ | </pre> | ||
+ | <pre> | ||
+ | {{ bu | letter(s) to emphasize | optional letter(s) to not emphasize }} | ||
+ | </pre> | ||
+ | :''Note that case is preserved and not automatically converted to uppercase.'' | ||
+ | |||
+ | == Examples == | ||
+ | {| | ||
+ | ! Code | ||
+ | ! | ||
+ | ! Result | ||
+ | |- | ||
+ | | Single parameter, single letter | ||
+ | |- | ||
+ | | <pre>{{bu|D}}edicated {{bu|S}}ervice {{bu|T}}ools</pre> | ||
+ | | | ||
+ | | {{bu|D}}edicated {{bu|S}}ervice {{bu|T}}ools | ||
+ | |- | ||
+ | | Single parameter, multiple letters | ||
+ | |- | ||
+ | | <pre>{{bu|QuI}}ck {{bu|BrO}}wn {{bu|F}}ox.</pre> | ||
+ | | | ||
+ | | {{bu|QuI}}ck {{bu|BrO}}wn {{bu|F}}ox. | ||
+ | |- | ||
+ | | Optional second parameter, multiple letters | ||
+ | |- | ||
+ | | <pre>{{bu|QuI|ck}} {{bu|BrO|wn}} {{bu|F|ox}}.</pre> | ||
+ | | | ||
+ | | {{bu|QuI|ck}} {{bu|BrO|wn}} {{bu|F|ox}}. | ||
+ | |} | ||
---- | ---- | ||
*This [[Wikipedia:Template|template]] is a [[Wikipedia:Avoid self-references|self-reference]] and so is part of the {{SITENAME}} project rather than the content itself. | *This [[Wikipedia:Template|template]] is a [[Wikipedia:Avoid self-references|self-reference]] and so is part of the {{SITENAME}} project rather than the content itself. | ||
− | + | <!-- END OF TEMPLATE DOCUMENTATION --> | |
− | ---- | + | <includeonly> |
− | [[Category:Internal | + | <!-- ADD CATEGORIES BELOW THIS LINE --> |
+ | [[Category:Internal formatting templates|{{PAGENAME}}]] | ||
+ | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
+ | </includeonly> |
Latest revision as of 15:48, 30 January 2009
Documentation
{{bu}} is a shorthand notation to make the required first parameter text emphasized with both big and underlined. It is most useful when defining an acronym.
An optional second parameter text can be included for non-emphasized text, which can make text entry simpler.
- Bu/doc stands for Big Underlined.
Usage
{{ bu | letter(s) to emphasize }} optional letter(s) to not emphasize
{{ bu | letter(s) to emphasize | optional letter(s) to not emphasize }}
- Note that case is preserved and not automatically converted to uppercase.
Examples
Code | Result | |
---|---|---|
Single parameter, single letter | ||
{{bu|D}}edicated {{bu|S}}ervice {{bu|T}}ools |
Dedicated Service Tools | |
Single parameter, multiple letters | ||
{{bu|QuI}}ck {{bu|BrO}}wn {{bu|F}}ox. |
QuIck BrOwn Fox. | |
Optional second parameter, multiple letters | ||
{{bu|QuI|ck}} {{bu|BrO|wn}} {{bu|F|ox}}. |
QuIck BrOwn Fox. |
- This template is a self-reference and so is part of the MidrangeWiki project rather than the content itself.