Template talk:Documentation/Archive 8: Difference between revisions

Content deleted Content added
MiszaBot II (talk | contribs)
Robot: Archiving 10 threads from Template talk:Documentation.
 
MiszaBot II (talk | contribs)
m Robot: Archiving 1 thread from Template talk:Documentation.
Line 216:
:::{{done}} -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 21:31, 20 June 2013 (UTC)
::[[User:Redrose64|Redrose64]], I suspect this only changed recently (perhaps the developers removed the obsolete CSS in the last update?), so you might have needed to [[WP:Bypass your cache|clear your cache]] to get the updated CSS. Thank you to [[User:WOSlinker|WOSlinker]] for making the change. – '''[[User:PartTimeGnome|PartTimeGnome]]''' <span style="font-size:79%;">([[User talk:PartTimeGnome|talk]]&#160;&#124; [[Special:Contributions/PartTimeGnome|contribs]])</span> 21:39, 20 June 2013 (UTC)
== Fix for non-transcluded documentation ==
 
{{edit protected|answered=yes}}
If you check the "This is in line documentation" example in the [[Template:Documentation/testcases|testcases]], you will notice that at the bottom of the documentation it states "The above documentation is transcluded from Template:Documentation/doc", which is entirely false. the reason for this is that the code in [[template:Documentation/end box]] does not check to see if {{{content}}} is blank before generating this statement. there are many ways to fix this, but the best is probably to simply bypass the ifexist check if {{{content}}} is blank. I did this in [[Template:Documentation/end box2/sandbox]]. I also made a minor change to [[Template:Documentation/sandbox]] to avoid sending the entire value of {{{content}}} to all the subtemplates, which is pointless, since the subtemplates only need to know if this parameter is blank. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:27, 11 July 2013 (UTC)
:I think this needs more consideration, it is legal to have a /doc page in addition to inline doc content - see [[Template:Documentation#Usage]], the part from "When the {{para|content}} parameter is used" to the end of the section. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 09:06, 12 July 2013 (UTC)
::Ah, I implemented this before I saw your post, [[User:Redrose64|Redrose]]. Let me know if you want me to revert the edits, or feel free to do it yourself if you want. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 09:16, 12 July 2013 (UTC)
:::Actually, I could see that this broke the test cases that use both {{para|1}} and {{para|content}}, so I've undone my edits myself. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 09:25, 12 July 2013 (UTC)