User:Dine2017

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
Dine2017's Userbox Tower
zh-n
cmn-n
ja-2
en-2
ko-1

Maintenance

1. There are three Chinese names which are a mixture of Simplified Chinese and Traditional Chinese:

Diddy Kong Racing 迪迪剛的赛车
N64 DK's Jungle Parkway 森喜剛丛林公园
Rally Ticket 奇諾比奧拉力赛券

2. The introductory quote on Fourth wall is not accurate. The words "Wii Remote" should be an in-game icon of the Wii Remote (different from Wii Remote). Similar changes apply to Garson#Garson's Stories.

3. Special:Search/insource:Nunchuck -- is that spelling ok?

Minor NPC project

I have mostly finished the List of minor NPCs in Paper Mario. The quotes come from the Paper Mario Text Dump by Rew. The layout of the article is not very satisfactory, and I don't know how to improve it.

My next project might be:

Contrary to MarioWiki:Courtesy, I don't mind if you do them ahead of me, though.

Mysterious code – PM
line = s => `* "''${s}''"`

function block(l) {
    [title, tattle, ...quotes] = l;
    return `|-\n|style="text-align:center"|[[File:PM Bob-Omb Red.png]]<br>${title}\n|data-label="Quotes" style="font-size:90%"|\n${quotes.map(line).join('\n')}\n|data-label="Goombario's Tattle" style="font-size:90%"|\n${line(tattle)}`
}

function f(s) {
    blocks=s.split('\n\n').map(x=>x.split('\n')).map(block).join('\n')
    console.log(blocks)
}


f(`Character A
Tattle
Quote 1
Quote 2

Character B
Tattle
Quote 1
Quote 2`)
Mysterious code – MLSS
function block(l) {
    [pic, desc, ...quotes] = l;
    desc = desc.trim();
    if (desc === '-') desc = '';
    if (desc !== '') desc = '<br>' + desc;
    return `|-\n|style="text-align:center"|[[File:MLSS ${pic}.png]]${desc}\n|\n${quotes.map(s => `* ''${s}''`).join('\n')}`
}

template = `{|style="width: 100%; margin: 0 auto; border-collapse: collapse;" border="1" cellpadding="1" cellspacing="1"
|-style="background: #ABC;"
!width="20%"|Character
!width="80%"|Quotes
INSERT HERE
|}`

function f(s) {
    s = s.trim();
    blocks = s.split(/\n\n+/).map(x => x.split('\n')).map(block).join('\n');
    result = template.replace('INSERT HERE', blocks)
    console.log(result);
}


f(`

Joke's End NPC
-
As a meteorologist, I am particularly interested in the whirlwinds that appear in the seas in this area. When rotational energy is added to warm updrafts of air, whirlwinds occur. It's quite fascinating. ...I would love to research this mechanism further and test it out somewhere.

`)