Template:Belt loop

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(adding documentation)
Current revision (22:28, March 10, 2019) (edit) (undo)
(center text and image. image height x100px)
 
Line 1: Line 1:
-
<div style="{{{style|border-style: ridge; display: inline-block;}}}">'''[[{{{2}}}|{{{1}}}]]'''<br>[[Image:{{{image|{{{1}}}}}}.png|100px]]</div><noinclude>
+
<div style="{{{style|border-style: ridge; display: inline-block}}}" align="center">'''[[{{{2}}}|{{{1}}}]]'''<br>[[Image:{{{image|{{{1}}}}}}.png|x100px]]</div><noinclude>
{{{{FULLPAGENAME}}/doc}}
{{{{FULLPAGENAME}}/doc}}
<!-- Add Categories to the /doc subpage, not here! -->
<!-- Add Categories to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Current revision

[[{{{2}}}|{{{1}}}]]
[[Image:{{{1}}}.png|x100px]]

This is the documentation for the belt loop template.

Contents

Usage

Implicit parameters

The belt loop template has two implicit parameters.

  1. The name of the belt loop -- this is also used as the name of the image (in PNG format).
  2. A link to where the belt loop requirements are listed.

Explicit parameter

The belt loop template has one explicit parameter.

  • image -- When, for formatting reasons, the name of the image must be different from the displayed caption name, it can be explicitly included.

Example

{{belt loop|Backyard Jungle|Tiger#2015-2016 Requirements}} creates the following:

Backyard Jungle

{{belt loop|Call of the Wild|Wolf#2015-2016_Requirements}} creates the following:

Call of the Wild

{{belt loop|Tiger: Safe and Smart|Tiger#2015-2016 Requirements|image=Tiger- Safe and Smart}} is an example of using the explicit image parameter and creates the following:

Tiger: Safe and Smart

Notes

For future expansion, if the default of PNG is no longer desired, it can be explicitly changed to any other format, or: {{{image|{{{1}}}}}}.png could be changed to {{{fullimage|{{{image|{{{1}}}}}}.png}}} to add a second explicit "fullimage" parameter that would allow the full name of an image to be given (for instance: "image=Tiger- Safe and Smart.jpg"). This is not done at this time to give the server less text to parse and because it's not needed.

Personal tools
language