Difference between revisions of "Template:Plainlist/doc"

From Hgames Wiki
Jump to: navigation, search
(Initial creation of template documentation)
 
(Move coder comment into /doc subpage)
 
Line 1: Line 1:
 
{{see wikipedia documentation|Template:Plainlist}}
 
{{see wikipedia documentation|Template:Plainlist}}
 +
 +
== WARNING: This Template is Buggy ==
 +
I'm not sure whether the problem is occurring with Hgames Wiki's installed version of MediaWiki, but this template is exhibiting very odd behavior. The intended use of the {{Template link|plainlist}} template is to nest an unordered list (<code><nowiki><ul></nowiki></code>) or an ordered list (<code><nowiki><ol></nowiki></code>) inside of it. However, if you apply any CSS style attributes to any of the elements of the list, the entire list is not getting rendered by the MediaWiki engine!
 +
 +
As a result, I have had to forgo calling this template from the {{Template link|unbulleted list}} template, and instead hard code the <code><nowiki><div class="plainlist"></nowiki></code> tag directly into the {{Template link|unbulleted list}} template. Of course, it's possible that if we were able to use <code><nowiki><templatestyles></nowiki></code>, things would work, because all of the styles on the unordered list in {{Template link|unbulleted list}} should have been getting specified in <code>"Plainlist/styles.css"</code> anyway, and is only directly being used inside a <code>style</code> attribute on the <code><nowiki><ul></nowiki></code> element because <code><nowiki><templatestyles></nowiki></code> doesn't work. Also, things might be working better if [[Wikipedia:Wikipedia:Lua|Lua-based modules]] could be used on Hgames Wiki, because the entire reason why the {{Template link|unbulleted list}} template looks the way that it does is because we can't use a Lua module like Wikipedia does.

Latest revision as of 21:39, 3 October 2024

Icon msgbox notice.png This template's code was copied directly from Wikipedia. For more information, including more details on how to use this template in your articles, please see Wikipedia's Template:Plainlist documentation.


WARNING: This Template is Buggy

I'm not sure whether the problem is occurring with Hgames Wiki's installed version of MediaWiki, but this template is exhibiting very odd behavior. The intended use of the {{plainlist}} template is to nest an unordered list (<ul>) or an ordered list (<ol>) inside of it. However, if you apply any CSS style attributes to any of the elements of the list, the entire list is not getting rendered by the MediaWiki engine!

As a result, I have had to forgo calling this template from the {{unbulleted list}} template, and instead hard code the <div class="plainlist"> tag directly into the {{unbulleted list}} template. Of course, it's possible that if we were able to use <templatestyles>, things would work, because all of the styles on the unordered list in {{unbulleted list}} should have been getting specified in "Plainlist/styles.css" anyway, and is only directly being used inside a style attribute on the <ul> element because <templatestyles> doesn't work. Also, things might be working better if Lua-based modules could be used on Hgames Wiki, because the entire reason why the {{unbulleted list}} template looks the way that it does is because we can't use a Lua module like Wikipedia does.