Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template talk:BadgeHunter Badge"

From Paragon Wiki Archive
Jump to: navigation, search
(Request for assistance on template adjustment)
Line 19: Line 19:
  
 
[[User:Sapph|Sapph]] 08:08, 8 June 2007 (EDT)
 
[[User:Sapph|Sapph]] 08:08, 8 June 2007 (EDT)
 +
: I thought there was a 'system' variable, similar to <nowiki>{{PAGENAME}} and {{TOC}}</nowiki> that was effectively PAGENAME formatted for URLs. Searching Media Wiki now. --[[User:Konoko|Konoko]] 10:51, 8 June 2007 (EDT)

Revision as of 14:51, 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)

I thought there was a 'system' variable, similar to {{PAGENAME}} and {{TOC}} that was effectively PAGENAME formatted for URLs. Searching Media Wiki now. --Konoko 10:51, 8 June 2007 (EDT)