Hi everyone,
You might’ve noticed that I recently updated the code for Template:MBox. Don’t worry—these changes (hopefully) won’t affect any existing usage (based on the tests I’ve done on my personal page).
For now, the changes are only applied to the Sakurazaka46 group members (which I'm focusing on). I’d like to discuss these updates and optimizations of the previous MBox code before potentially applying them across all groups in the AKB48 Wiki—if other contributors/admins agree (and possibly update the MBox documentation as a whole).
Previously, we had to input all parameters in this format:
{{MBox|<group name>|<member's pagename>|<display name>|<image>}}
This setup often caused inconsistencies, especially with member display names/nicknames that can change over time. This issue is more noticeable on song/single pages where the MBox is called repeatedly (unless it’s intentional). For example, Masumoto Kira from Sakurazaka46 was called "Masumo" during their first single, but nowadays fans know her as "Kirako," and some might not even recognize "Masumo."
To solve this, I’ve added an optimization where the code will use default values if certain parameters are left blank. These defaults are fetched from Template:MBox/Group, which pulls data from Template:Nickname/Group and Template:Latest Profile Picture/Group.
This way, nicknames and latest profile picture data are stored separately and automatically used when parameters are left blank. If there’s a change, contributors just need to update the default values in those templates. The latest profile picture data can also simplify updating profile pictures in member infoboxes—no need to edit each member page one by one.
However, the code still supports custom values as before, ensuring that it won’t affect existing usage.
Now, MBox can be used in these ways:
{{MBox|<group name>|<member's pagename>}}
{{MBox|<group name>|<member's pagename>|<display name>}}
{{MBox|<group name>|<member's pagename>|<display name>|<image>}}
It will also display default values if <display name> or <image> is blank/invalid (the order still matters):
{{MBox|<group name>|<member's pagename>||<image>}}
{{MBox|<group name>|<member's pagename>|<display name>|}}
I’ve also added a noname option if you just want to show the <image> without the <display name>:
{{MBox|<group name>|<member's pagename>|noname|<image>}}
You can check the comparison table here for reference
What do you guys think?