Add report link to mediawiki footer#488
Merged
Merged
Conversation
Bug: T397906
AndrewKostka
approved these changes
Aug 12, 2025
Member
outdooracorn
left a comment
There was a problem hiding this comment.
Tested this locally and it works. I have one minor nitpick and a few questions for my understanding.
| $footerlinks['report'] = Html::element( | ||
| 'a', | ||
| [ | ||
| 'href' => 'https://wikibase.cloud/complaint', |
Member
There was a problem hiding this comment.
I guess there isn't an easy way to tell what platform the wiki is running on (e.g. wikibase.cloud, wikibase.dev, or wbaas.dev)?
| @@ -218,6 +218,20 @@ | |||
| ], | |||
| ]; | |||
|
|
|||
Member
There was a problem hiding this comment.
Let's follow the existing pattern in this file and add a comment explaining what this config does and a link to the docs.
Suggested change
| // Add 'report illegal content' link | |
| // https://www.mediawiki.org/wiki/Manual:Hooks/SkinAddFooterLinks |
| 'target' => '_blank', | ||
| 'rel' => 'noopener noreferrer' | ||
| ], | ||
| 'Report illegal content' |
Member
There was a problem hiding this comment.
The docs use i18n messages. I guess this isn't possible on Cloud currently as it's not hooked up to a translation pipeline?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug: T397906