1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Display stub notice in marked wiki articles

This commit is contained in:
Joseph Madamba 2023-03-11 21:36:15 -08:00
parent 0cf69a1084
commit ea88aee41f
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -19,6 +19,7 @@ namespace osu.Game.Overlays.Wiki.Markdown
{
private readonly bool isOutdated;
private readonly bool needsCleanup;
private readonly bool isStub;
public WikiNoticeContainer(YamlFrontMatterBlock yamlFrontMatterBlock)
{
@ -37,6 +38,10 @@ namespace osu.Game.Overlays.Wiki.Markdown
case @"needs_cleanup: true":
needsCleanup = true;
break;
case @"stub: true":
isStub = true;
break;
}
}
}
@ -60,6 +65,14 @@ namespace osu.Game.Overlays.Wiki.Markdown
Text = WikiStrings.ShowNeedsCleanupOrRewrite,
});
}
if (isStub)
{
Add(new NoticeBox
{
Text = WikiStrings.ShowStub,
});
}
}
private partial class NoticeBox : Container