Difference between revisions of "Template talk:Dev/null"
Jump to navigation
Jump to search
Fred Gandt (talk | contribs) m (→Dev?) |
m |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
= Dev? = | = Dev? = | ||
What does this do? <nowiki><!-- blah --></nowiki> denotes a HTML comment. I'm confused. -- '''[[User:Fred_Gandt|Fred Gandt]]''' <sup><small>([[User talk:Fred_Gandt|talk]]|[[Special:Contributions/Fred_Gandt|contribs]])</small></sup> 19:08, 29 April 2010 (UTC) | What does this do? <nowiki><!-- blah --></nowiki> denotes a HTML comment. I'm confused. -- '''[[User:Fred_Gandt|Fred Gandt]]''' <sup><small>([[User talk:Fred_Gandt|talk]]|[[Special:Contributions/Fred_Gandt|contribs]])</small></sup> 19:08, 29 April 2010 (UTC) | ||
:Nothing? It's only a html comment. Btw: http://en.wikipedia.org/wiki//dev/null | |||
:I think it was a test for slashes in page/template names. Strife's comment in the history: ''(the slash in /dev/null causes problems at times ~_~)'' | |||
:--[[User:Kuraiko Yoshikawa|Kuraiko Yoshikawa]] 19:53, 29 April 2010 (UTC) | |||
::Thanks Kuraiko. I saw Strifes comment but couldn't figure what it was about (not so good with RL programing yet (some might say I'm not so good with LSL either, I dunno)). I Googled and searched [http://www.w3schools.com w3] but turned up nothing helpful. *wonders why Google didn't give me the Wikipedia link* So I wonder...If it does nothing...How and why did it force it's way into my user page? Never mind about answering that. It probably doesn't matter. Thanks again. :-) -- '''[[User:Fred_Gandt|Fred Gandt]]''' <sup><small>([[User talk:Fred_Gandt|talk]]|[[Special:Contributions/Fred_Gandt|contribs]])</small></sup> 20:06, 29 April 2010 (UTC) | |||
::: Template:KeyCombo use it (dunno why...) and is used in yours userpage ^^ --[[User:Kuraiko Yoshikawa|Kuraiko Yoshikawa]] 20:26, 29 April 2010 (UTC) | |||
::::Ahhh. TYTY. I was just trying to figure out why I had a black hole on my page (thanks for the wikipedia link again) but, had to walk the dog. I guess the KeyCombo makes a load of bits that need to be flushed *shrugs*. Anyway thanx to you I am less confused and more enlightened. very kind of you to respond. See you about! -- '''[[User:Fred_Gandt|Fred Gandt]]''' <sup><small>([[User talk:Fred_Gandt|talk]]|[[Special:Contributions/Fred_Gandt|contribs]])</small></sup> 21:10, 29 April 2010 (UTC) | |||
:In the previous version of the wiki parsing engine it would execute all parameters of a template or a parser function when they were encountered. That means that if you had an #if expression it would execute both the truth and false results, but it would only return the result for the correct branch. This was problematic for templates that used the #var extension because while you would get the correct result from #if, you would get the #vars from both branches. The solution was to make the parameter name conditional, so you would do something like <nowiki>{{#if:{{{blah|}}}|{{{{#if:{{{blah|}}}|good|bad}}|}}}}</nowiki>. In this example the result of calling the template is only returned if blah is true but if blah is false, bad is called but the text not returned. Now to remove one of the conditionals I created a template that did absolutely nothing. So now I could do: <nowiki>{{{{#if:{{{blah|}}}|good|dev/null}}|}}</nowiki>. Template:! was used for this purpose previously. Of course with the new wiki parsing engine, this sort of thing is no longer needed but old templates take time to be rewritten. | |||
:P.S. The black hole aspect of this template was that it would eat parameters. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 04:10, 30 April 2010 (UTC) | |||
Okies. TY *sheepishly withdraws* Those templates still look like gobbledygook to me. -- '''[[User:Fred_Gandt|Fred Gandt]]''' <sup><small>([[User talk:Fred_Gandt|talk]]|[[Special:Contributions/Fred_Gandt|contribs]])</small></sup> 12:13, 30 April 2010 (UTC) | |||
Good news! This template is no longer used anywhere! I have rewritten each call site not to use it. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 14:02, 1 June 2012 (PDT) |
Latest revision as of 13:02, 1 June 2012
Dev?
What does this do? <!-- blah --> denotes a HTML comment. I'm confused. -- Fred Gandt (talk|contribs) 19:08, 29 April 2010 (UTC)
- Nothing? It's only a html comment. Btw: http://en.wikipedia.org/wiki//dev/null
- I think it was a test for slashes in page/template names. Strife's comment in the history: (the slash in /dev/null causes problems at times ~_~)
- --Kuraiko Yoshikawa 19:53, 29 April 2010 (UTC)
- Thanks Kuraiko. I saw Strifes comment but couldn't figure what it was about (not so good with RL programing yet (some might say I'm not so good with LSL either, I dunno)). I Googled and searched w3 but turned up nothing helpful. *wonders why Google didn't give me the Wikipedia link* So I wonder...If it does nothing...How and why did it force it's way into my user page? Never mind about answering that. It probably doesn't matter. Thanks again. :-) -- Fred Gandt (talk|contribs) 20:06, 29 April 2010 (UTC)
- Template:KeyCombo use it (dunno why...) and is used in yours userpage ^^ --Kuraiko Yoshikawa 20:26, 29 April 2010 (UTC)
- Ahhh. TYTY. I was just trying to figure out why I had a black hole on my page (thanks for the wikipedia link again) but, had to walk the dog. I guess the KeyCombo makes a load of bits that need to be flushed *shrugs*. Anyway thanx to you I am less confused and more enlightened. very kind of you to respond. See you about! -- Fred Gandt (talk|contribs) 21:10, 29 April 2010 (UTC)
- Template:KeyCombo use it (dunno why...) and is used in yours userpage ^^ --Kuraiko Yoshikawa 20:26, 29 April 2010 (UTC)
- Thanks Kuraiko. I saw Strifes comment but couldn't figure what it was about (not so good with RL programing yet (some might say I'm not so good with LSL either, I dunno)). I Googled and searched w3 but turned up nothing helpful. *wonders why Google didn't give me the Wikipedia link* So I wonder...If it does nothing...How and why did it force it's way into my user page? Never mind about answering that. It probably doesn't matter. Thanks again. :-) -- Fred Gandt (talk|contribs) 20:06, 29 April 2010 (UTC)
- In the previous version of the wiki parsing engine it would execute all parameters of a template or a parser function when they were encountered. That means that if you had an #if expression it would execute both the truth and false results, but it would only return the result for the correct branch. This was problematic for templates that used the #var extension because while you would get the correct result from #if, you would get the #vars from both branches. The solution was to make the parameter name conditional, so you would do something like {{#if:{{{blah|}}}|{{{{#if:{{{blah|}}}|good|bad}}|}}}}. In this example the result of calling the template is only returned if blah is true but if blah is false, bad is called but the text not returned. Now to remove one of the conditionals I created a template that did absolutely nothing. So now I could do: {{{{#if:{{{blah|}}}|good|dev/null}}|}}. Template:! was used for this purpose previously. Of course with the new wiki parsing engine, this sort of thing is no longer needed but old templates take time to be rewritten.
- P.S. The black hole aspect of this template was that it would eat parameters. -- Strife (talk|contribs) 04:10, 30 April 2010 (UTC)
Okies. TY *sheepishly withdraws* Those templates still look like gobbledygook to me. -- Fred Gandt (talk|contribs) 12:13, 30 April 2010 (UTC)
Good news! This template is no longer used anywhere! I have rewritten each call site not to use it. -- Strife (talk|contribs) 14:02, 1 June 2012 (PDT)