[dismiss]
Welcome to SmashWiki! Log in or create an account and join the community, and don't forget to read this first! |
Notices |
---|
The Skill parameter has been removed from Smasher infoboxes, and in its place are the new "Best historical ranking" and "Best tournament result" parameters. SmashWiki needs help adding these new parameters to Smasher infoboxes, refer to the guidelines here for what should be included in these new parameters. |
When adding results to Smasher pages, include each tournament's entrant number in addition to the player's placement, and use the {{Trn}} template with the matching game specified. Please also fix old results on Smasher pages that do not abide to this standard. Refer to our Smasher article guidelines to see how results tables should be formatted. |
Check out our project page for ongoing projects that SmashWiki needs help with. |
User talk:Ender R. Musk/Template:SSBU Classic Mode: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Created page with "==Minor code changes== #<code><nowiki>{{!}}</nowiki></code> is only needed inside of functions like #if. They can be replaced with normal pipes. #A lot of #ifeq can be simplif...") |
(No difference)
|
Revision as of 15:53, July 8, 2021
Minor code changes
{{!}}
is only needed inside of functions like #if. They can be replaced with normal pipes.- A lot of #ifeq can be simplified. Example:
{{#ifeq:{{{notes|}}}|true|!!Notes}}
can be reduced to{{#if:{{{notes|}}}|!!Notes}}
. This way as long as "notes" is any value it will work; not much need to be strict about the input in my opinion. {{#if:{{{round1notes|}}}|{{{round1notes}}}}}
can be reduced to just{{{round1notes|}}}
; unless you intended it to be{{#if:{{{notes|}}}|{{{round1notes}}}}}
to hide all notes if "notes" isn't set. I assume you want the latter because currently without any notes then you have an empty column.- Additionally, it should be possible to use mw:Extension:Variables for notes. For instance, doing
{{#vardefine:notes|{{#if:{{{round1notes|}}}{{{round2notes|}}}etc...|y}}}}
then "notes" can be removed altogether and{{#if:{{{notes|}}}...
can be replaced with{{#if:{{#var:notes|}}...
- Additionally, it should be possible to use mw:Extension:Variables for notes. For instance, doing
I have an edit put together with the above suggestions if you want them. --CanvasK (talk) 15:53, July 8, 2021 (EDT)