Skip to content

Morocco: Infobox parsed wrong #59

@zverok

Description

@zverok

At this point in Morocco's infobox:

|national_motto =
   <div style="padding-top:0.2em;padding-bottom:0.5em;">{{native phrase|ar|{{lower|0.1em|{{big|الله، الوطن، الملك&nbsp;}}}}|italics=off|nolink=on}}<br/>''{{transl|ar|Allah, Al Watan, Al Malik}}''</div>''{{native phrase|ber|ⴰⴽⵓⵛ, ⴰⵎⵓⵔ, ⴰⴳⵍⵍⵉⴷ}}''</div>
   <br/>{{small|"God, Homeland, King"}}

Everything is screwed up this way:

  • at second line, parser thinks "this is a beginning of pre";
  • ...it parses pre until ...nolink=on}} which is thought to be the end of entire infobox (because markup is not parsed inside pre, but template ending is awaited for;

In fact,

  • pre is ok (though real Infobox doesn't render it as a pre);
  • ALL the markup should be parsed on those pre (just try it in sandbox)!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions