Difference between revisions of "Template:BadgeHunter Badge"
m |
m (using {{Documentation}}) |
||
Line 1: | Line 1: | ||
− | * [http://www.badge-hunter.com/view_badges.php?{{#if: {{{ID|}}} |id={{{ID}}}|{{#if: {{{name|}}} |name={{{name}}}|name={{PAGENAMEE}}}}}} {{PAGENAME}}] at [http://www.Badge-Hunter.com/ Badge-Hunter.com] | + | <includeonly>* [http://www.badge-hunter.com/view_badges.php?{{#if: {{{ID|}}} |id={{{ID}}}|{{#if: {{{name|}}} |name={{{name}}}|name={{PAGENAMEE}}}}}} {{PAGENAME}}] at [http://www.Badge-Hunter.com/ Badge-Hunter.com]</includeonly> |
− | <noinclude> | + | <noinclude>{{Documentation}}</noinclude> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </noinclude> | + |
Revision as of 09:17, 20 February 2008
A template that can be used to link to badge listings at Badge-Hunter.com.
This template should ideally be provided with two parameters:
- ID=, the internal ID used by Badge Hunter
- type=, the internal category type ID used by Badge Hunter
The template optionally accepts an additional parameter:
- name=, the badge's name; this defaults to the current page's name
If all of the parameters are correct, the link will lead to the badge listing page of the appropriate type and will anchor them to the point in the page where the badge is located. If the parameters aren't correct, the link will at least lead to the badge listings.
In order to determine the proper type= value, select the appropriate category at http://www.badge-hunter.com/index.php?/page/view_badge_bytype.php and see what type= value ends up in the URL.
In order to determine the proper ID= value, you'll have to view the page source. Each badge is in a table, and each of those tables is stored in a list item (<li>). The list items will have an "id" attribute that is formatted as "s3_123" where "123" is the ID you'll need to use.
- {{BadgeHunter Badge}}
- {{BadgeHunter Badge|ID=117|type=11|name=Man / Woman in Black}}
Please see Template talk:BadgeHunter Badge for troubleshooting info.