Template talk:BadgeHunter Badge: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>StarGeek (historical)
mNo edit summary
 
imported>Warriorpoet (historical)
(Request for assistance on template adjustment)
Line 2: Line 2:


{{BadgeHunter Badge|ID=600}}
{{BadgeHunter Badge|ID=600}}
==Easy Template==
Right now the template requires the use of the Badge-Hunter ID associated with a given badge.  This puts a higher burden of work on anyone attempting to add new badges or standards existing articles.
For some time, the view_badges.php page at badge-hunter.com has had the ability to display badges based on id OR badge name.  For wiki, I added code to handle the " Badge" that would be appended to any search based on article name.  However, when I tried to edit the template to utilize this feature, I ran up against a wall - the spaces in the article name broke what I was trying to do.
Here is what I tried:
* [http://www.badge-hunter.com/view_badges.php?name={{PAGENAME}} {{PAGENAME}}] at [http://www.Badge-Hunter.com/ Badge-Hunter.com]
What it should look like is:
* [http://www.badge-hunter.com/view_badges.php?name=BadgeHunter%20Badge {{PAGENAME}}] at [http://www.Badge-Hunter.com/ Badge-Hunter.com]
Is there a way to adjust the template so that the spaces are properly included/encoded?
[[User:Sapph|Sapph]] 08:08, 8 June 2007 (EDT)

Revision as of 12:08, 8 June 2007

TEst


Easy Template

Right now the template requires the use of the Badge-Hunter ID associated with a given badge. This puts a higher burden of work on anyone attempting to add new badges or standards existing articles.

For some time, the view_badges.php page at badge-hunter.com has had the ability to display badges based on id OR badge name. For wiki, I added code to handle the " Badge" that would be appended to any search based on article name. However, when I tried to edit the template to utilize this feature, I ran up against a wall - the spaces in the article name broke what I was trying to do.

Here is what I tried:

What it should look like is:

Is there a way to adjust the template so that the spaces are properly included/encoded?

Sapph 08:08, 8 June 2007 (EDT)