Template:VanguardFundURL
This template creates a raw URL (without the brackets) to a specific fund information page on Vanguard's web site.
Usage
This template uses Lua: |
Invoke with:
{{vf|fund}}
The template takes a single positional argument. The value of fund may be a Vanguard fund number, an ETF ticker, or a mutual fund symbol. If a fund number, it must contain four digits, for example 0970
rather than 970
. (Note: some Vanguard fund "numbers" are not fully numeric; for example V001
.)
The template validates and converts values of fund using data from Module:Vanguard funds/data. If the given fund does not appear in the lookup table, the template creates a link to a Vanguard search web page, and places the transcluding page in a subcategory of Category:Vanguard URL errors.
Examples
Markup | Renders as |
---|---|
{{vf|vti}} |
|
{{vf|VTI}} |
|
{{vf|0970}} |
|
{{vf|vtsax}} |
|
{{vf|VTSAX}} |
|
{{vf|0585}} |
|
{{vf|XXXXX}} |
|
Notes
This template may also be invoked by its full name, although this is both less readable and requires more typing:
{{VanguardFundURL|fund}}
TemplateData
TemplateData for VanguardFundURL
Creates a raw URL (without the brackets) to a specific fund information page on Vanguard's web site.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Fund | 1 | Vanguard fund number, ETF ticker, or mutual fund symbol | String | required |