Tips and tricks: Difference between revisions

From Anemos wiki
No edit summary
No edit summary
Line 1: Line 1:
This page collects tips on how to create content within the vagaries of the MediaWiki ecosystem. Anything that people have struggled with or is byzantine to get to work, is documented here to reduce further suffering.
This page collects tips on how to create good content in spite the vagaries of the MediaWiki ecosystem. Things people struggled with or are byzantine to get to work should be documented here to reduce suffering.
 
== Naming ==
 
=== File names ===
 
=== Page names ===
Page names are case sensitive and capitalisation of headings becomes an issue.


== Navigation popups ==
== Navigation popups ==
Navigation popups are great, but easy to break or make ugly.
Navigation popups are nice feature, but all too easy to break or make ugly.[[File:Screenshot 2022-11-03 at 18.30.26.png|thumb|Popup error when no text precedes headers.]]


=== Text required at page head ===
=== Text required at page head ===
Before any headers, a paragraph of body text is required for the popup to display and not generate an error.
Before any headers, a paragraph of body text is required for the popup to display correctly and not generate an error. This text should summarise the page in a couple of sentences which is what appears in the popup.
[[File:Screenshot 2022-11-03 at 18.30.26.png|none|thumb]]
 
=== Images ===
=== Images ===
To make [[wikipedia:Wikipedia:Tools/Navigation_popups|Navigation_popups]] show an image (which is preferred), it seems the image needs to be in the page and downloaded on page load - if the image is in a gallery this is not the case for instance.
To make [[wikipedia:Wikipedia:Tools/Navigation_popups|Navigation_popups]] show an image (which is preferred), the image apparently needs to be included on the page and downloaded on page load -- if a gallery image, for instance, this is not the case.


<syntaxhighlight lang="html"><!-- popup [[File:Desired_Preview_Image.jpg]] --></syntaxhighlight>
<syntaxhighlight><!-- popup [[File:Desired_Preview_Image.jpg]] --></syntaxhighlight>

Revision as of 20:45, 4 November 2022

This page collects tips on how to create good content in spite the vagaries of the MediaWiki ecosystem. Things people struggled with or are byzantine to get to work should be documented here to reduce suffering.

Naming

File names

Page names

Page names are case sensitive and capitalisation of headings becomes an issue.

Navigation popups

Navigation popups are nice feature, but all too easy to break or make ugly.

Popup error when no text precedes headers.

Text required at page head

Before any headers, a paragraph of body text is required for the popup to display correctly and not generate an error. This text should summarise the page in a couple of sentences which is what appears in the popup.

Images

To make Navigation_popups show an image (which is preferred), the image apparently needs to be included on the page and downloaded on page load -- if a gallery image, for instance, this is not the case.

<!-- popup [[File:Desired_Preview_Image.jpg]] -->