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 "User talk:Zombie Man"

From Paragon Wiki Archive
Jump to: navigation, search
m
m (Template:Bug)
 
(46 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Welcome! ==
+
{{TOCright}}
  
Hello, {{PAGENAME}}, and welcome to the Paragon Wiki!  Thank you for your contributions. I hope you like the place and decide to stay.  Feel free to fill out your personal user page so we can get to know you. There is a collection of [[:Category:Userbox_Templates|Userboxes]] you can easily add there. Please sign your name on talk pages using four tildes (~~~~); this will automatically produce your name and the date.
+
== Templates and the noinclude tag ==
  
If you need help, ask me on my talk page or place <code>{&#123;helpme}}</code> on your talk page and someone will show up shortly to answer your questions.  
+
I noticed you went through and fixed the categorization of the templates -- awesome job! It's been long overdue for getting done. However, there's a subtle mistake you introduced on a lot of pages that I wanted to make you aware of for future reference. When adding a noinclude section to the end of a page, you have to make sure you don't add any whitespace before the opening tag. For example, if a template consists of this:
  
Don't forget to drop by and introduce yourself in the [http://paragonforums.com/forums/ Forum], which will use the same name/password that you used when you signed up with the wiki.  If you ever feel the need to change your password, you will need to do so there instead of here in the wiki.  And there's even a [http://paragonwiki.com/forums/rss.php RSS Feed], if you're into that.
+
<blockquote><pre><nowiki>|}</nowiki></pre></blockquote>
  
Also, make sure you take a look at the [[Help:Contents|Help page]].  There is a lot of preloaded images, missions, and contact info, and what you want to add might already be there.
+
And you change it to this:
  
Again, welcome! {{User:Snorii/sig}} 15:55, 8 December 2007 (UTC)
+
<blockquote><pre><nowiki>|}
 +
<noinclude>[[Category:Example]]</noinclude></nowiki></pre></blockquote>
  
== IOs redirect ==
+
You've just added whitespace to the template. On some templates, this can seriously break the functionality -- for example, if the template is meant to be used in-line, having linebreaks can really throw things off and break formatting in unexpected ways. The correct way to do it is this:
  
Are you dead-set on IOs no longer being a redirect to [[Common Invention Enhancements]]? It was darn convenient to just have to type in "IOs" to access that particular page. - [[User:Baalus Seth|Baalus Seth]] 04:57, 7 February 2009 (UTC)
+
<blockquote><pre><nowiki>|}<noinclude>
 +
[[Category:Example]]</noinclude></nowiki></pre></blockquote>
 +
 
 +
The important thing is that the opening <nowiki><noinclude></nowiki> gets glued right up against the last character that is going to get transcluded into the article.
 +
 
 +
It's a very common and subtle error, just wanted to make you aware of it in case you have any further categorizing to do. -- [[User:Sekoia|Sekoia]] 01:29, 22 February 2010 (UTC)
 +
 
 +
 
 +
:Sorry about that. I started to realize that near the end of the categorization process while working on the Template Help file (which makes that specific point twice over so that other newbs don't make the same mistake.
 +
 
 +
== Template:Bug ==
 +
 
 +
Your edit comment was "Changed coding to remove deprecated 'messagebox' but mostly to create a template that allows a hyperlink as an argument.". I'm not entirely clear what you were working towards, but I'm wondering if you were running into problems with a hyperlink that contains an equal sign? If so, then the solution is to call the template like this: <nowiki>{{bug|1=Here is my link: http://example.com?foo=bar}}</nowiki> In other words, you have to explicitly use the option name (which is "1" for this template) rather than using positional arguments. Otherwise, it uses everything before the equal sign in the link as a parameter name, and since there is no parameter named "<nowiki>Here is my link: http://example.com?foo</nowiki>" the net effect is that it all just gets ignored.
 +
 
 +
If that ''wasn't'' the problem you were bumping into, then just ignore me. :) -- [[User:Sekoia|Sekoia]] 01:35, 18 April 2010 (UTC)
 +
 
 +
:Thank-you! I thought I was going crazy. Since the Bug Template wasn't accepting the link, I thought it was a problem with Tables (that used a deprecated Messagebox style according to Big Wiki) in the Template, so I re-wrote it as a div box; and it still didn't work. The equal signs was the problem and your work-around worked. Thanks! [[User:Zombie Man|Zombie Man]] 14:30, 18 April 2010 (UTC)

Latest revision as of 14:30, 18 April 2010

Templates and the noinclude tag

I noticed you went through and fixed the categorization of the templates -- awesome job! It's been long overdue for getting done. However, there's a subtle mistake you introduced on a lot of pages that I wanted to make you aware of for future reference. When adding a noinclude section to the end of a page, you have to make sure you don't add any whitespace before the opening tag. For example, if a template consists of this:

|}

And you change it to this:

|}
<noinclude>[[Category:Example]]</noinclude>

You've just added whitespace to the template. On some templates, this can seriously break the functionality -- for example, if the template is meant to be used in-line, having linebreaks can really throw things off and break formatting in unexpected ways. The correct way to do it is this:

|}<noinclude>
[[Category:Example]]</noinclude>

The important thing is that the opening <noinclude> gets glued right up against the last character that is going to get transcluded into the article.

It's a very common and subtle error, just wanted to make you aware of it in case you have any further categorizing to do. -- Sekoia 01:29, 22 February 2010 (UTC)


Sorry about that. I started to realize that near the end of the categorization process while working on the Template Help file (which makes that specific point twice over so that other newbs don't make the same mistake.

Template:Bug

Your edit comment was "Changed coding to remove deprecated 'messagebox' but mostly to create a template that allows a hyperlink as an argument.". I'm not entirely clear what you were working towards, but I'm wondering if you were running into problems with a hyperlink that contains an equal sign? If so, then the solution is to call the template like this: {{bug|1=Here is my link: http://example.com?foo=bar}} In other words, you have to explicitly use the option name (which is "1" for this template) rather than using positional arguments. Otherwise, it uses everything before the equal sign in the link as a parameter name, and since there is no parameter named "Here is my link: http://example.com?foo" the net effect is that it all just gets ignored.

If that wasn't the problem you were bumping into, then just ignore me. :) -- Sekoia 01:35, 18 April 2010 (UTC)

Thank-you! I thought I was going crazy. Since the Bug Template wasn't accepting the link, I thought it was a problem with Tables (that used a deprecated Messagebox style according to Big Wiki) in the Template, so I re-wrote it as a div box; and it still didn't work. The equal signs was the problem and your work-around worked. Thanks! Zombie Man 14:30, 18 April 2010 (UTC)