User talk:Lotroadmin/Template or Tansclusion (probably a MediaWiki) bug

From Lotro-Wiki.com
Jump to navigation Jump to search

The Deed template has a parameter "lore-text" which generates a correct display when viewed on the page itself. See: Discovering the Descendant

However, if one attempts an indent when the page is transcluded, the heading "==Lore==" is displayed, and that is the only part of the page indented. (Which I realize, is why the directive doesn't process, it doesn't begin in column 1.)

I realize that Zimoon does not believe in indents, however, this is a bug in the way either the transclusion or the template is workng. I suspect it may be an actual MediaWiki bug. It is one of those situations where:

  • An indented transculsion should either FAIL outright (and hopefully, therefore generate an error as "unsupported" or "you have attempted an invalid operation," or some such phrasing).
  • Or work correctly (i.e. as expected).

I suppose that one can always take the Turbine approach -- WAI (Works as Intended, you just have to learn to live with it and work around it.)

WAI could actually be the answer as far as the Transclusion issue is concerned (it's a full-fledged CS Philosophy debate) -- text is included AND THEN directives processed. Rather than the text (and directives) processed first and then included. I suspect this is a classic -- could be implemented either way, and MW chose "include then process" rather than "process then include." I am not aware of any "CS Standard" or what the most common usage is on that one, I'm too many years removed from the academic CS world at this point in time. (Retired in 2003).

However, the fact remains that the REST of the template is not indented, implying that the indentation request was ignored in the transclusion process EXCEPT on the first line. I believe that makes it a Template issue.

I'll leave it for those who know how the MW and Templates really do, or are supposed to, work to figure out.


Tranclusion example follows ::{{:Discovering the Descendant}} -- (Note that the heading "==Lore==" is indented, but nothing else.


Deed Lore

Without knowing where we have come from, we cannot possibly know where we are going. Éogar, master of Hengstacer Farm, will look for help around the farm and for someone to help train the new arrival once per day.

To complete this deed perform the following objective(s)

Rewards

   <name>, Destined for Rohan

Additional Information


End of transclusion example