Template:Otheruses
From MeritBadgeDotOrg
(Difference between revisions)
(New page: {| style="zzwidth:7em; margin: 0 0 0 10%; border-collapse: collapse; background: #F5F5F5; border: 1px solid #aaa; border-left: 10px solid #1e90ff;" |- | style="width: 55px; padding: 2px 0...) |
(make variables into wikilinks) |
||
| Line 4: | Line 4: | ||
| style="padding: 0.25em 0.5em;" | | | style="padding: 0.25em 0.5em;" | | ||
''This article is about the [[Cub Scout Academics and Sports Program|Belt Loop and Pin]] for [[Cub Scout]]s''<br> | ''This article is about the [[Cub Scout Academics and Sports Program|Belt Loop and Pin]] for [[Cub Scout]]s''<br> | ||
| - | ''for the Webelos Activity Pin, see {{{1}}}''<br> | + | ''for the Webelos Activity Pin, see [[{{{1}}}]]''<br> |
| - | ''for the Merit Badge for Boy Scouts, see {{{2}}}'' | + | ''for the Merit Badge for Boy Scouts, see [[{{{2}}}]]'' |
|}<noinclude>{{{{FULLPAGENAME}}/doc}}[[Category:Article message box templates|{{PAGENAME}}]] | |}<noinclude>{{{{FULLPAGENAME}}/doc}}[[Category:Article message box templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 09:19, March 24, 2008
| |
This article is about the Belt Loop and Pin for Cub Scouts |
This template is a modified article message box.
Contents |
Variables
- There are three template variables available...
var1 = text var2 = width — This parameter is optional (Default = 80%) var3 = left-indent — This parameter is optional (Default = 10%)
Usage
Default (preferred method)
Leaving the "width" and "left-margin" variables out, like so:
{{Otheruses|sample text line 1<br>sample text line 2<br>sample text line 3 (if necessary)}}
...will yield:
| | text line 1 sample text line 2 sample text line 3 (if necessary) |
Other examples
Auto width
The width can be set to the minimum width needed by simply adding "auto" to the second variable, like so:
{{Otheruses|sample text line 1<br>sample text line 2<br>text line 3 (if necessary)|auto}}
...which yields:
| | text line 1 sample text line 2 sample text line 3 (if necessary) |
Another example of "auto" width:
{{Otheruses|sample text line 1, more text on line 1, even more text on line 1<br>sample text line 2<br>sample text line 3 (if necessary)|auto}}
...which yields:
| | sample text line 1, more text on line 1, even more text on line 1 sample text line 2 sample text line 3 (if necessary) |
Left-indent
- Note: Since the "left-indent" is the third variable, you must manually enter a variable for "width".
To change the left-indent (from the default 10%) to 5%; and then, add 5% to the width (80%) to make it look like auto, use:
{{Otheruses|sample text line 1<br>sample text line 2|85%|5%}}
which yields:
| | sample text line 1 sample text line 2 |
Auto width and left-indent
{{Otheruses|sample text line 1<br>sample text line 2|auto|auto}}
which yields:
| | sample text line 1 sample text line 2 |
