Template:TLRPF/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(adjust how 2nd parameter is used and what happens if it is not there.)
Current revision (05:40, May 19, 2019) (edit) (undo)
m (update URL to troopleader.scouting.org)
 
Line 5: Line 5:
F = Feature<br />
F = Feature<br />
-
This template generates a link (URL) to a program feature on the Troop Leader Resources at troopleader.org.
+
This template generates a link (URL) to a program feature on the Troop Leader Resources at troopleader.scouting.org.
:<code><nowiki>{{TLRPF|Archery}}</nowiki></code>
:<code><nowiki>{{TLRPF|Archery}}</nowiki></code>
Line 22: Line 22:
<nowiki>{{</nowiki>TLRPF|''program feature name''|''directory suffix''}}
<nowiki>{{</nowiki>TLRPF|''program feature name''|''directory suffix''}}
* 1st parameter (unnamed) REQUIRED: The name of the program feature. Is used as the title for the link.
* 1st parameter (unnamed) REQUIRED: The name of the program feature. Is used as the title for the link.
-
* 2nd parameter (unnamed) OPTIONAL: this paramater is concatenated to the url for the link to troopleader.org ("<nowiki>https://troopleader.org/program-feature-</nowiki>") to construct the URL. If not present, then a lowercase version of the 1st parameter is used instead.
+
* 2nd parameter (unnamed) OPTIONAL: this paramater is concatenated to the url for the link to troopleader.scouting.org ("<nowiki>https://troopleader.scouting.org/program-feature-</nowiki>") to construct the URL. If not present, then a lowercase version of the 1st parameter is used instead.
==See also==
==See also==
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Current revision

T = Troop
L = Leader
R = Resources
P = Program
F = Feature

This template generates a link (URL) to a program feature on the Troop Leader Resources at troopleader.scouting.org.

{{TLRPF|Archery}}

generates

Archery

and

{{TLRPF|Climbing and Rappelling|climbing-rappelling}}

generates

Climbing and Rappelling

Should the link to the program features should change in the future, this template can be updated and have the change reflected throughout.

Parameters

{{TLRPF|program feature name|directory suffix}}
  • 1st parameter (unnamed) REQUIRED: The name of the program feature. Is used as the title for the link.
  • 2nd parameter (unnamed) OPTIONAL: this paramater is concatenated to the url for the link to troopleader.scouting.org ("https://troopleader.scouting.org/program-feature-") to construct the URL. If not present, then a lowercase version of the 1st parameter is used instead.

See also

Personal tools
language