Main Page: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<strong>MediaWiki has been installed.</strong>
Welcome!


Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.
I've set up this wiki to demonstrate a possible new format for the Library of Formatting Examples. Click the link below to view it.


== Getting started ==
<div style="text-align:center;">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]
<p style="font-size:250%">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]
'''[[Library of Formatting Examples:Main]]'''
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]
</p>
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]
</div>
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]
 
==== Content Notes ====
 
I have created the following categories to track individual pages. (These categories will be removed during migration to the final site).
 
;[[:Category:Special review]]
:Pages where more than superficial changes have been made while converting from the old format to the Wiki format; see category page for more details.
;[[:Category:Update needed]]
:Pages that may need content changes due to incorrect or out of date advice.
 
==== Configuration Notes ====
 
In order to set up the LOFE domain, I added this to LocalSettings.php:
 
<pre>define("NS_LOFE", 3000);
define("NS_LOFE_TALK", 3001);
define("NS_LIBRARY_OF_FORMATTING_EXAMPLES", 3002);
define("NS_LIBRARY_OF_FORMATTING_EXAMPLES_TALK", 3003);
$wgExtraNamespaces[NS_LOFE] = "LOFE";
$wgExtraNamespaces[NS_LOFE_TALK] = "LOFE_talk";
$wgExtraNamespaces[NS_LIBRARY_OF_FORMATTING_EXAMPLES] = "Library_of_Formatting_Examples";
$wgExtraNamespaces[NS_LIBRARY_OF_FORMATTING_EXAMPLES_TALK] = "Library_of_Formatting_Examples_talk";
$wgContentNamespaces[] = NS_LIBRARY_OF_FORMATTING_EXAMPLES;
$wgNamespacesWithSubpages[NS_LIBRARY_OF_FORMATTING_EXAMPLES] = true;</pre>
 
To style the LOFE pages I have added multiple classes to [[MediaWiki:Common.css]]. Every custom CSS entry Common.css is limited in scope either with an "lofe-" prefix before the class or object ID:
 
<pre>div.lofe-side {
  max-width:49%;
  float:left;
}</pre>
 
or with the .ns-3000 or .ns-3001 classes representing the custom LOFE namespace.
 
<pre>.ns-3000 #content, .ns-3001 #content {
  background-color:#f6f6f6;
}</pre>
 
The namespace tags will need to be adjusted if the namespace constant is changed in LocalSettings.php.

Latest revision as of 11:09, 20 December 2025

Welcome!

I've set up this wiki to demonstrate a possible new format for the Library of Formatting Examples. Click the link below to view it.

Library of Formatting Examples:Main

Content Notes

I have created the following categories to track individual pages. (These categories will be removed during migration to the final site).

Category:Special review
Pages where more than superficial changes have been made while converting from the old format to the Wiki format; see category page for more details.
Category:Update needed
Pages that may need content changes due to incorrect or out of date advice.

Configuration Notes

In order to set up the LOFE domain, I added this to LocalSettings.php:

define("NS_LOFE", 3000);
define("NS_LOFE_TALK", 3001);
define("NS_LIBRARY_OF_FORMATTING_EXAMPLES", 3002);
define("NS_LIBRARY_OF_FORMATTING_EXAMPLES_TALK", 3003);
$wgExtraNamespaces[NS_LOFE] = "LOFE";
$wgExtraNamespaces[NS_LOFE_TALK] = "LOFE_talk";
$wgExtraNamespaces[NS_LIBRARY_OF_FORMATTING_EXAMPLES] = "Library_of_Formatting_Examples";
$wgExtraNamespaces[NS_LIBRARY_OF_FORMATTING_EXAMPLES_TALK] = "Library_of_Formatting_Examples_talk";
$wgContentNamespaces[] = NS_LIBRARY_OF_FORMATTING_EXAMPLES;
$wgNamespacesWithSubpages[NS_LIBRARY_OF_FORMATTING_EXAMPLES] = true;

To style the LOFE pages I have added multiple classes to MediaWiki:Common.css. Every custom CSS entry Common.css is limited in scope either with an "lofe-" prefix before the class or object ID:

div.lofe-side {
  max-width:49%;
  float:left;
}

or with the .ns-3000 or .ns-3001 classes representing the custom LOFE namespace.

.ns-3000 #content, .ns-3001 #content {
  background-color:#f6f6f6;
}

The namespace tags will need to be adjusted if the namespace constant is changed in LocalSettings.php.