Skip to content

Huge amount of fixes in ::: templates ::: - #1286

Merged
itsneufox merged 1 commit into
openmultiplayer:masterfrom
NexiusTailer:master
Sep 27, 2026
Merged

itsneufox merged 1 commit into
openmultiplayer:masterfrom
NexiusTailer:master

Conversation

@NexiusTailer

@NexiusTailer NexiusTailer commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

One of the ugly things existing now is this: https://imgur.com/5k2QeF1

This example combined several issues which this PR fixes everywhere they were found:

  • broken tip template because of missed ending ::: closer; surprisingly it's somehow rendered, but completely incorrect, nesting the next different box
  • many same type template boxes instead of just one with a list design (like here)
  • tip template box is actually wrong for the first statement, it's just a note

The last problem comes from the fact that when it firstly ported from SA-MP wiki mirrors, most of the notes or warnings became tips for some reason. People fixed some specific cases during all this time, but general wrong pattern is still visible.
So the first thing which was done is comparing all the pages containing templates with blast.hk, UG-MP wiki and other mirrors to catch the most of mismatches automatically. Then I applied these rules over the already tweaked template types to fix the rest which could be still wrong (in case if they were wrong on the old wiki page):

  • crash, bug descriptions must be warning
  • plain facts which were massively made as tip must be note
  • clear advices stay tip

Then I fixed all the found templates which were broken in different ways:

  • text stuck on any of the ::: lines, as this produces render errors
  • unknown types of template openers (some zh-CN pages wrongly translated template name too, so the whole template box became invalid)
  • missing or inline closers (like in the very first example)

And finally, merged two or more template boxes with same type statements which are going one by one, into a single one.
There were also some cases of wrongly merged statements into a single template type box before, so they were splitted into a few different.

So, now template box types are semantically correct to its content and mostly consistent with the original source from where they were initially ported

@itsneufox
itsneufox merged commit ec1a36a into openmultiplayer:master Sep 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants