FANDOM


TLDR version: The template

{{!-}}

should never ever be used in any articles, or the format will be corrupted on mobile devices. Instead, (template) contributors should use

{{!}}-

, that is, a template named “!” followed by a hyphen “-”.

This page has been archived.

There'll be no more updates on this page.

CXuesong (talk) 04:23, January 30, 2016 (UTC)

The Problem

As some visitors may have noticed, the format of infobox is corrupted in mobile view, while everything goes well in desktop view. Let's take the page The Fourth Apprentice for example. The snapshots of the same page on desktop and mobile view are as follows. You may need to click and see the images in full size.

File:The Fourth Apprentice Screenshot 1.png
File:The Fourth Apprentice Screenshot 2.png


Obviously, the format goes wrong in mobile view.

I've noticed this problem several months ago, when I started to read Into the Wild, but I didn't have time to figure out the cause and solution, until today, I spent the whole evening and finally came to a conclusion.

Solution

The template

{{!-}}

should never ever be used in any articles, or the format will be corrupted on mobile devices. Instead, (template) contributors should use

{{!}}-

, that is, a template named “!” followed by a hyphen “-”.

For example, all the

{{!-}}

in the Template:Book should be replaced with

{{!}}-

. Unfortunately, I'm not able to edit it, so I just place suggestion here in the hope that someone may see this post.

Okay, I've made a mistake. The template {{Charcat}} has been protected now (see the log here) and only administrators can edit it, while the other infobox templates are semiprotected or not protected at all. So up till now I've fixed up the following templates:

I still cannot edit the following templates because I don't have the permission to do so

CXuesong (talk) 03:29, January 30, 2016 (UTC)

Demo

The demo is no longer available.

The problem has been fixed up and the sandbox page in the main namespace has been removed. You can still visit the page here: User:CXuesong/SB - This Is a Sandbox Page, but you can no longer experience any of corrupted format described above. Note that you should not recreate the deleted page SB - This Is a Sandbox Page without a good reason.

You can take a look at the demo in this sandbox page. Or click here if you just want to see the format of book infobox in mobile view that it meant to be,

Because this format problem can occur only to the articles in main namespace, sadly, you cannot experience such format corruption in either this blog entry or in a subpage of my profile page, even if you're using mobile phones. However, I was still able to create a page in the main namespace, and though it has later been moved, the redirection has been well preserved (thank you, @SnowedLightning, for saving my little sandbox ;-) ), which is very important for me to reproduce and solve the problem.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.