User:Koopa con Carne/MKT Profile overhaul: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 189: Line 189:
|Paris Promenade 3T=Paris Promenade 3T
|Paris Promenade 3T=Paris Promenade 3T
|Paris Promenade 3R/T=Paris Promenade 3RT
|Paris Promenade 3R/T=Paris Promenade 3RT
|Paris Promenade B=Paris Promenade B
|London Loop=London Loop
|London Loop=London Loop
|London Loop R=London Loop R
|London Loop R=London Loop R
Line 298: Line 299:


==MKT profile link==
==MKT profile link==
<pre>
{{#switch:{{{1|}}}
{{#switch:{{{1|}}}
|Amsterdam Drift 3T=Tour Amsterdam Drift{{!}}Amsterdam Drift 3T
|Amsterdam Drift 3T=Tour Amsterdam Drift{{!}}Amsterdam Drift 3T
Line 307: Line 309:
|Wii Coconut Mall R/T=Wii Coconut Mall{{!}}Wii Coconut Mall R/T
|Wii Coconut Mall R/T=Wii Coconut Mall{{!}}Wii Coconut Mall R/T
}}
}}
</pre>

Latest revision as of 13:47, May 20, 2024

There's no sugarcoating it: the guy who coded the {{MKT profile}} template is an utter lunatic. (It's me.) The way it's set up, it requires editors to enter a tremendous amount of text to display comparatively terse content, which bloats pages at the expense of showing nothing more than a thumbnail with an article link underneath. Here, I'll attempt to fix the code using a few cool tricks I've been learning over time.

The following three sections will be split into three templates. MKT profile img and MKT profile link will be incorporated into MKT profile as switch functions to check which courses are entered in the c1.x and c2.x parameters and produce the appropriate image and link to the end user. Work in progress.

MKT profile

Special skill
Favorite courses
()
[[File:MKT Icon Template:MKT profile img.png|150px]]
[[Template:MKT profile link]]
Favored courses
()
[[File:MKT Icon Template:MKT profile img.png|150px]]
[[Template:MKT profile link]]

MKT profile img

