Is there any syntax which lets one create an internal link to discussions from the wiki? Or does it have to be external?
Perfect! Thank you.
Is there any syntax which lets one create an internal link to discussions from the wiki? Or does it have to be external?
It doesn't look like people can view the edit history of posts or threads in discussions. Is this correct?
I'm not sure if it is possible to have the width of a particular column in a single table vary at different points. Someone more experienced than me can confirm/deny that, though.
However, one potential solution to that problem would be to make the left/right images appear in a nested table. The code I came up with for that section of the infobox which seems to work is as follows:
{{#if: {{{image2L|}}}|<nowiki/> {{!}}- {{!}} colspan="2" {{!}} {{{!}} {{!}} style="text-align:center; width: 50%;" {{!}} [[File:{{{image2L|}}}|{{{size2L|250}}}px|link=File:{{{image2L|}}}]]<br/>{{#if:{{{caption2L|}}}|{{{caption2L|}}}|'''3D structure''' of '''(''R'')-{{lcfirst:{{{drug|{{PAGENAME}}}}}}}'''}} {{!}} style="text-align:center; width: 50%;" {{!}} [[File:{{{image2R|}}}|{{{size2R|250}}}px|link=File:{{{image2R|}}}]]<br/>{{#if:{{{caption2R|}}}|{{{caption2R|}}}|'''3D structure''' of '''(''S'')-{{lcfirst:{{{drug|{{PAGENAME}}}}}}}'''}} {{!}}} | }}
↑ That's something I didn't take into consideration when writing my response above, actually (I blame writing it at 2 in the morning.).
It is worth noting that the code I gave above will only have the caption appear as alt text when the image is hovered over. If you want the caption to always be visible below the image, then you should use the code TableWiz provided above.
In the code you posted above, the only problem I can see which would actually inhibit the functionality of the template is that the last #if: parser (regarding the {{{Image Caption}}} parameter) is incomplete. That explains the bits of visible code in the current version of the template.
The empty space you mentioned can be taken care of by removing the first line of code, as that is creating a separate, 32px high blank row which is independent of any parameters.
Correcting both of these issues would lead to the following:
{{#if: {{{Image|}}}| {{!}}- {{!}} colspan="2" align="center" valign="top"{{!}} [[File:{{{Image}}}{{#if: {{{Image Size|}}} | {{!}}{{{Image Size}}}px}}{{#if: {{{Image Caption}}} | {{!}}{{{Image Caption}}}}}]] |}}
One potential solution would be to use the {{#ifexist:}} parser to determine whether there is a page in the file namespace with the specified title.
As a simple example, something like the following:
{{#ifexist: File:{{{1|}}} | [[File:{{{1}}}]] | {{{1}}} }}
...would parse the input as an internal link if "File:{{{1}}}" exists and as an external file (dependent on MediaWiki:External image whitelist) if it doesn't.
However, it is worth mentioning that this is not a perfect solution as, depending on the number of cases in which the title does not exist, this method can pretty easily flood Special:WantedFiles. Additionally, this parser can only be used a certain number of times per page.
As far as I am aware, there is currently no way to edit that information. It used to be controlled by Special:Promote, but that special page is no longer available as of October 7, 2014. (source)
There is apparently a replacement coming, but few (if any) details about it have been released as of yet.
First, you need to ensure that chat is enabled on your wiki using WikiFeatures. Then, navigate to the contributions page of the user you want to promote and click "user rights management". Check the box next to "Chat moderator", enter a reason if you so desire, and click "Save user groups".
Kevsuc wrote:
Ah I can finally set it!
Glad to hear it!
Is that the same code for dayname, day, month, year?
Like {{#day:G:i|28 + 9 hours}} - does this will output the current day?
(First off, it's worth noting that you would want to keep the "#time:" part intact no matter what, as that is what causes the #time parser to be called.)
Would I be correct in assuming that what you are saying here is that you want to show the full date, rather than just the time? If so, then one solution would be to change the "G:i" in the function to "D, j M Y, G:i", which would cause the output to include the day of the week, day, month, and year in addition to the adjusted time. The full formatting for this would be as follows:
{{#time:D, j M Y, G:i|{{CURRENTTIME}} + 9 hours}}
...which produces the following:
Wed, 28 Oct 2020, 23:44
(If you want to learn more about the #time parser, I'd strongly recommend reading the section for it on the MediaWiki help page for parser functions.)
Sounds like what you would want to do is use the {{#time:}} parser to adjust the {{CURRENTTIME}} magic word by 9 hours.
Specifically, instead of using {{CURRENTTIME}} (output: 14:44), you would use {{#time:G:i|{{CURRENTTIME}} + 9 hours}} (output: 23:44).
Hello!
In the course of working on my test wiki, I came across a problem which I don't believe I have the technical aptitude to solve.
On this page, I would like the h2 elements (created with this template) to take on the colors of the parts of the gradient which are immediately behind them, while also changing them from slightly transparent to fully opaque. As far as I can tell, this would not be possible with just CSS, so I assume it would require JavaScript?
Thanks in advance!
By the looks of things, the infobox on the source wiki makes use of a template which isn't present on your wiki. 'Sfar as I can tell, adding that template to your wiki would be the simplest way to solve the problem you described.
Not a problem! Glad to help. :)
Yeah, it won't work if you navigate to chat by a direct link, URL, bookmark, or anything else, and it should work regardless of whether or not anyone else is in chat.
Yup, looks like you are good to go!
You'll know that it worked if you enter chat via a chat module and see three extra buttons on the far right of your chat bar, as well as an interface at the top of the screen which says "Ping phrases".
Just one small change (that I just noticed): "Monochan45" should be "Monchoman45". Otherwise, that is correct.
I find that times vary, though I doubt that it would take longer than half an hour.
Yup, that should work!
Once you have that page created, you'll want to wait a little while for the JS to take effect, however.
RadiantDarkBlaze wrote:
I'm not quite 100% clear on what you said to do. In my case, would it be:
Special:RadiantDarkBlaze/fan-ball.js
importScriptPage('User:Monochan45/ChatHacks.js', 'c');
To get it working just for me just on the Fan-Ball Wiki, or did I get a couple things hilariously wrong there?
Ah, it looks like I was a little bit unclear there. The "Special:Mypage/wikia.js" I mentioned isn't actually supposed to be changed at all, so the direct link to the page you'll want to create is as follows: w:c:fanball:User:RadiantDarkBlaze/wikia.js
Sorry for the confusion!