User:Koopa con Carne/MKT Profile overhaul

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search

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

MKT profile link