Site Notice |
---|
|
Difference between revisions of "Template talk:Clear"
Jump to navigation
Jump to search
Greenpickle (talk | contribs) |
|||
Line 1: | Line 1: | ||
Missing closing tag. Oh, and why the ''<nowiki>{{void}}</nowiki>''? (And why its use everywhere else? It seems pretty pointless to me.) - [[User:Greenpickle|GP]] <sub>[[User talk:Greenpickle|talk]]</sub> 15:50, 5 March 2011 (UTC) | Missing closing tag. Oh, and why the ''<nowiki>{{void}}</nowiki>''? (And why its use everywhere else? It seems pretty pointless to me.) - [[User:Greenpickle|GP]] <sub>[[User talk:Greenpickle|talk]]</sub> 15:50, 5 March 2011 (UTC) | ||
:the ifeq condition is broken up like this: | :the ifeq condition is broken up like this: | ||
− | :# if {{{1 | + | :# if {{{1}}} = {{void}} (i.e. nothing) |
:: then, output "both" | :: then, output "both" | ||
− | :: else, output the value of {{{1 | + | :: else, output the value of {{{1}}} |
:As for it's use, it clears out all the neiboring content in the cell or div. To the left, if 1 equal to "left"; to the right; if 1 equal to "right"; and both directions if 1 is undefined, blank or equal to "both". | :As for it's use, it clears out all the neiboring content in the cell or div. To the left, if 1 equal to "left"; to the right; if 1 equal to "right"; and both directions if 1 is undefined, blank or equal to "both". | ||
:{{User:Tacopill/sig}} 16:15, 5 March 2011 (UTC). | :{{User:Tacopill/sig}} 16:15, 5 March 2011 (UTC). | ||
::Yes, I know how #if and the HTML ''clear'' attribute work, but what do they have to do with the use of template:void here? - [[User:Greenpickle|GP]] <sub>[[User talk:Greenpickle|talk]]</sub> | ::Yes, I know how #if and the HTML ''clear'' attribute work, but what do they have to do with the use of template:void here? - [[User:Greenpickle|GP]] <sub>[[User talk:Greenpickle|talk]]</sub> | ||
+ | :::My guess would be, to capture all the possible null values that could go in {{{1}}}, which maybe an improvement over #if: (without eq). I'm not sure on this, however, since i didn't design. I brought it over from [[Lylat Wiki]], and the person who brought or created it there isn't currently active, there or here. {{User:Tacopill/sig}} 05:26, 6 March 2011 (UTC). |
Revision as of 05:26, 6 March 2011
Missing closing tag. Oh, and why the {{void}}? (And why its use everywhere else? It seems pretty pointless to me.) - GP talk 15:50, 5 March 2011 (UTC)
- the ifeq condition is broken up like this:
- if {{{1}}} = (i.e. nothing)
- then, output "both"
- else, output the value of {{{1}}}
- As for it's use, it clears out all the neiboring content in the cell or div. To the left, if 1 equal to "left"; to the right; if 1 equal to "right"; and both directions if 1 is undefined, blank or equal to "both".
- Tacopill (Talk) 16:15, 5 March 2011 (UTC).
- Yes, I know how #if and the HTML clear attribute work, but what do they have to do with the use of template:void here? - GP talk
- My guess would be, to capture all the possible null values that could go in {{{1}}}, which maybe an improvement over #if: (without eq). I'm not sure on this, however, since i didn't design. I brought it over from Lylat Wiki, and the person who brought or created it there isn't currently active, there or here. Tacopill (Talk) 05:26, 6 March 2011 (UTC).
- Yes, I know how #if and the HTML clear attribute work, but what do they have to do with the use of template:void here? - GP talk