19
edits
(→Regarding the Moonwalk article: new section) |
|||
Line 46: | Line 46: | ||
:The image param automatically puts the input into the image format (or whatever it is called), so no luck there. The caption param, on the other hand, doesn't assume anything. So what you can do is you can put the image into the caption param and resize it like you would elsewhere (ie <code><nowiki>|capation = [[File:Example.png|200px]]</nowiki></code>). This is how character infoboxes add the series symbol under the image. There's also free art programs like GIMP or Paint.net that allow for pixel-perfect scaling if you want to go that route. | :The image param automatically puts the input into the image format (or whatever it is called), so no luck there. The caption param, on the other hand, doesn't assume anything. So what you can do is you can put the image into the caption param and resize it like you would elsewhere (ie <code><nowiki>|capation = [[File:Example.png|200px]]</nowiki></code>). This is how character infoboxes add the series symbol under the image. There's also free art programs like GIMP or Paint.net that allow for pixel-perfect scaling if you want to go that route. | ||
:As for the time-based change you can combine a <nowiki>{{#switch}} function and the {{LOCALMONTHNAME}} variable. The #switch takes an input (in this case {{LOCALMONTHNAME}}) and chooses an option based on it. For this case it would look like</nowiki><code><nowiki>{{#switch:{{LOCALMONTHNAME}}|March=Blah blah|December=Snow time|#default=Everything else}}</nowiki></code>. You can read more about functions [[mw:Help:Extension:ParserFunctions|here]] and about varibles [[mw:Help:Magic words#Variables|here]]. I've messed with something similar when trying to make a timezone-aware template, but because the wiki caches pages it wouldn't actually update. This may work better since it uses a different function than what I used, and on the scale of months the page should cache in that time. If not then you can just go to your userpage and hit save, I think that'll update the cache. {{tl|Birthday}} uses a similar thing, but I've not kept an eye on it to see how quickly it updates. <br>--[[User:CanvasK|CanvasK]] ([[User talk:CanvasK|talk]]) 10:25, March 17, 2021 (EDT) | :As for the time-based change you can combine a <nowiki>{{#switch}} function and the {{LOCALMONTHNAME}} variable. The #switch takes an input (in this case {{LOCALMONTHNAME}}) and chooses an option based on it. For this case it would look like</nowiki><code><nowiki>{{#switch:{{LOCALMONTHNAME}}|March=Blah blah|December=Snow time|#default=Everything else}}</nowiki></code>. You can read more about functions [[mw:Help:Extension:ParserFunctions|here]] and about varibles [[mw:Help:Magic words#Variables|here]]. I've messed with something similar when trying to make a timezone-aware template, but because the wiki caches pages it wouldn't actually update. This may work better since it uses a different function than what I used, and on the scale of months the page should cache in that time. If not then you can just go to your userpage and hit save, I think that'll update the cache. {{tl|Birthday}} uses a similar thing, but I've not kept an eye on it to see how quickly it updates. <br>--[[User:CanvasK|CanvasK]] ([[User talk:CanvasK|talk]]) 10:25, March 17, 2021 (EDT) | ||
== Regarding the Moonwalk article == | |||
Hey I'm new to the wiki and I saw you reverted my changes because of poor wording (probably fair, not a native english speaker myself). | |||
What are the steps to get it approved? Could you help me with the wording? | |||
The current article contains a lot of misinformation, and I think this is worse than poor wording. | |||
But fixing the wording too would be the best way to go, of course. Thanks :) [[User:Kalua|Kalua]] ([[User talk:Kalua|talk]]) 09:46, March 19, 2021 (EDT) |
edits