{{#switch:{{{1|}}}
|New York Minute=New York Minute
|New York Minute R=New York Minute R
|New York Minute T=New York Minute T
|New York Minute R/T=New York Minute RT
|New York Minute 2=New York Minute 2
|New York Minute 2R=New York Minute 2R
|New York Minute 2T=New York Minute 2T
|New York Minute 2R/T=New York Minute 2RT
|New York Minute 3=New York Minute 3
|New York Minute 3R=New York Minute 3R
|New York Minute 3T=New York Minute 3T
|New York Minute 3R/T=New York Minute 3RT
|New York Minute 4=New York Minute 4
|New York Minute 4R=New York Minute 4R
|New York Minute 4T=New York Minute 4T
|New York Minute 4R/T=New York Minute 4RT
|New York Minute B=New York Minute B
|Tokyo Blur=Tokyo Blur
|Tokyo Blur R=Tokyo Blur R
|Tokyo Blur T=Tokyo Blur T
|Tokyo Blur R/T=Tokyo Blur RT
|Tokyo Blur 2=Tokyo Blur 2
|Tokyo Blur 2R=Tokyo Blur 2R
|Tokyo Blur 2T=Tokyo Blur 2T
|Tokyo Blur 2R/T=Tokyo Blur 2RT
|Tokyo Blur 3=Tokyo Blur 3
|Tokyo Blur 3R=Tokyo Blur 3R
|Tokyo Blur 3T=Tokyo Blur 3T
|Tokyo Blur 3R/T=Tokyo Blur 3RT
|Tokyo Blur 4=Tokyo Blur 4
|Tokyo Blur 4R=Tokyo Blur 4R
|Tokyo Blur 4T=Tokyo Blur 4T
|Tokyo Blur 4R/T=Tokyo Blur 4RT
|Paris Promenade=Paris Promenade
|Paris Promenade R=Paris Promenade R
|Paris Promenade T=Paris Promenade T
|Paris Promenade R/T=Paris Promenade RT
|Paris Promenade 2=Paris Promenade 2
|Paris Promenade 2R=Paris Promenade 2R
|Paris Promenade 2T=Paris Promenade 2T
|Paris Promenade 2R/T=Paris Promenade 2RT
|Paris Promenade 3=Paris Promenade 3
|Paris Promenade 3R=Paris Promenade 3R
|Paris Promenade 3T=Paris Promenade 3T
|Paris Promenade 3R/T=Paris Promenade 3RT
|Paris Promenade B=Paris Promenade B
|London Loop=London Loop
|London Loop R=London Loop R
|London Loop T=London Loop T
|London Loop R/T=London Loop RT
|London Loop 2=London Loop 2
|London Loop 2R=London Loop 2R
|London Loop 2T=London Loop 2T
|London Loop 2R/T=London Loop 2RT
|London Loop 3=London Loop 3
|London Loop 3R=London Loop 3R
|London Loop 3T=London Loop 3T
|London Loop 3R/T=London Loop 3RT
|Vancouver Velocity=Vancouver Velocity
|Vancouver Velocity R=Vancouver Velocity R
|Vancouver Velocity T=Vancouver Velocity T
|Vancouver Velocity R/T=Vancouver Velocity RT
|Vancouver Velocity 2=Vancouver Velocity 2
|Vancouver Velocity 2R=Vancouver Velocity 2R
|Vancouver Velocity 2T=Vancouver Velocity 2T
|Vancouver Velocity 2R/T=Vancouver Velocity 2RT
|Vancouver Velocity 3=Vancouver Velocity 3
|Vancouver Velocity 3R=Vancouver Velocity 3R
|Vancouver Velocity 3T=Vancouver Velocity 3T
|Vancouver Velocity 3R/T=Vancouver Velocity 3RT
|Los Angeles Laps=Los Angeles Laps
|Los Angeles Laps R=Los Angeles Laps R
|Los Angeles Laps T=Los Angeles Laps T
|Los Angeles Laps R/T=Los Angeles Laps RT
|Los Angeles Laps 2=Los Angeles Laps 2
|Los Angeles Laps 2R=Los Angeles Laps 2R
|Los Angeles Laps 2T=Los Angeles Laps 2T
|Los Angeles Laps 2R/T=Los Angeles Laps 2RT
|Los Angeles Laps 3=Los Angeles Laps 3
|Los Angeles Laps 3R=Los Angeles Laps 3R
|Los Angeles Laps 3T=Los Angeles Laps 3T
|Los Angeles Laps 3R/T=Los Angeles Laps 3RT
|Berlin Byways=Berlin Byways
|Berlin Byways R=Berlin Byways R
|Berlin Byways T=Berlin Byways T
|Berlin Byways R/T=Berlin Byways RT
|Berlin Byways 2=Berlin Byways 2
|Berlin Byways 2R=Berlin Byways 2R
|Berlin Byways 2T=Berlin Byways 2T
|Berlin Byways 2R/T=Berlin Byways 2RT
|Berlin Byways 3=Berlin Byways 3
|Berlin Byways 3R=Berlin Byways 3R
|Berlin Byways 3T=Berlin Byways 3T
|Berlin Byways 3R/T=Berlin Byways 3RT
|Sydney Sprint=Sydney Sprint
|Sydney Sprint R=Sydney Sprint R
|Sydney Sprint T=Sydney Sprint T
|Sydney Sprint R/T=Sydney Sprint RT
|Sydney Sprint 2=Sydney Sprint 2
|Sydney Sprint 2R=Sydney Sprint 2R
|Sydney Sprint 2T=Sydney Sprint 2T
|Sydney Sprint 2R/T=Sydney Sprint 2RT
|Sydney Sprint 3=Sydney Sprint 3
|Sydney Sprint 3R=Sydney Sprint 3R
|Sydney Sprint 3T=Sydney Sprint 3T
|Sydney Sprint 3R/T=Sydney Sprint 3RT
|Singapore Speedway=Singapore Speedway
|Singapore Speedway R=Singapore Speedway R
|Singapore Speedway T=Singapore Speedway T
|Singapore Speedway R/T=Singapore Speedway RT
|Singapore Speedway 2=Singapore Speedway 2
|Singapore Speedway 2R=Singapore Speedway 2R
|Singapore Speedway 2T=Singapore Speedway 2T
|Singapore Speedway 2R/T=Singapore Speedway 2RT
|Singapore Speedway 3=Singapore Speedway 3
|Singapore Speedway 3R=Singapore Speedway 3R
|Singapore Speedway 3T=Singapore Speedway 3T
|Singapore Speedway 3R/T=Singapore Speedway 3RT
|Amsterdam Drift=Amsterdam Drift
|Amsterdam Drift R=Amsterdam Drift R
|Amsterdam Drift T=Amsterdam Drift T
|Amsterdam Drift R/T=Amsterdam Drift RT
|Amsterdam Drift 2=Amsterdam Drift 2
|Amsterdam Drift 2R=Amsterdam Drift 2R
|Amsterdam Drift 2T=Amsterdam Drift 2T
|Amsterdam Drift 2R/T=Amsterdam Drift 2RT
|Amsterdam Drift =Amsterdam Drift 3
|Amsterdam Drift 3R=Amsterdam Drift 3R
|Amsterdam Drift 3T=Amsterdam Drift 3T
|Amsterdam Drift 3R/T=Amsterdam Drift 3RT
|Bangkok Rush=Bangkok Rush
|Bangkok Rush R=Bangkok Rush R
|Bangkok Rush T=Bangkok Rush T
|Bangkok Rush R/T=Bangkok Rush RT
|Athens Dash=Athens Dash
|Athens Dash R=Athens Dash R
|Athens Dash T=Athens Dash T
|Athens Dash R/T=Athens Dash RT
|Athens Dash 2=Athens Dash 2
|Athens Dash 2R=Athens Dash 2R
|Athens Dash 2T=Athens Dash 2T
|Athens Dash 2R/T=Athens Dash 2RT
|Athens Dash 3=Athens Dash 3
|Athens Dash 3R=Athens Dash 3R
|Athens Dash 3T=Athens Dash 3T
|Athens Dash 3R/T=Athens Dash 3RT
|RMX Ghost Valley 1R/T=RMX Ghost Valley 1RT
|SNES Donut Plains 1R=SNES Donut Plains 1R
|SNES Donut Plains 1R/T=SNES Donut Plains 1RT
|N64 Frappe Snowland=N64 Frappe Snowland
|Wii Coconut Mall R/T=Wii Coconut Mall RT
}}

MKT profile link

{{#switch:{{{1|}}}
|Amsterdam Drift 3T=Tour Amsterdam Drift{{!}}Amsterdam Drift 3T
|Athens Dash 2R=Tour Athens Dash{{!}}Athens Dash 2R
|RMX Ghost Valley 1R/T=RMX Ghost Valley 1{{!}}RMX Ghost Valley 1R/T
|SNES Donut Plains 1R=SNES Donut Plains 1{{!}}SNES Donut Plains 1R
|SNES Donut Plains 1R/T=SNES Donut Plains 1{{!}}SNES Donut Plains 1R/T
|N64 Frappe Snowland=N64 Frappe Snowland
|Wii Coconut Mall R/T=Wii Coconut Mall{{!}}Wii Coconut Mall R/T
}}