Mobile Gateway/Mobile homepage formatting/da

Hvis dit Wikimedia-projekts forside ikke er blevet formateret til at blive vist på mobile enheder, og du er en administrator af det projekt, følg venligst instruktionerne neden under.

Soon, all Wikimedia projects will be displayed by default in mobile view on mobile devices (excluding tablets), see the proposed timeline. If the homepage has not been formatted for a mobile view, mobile users will see no content. Therefore, it is important to select content from the desktop version of the homepage that will be suitable for the mobile view.

Bemærk: Du skal have administratorrettigheder for at redigere forsiden.

Trin 1
Først, beslut hvilket indhold der er passende for mobilhjemmesiden.

Evaluer sidens elementer i desktop-versionen (fx "Dagens Billede") ved at spørge:


 * hvor populære er de?
 * bliver de opdateret regelmæssigt?
 * er de passende til hurting læsning?
 * vil de passe på en mobilskærm?

Når du har besluttet hvilke elementer, der giver mening, fortsæt til Trin 2.

Trin 2
You must be logged in and have administrative rights to do the following. On the desktop view of the homepage, click and find the elements you want to include in the mobile view.

Each element you want included in the mobile Main Page must be identified with an id="mf-..." attribute (where "..." is a unique name; use something human readable please). You may call these "mf selectors". One way to do this is to put a div tag around the element you want and put the "mf selector" within the div tag, like so:

Bemærk: Bogstaverne ABC skal udskiftes med en unik titel.

What goes in between the opening and closing div tags? It will most likely be a template for the page element, such as "Picture of the Day". The id of the selector can be whatever you choose, but they should be unique and descriptive.

If the element to include is a wiki table, you may put the "mf selector" (id="mf-...") within the table's attributes spot. That works, too.

Click "".

(Please note that there are older mobile selectors in the format "mp-ABC," which were adopted by a number of sites in the past. Those will continue to work, but for new formatting, the mf selectors are recommended.)

Du er næsten færdig.

Trin 3
Now go to the mobile URL, which is typically languagecode.m.project.org. If your project doesn't have a mobile URL, please contact the mobile team at. You can reduce the width of your desktop browser to mimic a mobile screen. How does the page look?

Hvis du vil lave ændringer, gå tilbage til Trin 2. Bliv ved med at gå fra Trin 2 til Trin 3 indtil du er tilfreds.

Det var det!

Et eksempel
Forsiderne af hver sprogversion af Wikipedia og alle de andre Wikimedia-projekter er forskellige, så det er umuligt at give et universalt eksempel. Alligevel, for at give en ide om hvordan dette måske ville se ud på din side, her er den tyske version af Wikipedia: http://de.wikipedia.org/ Hvis du klikker på Vis kilden ("Quelltext anziegen") ved siden af "Lesen", kan du se wikiteksten og ved at bruge din browsers Find-funktion, kig efter tekststrengen, "mf-".

In this case, the div tag for the mf selectors are part of larger page objects. Only someone familiar with that project's homepage formatting will understand this in detail.

Now go to: http://de.m.wikipedia.org/ The resulting mobile page will be visible. The sections of content corresponding to the mf selectors are rendered in the mobile view.

Bugs
bug — mobile version accessed with HTTPS using Wikipedia's SSL certificate instead of specific project domain certificate.