z929669 Posted June 29, 2021 Posted June 29, 2021 After doing some testing, I'm proposing some standards for wiki markup on mod pages, some of which are known, but I am documenting here for reference by others. The relevant info has been added to a section of our Wiki User Guide. Please add/revise/relocate this reference as best applies (just update this link).
z929669 Posted July 1, 2021 Author Posted July 1, 2021 @TechAngel85 @DoubleYou @Greg @Majorman @Darklocq Forgot to call you guys out for the notifications. See OP
DoubleYou Posted July 1, 2021 Posted July 1, 2021 Could we not make a class to handle the line-height and indentation, if not the whole code html snippets, for the fake pre styling?
z929669 Posted July 1, 2021 Author Posted July 1, 2021 3 hours ago, DoubleYou said: Could we not make a class to handle the line-height and indentation, if not the whole code html snippets, for the fake pre styling? Yes, I plan on doing that, but am waiting to implement changes made to DEV first. Once I do that, I will update the live wiki. EDIT: I just created the class using common.css for now
z929669 Posted July 1, 2021 Author Posted July 1, 2021 In creating the mod page classes, I stumbled upon a fix for <pre> transclusion in guide Recommendations. Have a look at the SKSE64 page and look at the expanded entry in the current SSE guide.
TechAngel85 Posted July 1, 2021 Posted July 1, 2021 2 hours ago, z929669 said: In creating the mod page classes, I stumbled upon a fix for <pre> transclusion in guide Recommendations. Have a look at the SKSE64 page and look at the expanded entry in the current SSE guide. So not really a pre tag, but a faked one using a paragraph and custom styling. Works. Just be sure we're updating the Wiki User Guide so there are references for it. That's likely what I'll use to refresh myself when doing tasks, so as long as it's documented. Is there a reason we don't have SyntaxHighlight installed? Seems it would be useful for such things...not sure how it transcludes, but also works with VisualEditor if we are ever able to make the switch to it.
z929669 Posted July 1, 2021 Author Posted July 1, 2021 1 hour ago, TechAngel85 said: So not really a pre tag, but a faked one using a paragraph and custom styling. Works. Just be sure we're updating the Wiki User Guide so there are references for it. That's likely what I'll use to refresh myself when doing tasks, so as long as it's documented. Is there a reason we don't have SyntaxHighlight installed? Seems it would be useful for such things...not sure how it transcludes, but also works with VisualEditor if we are ever able to make the switch to it. We do have SyntaxHighlight installed. I am updating the Wiki Guidelines page now with all relevant info and use it there for the Mod Pages tab. I am in the process of stripping out all of the general Mediawiki and SMW stuff in favor of providing contextual links to that info and fleshing out an External References tab. Our wiki guide can then focus exclusively on info pertaining to our wiki. This way that guide can remain completely relevant but much shorter and to the point. less to maintain.
TechAngel85 Posted July 1, 2021 Posted July 1, 2021 12 minutes ago, z929669 said: We do have SyntaxHighlight installed. I am updating the Wiki Guidelines page now with all relevant info and use it there for the Mod Pages tab. I am in the process of stripping out all of the general Mediawiki and SMW stuff in favor of providing contextual links to that info and fleshing out an External References tab. Our wiki guide can then focus exclusively on info pertaining to our wiki. This way that guide can remain completely relevant but much shorter and to the point. less to maintain. So does the syntax not transclude? <syntaxhighlight lang="ini"> markup </syntaxhighlight> Just thinking there is no need to reinvent the wheel if we already have something that works for such. EDIT: No, we have this, which is inferior imo, if only because of the number of supported languages: https://www.mediawiki.org/wiki/Extension:Highlightjs_Integration
z929669 Posted July 1, 2021 Author Posted July 1, 2021 22 minutes ago, TechAngel85 said: So does the syntax not transclude? <syntaxhighlight lang="ini"> markup </syntaxhighlight> Just thinking there is no need to reinvent the wheel if we already have something that works for such. EDIT: No, we have this, which is inferior imo, if only because of the number of supported languages: https://www.mediawiki.org/wiki/Extension:Highlightjs_Integration I experimented with both months ago, and Highlightjs "just works" the other did not work OOtB and has issues that you will find on the Extension talk or help page. What we have works well enough for our needs and is much simpler to implement. Also, this has the same issue as <pre>. The class works for guide detailed instructions and is better than multiline code tags with bullets, since it is less to code and looks better.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now