Difference between revisions of "Help"

 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Current PHP version ==
+
== Language switching ==
  
php --version
+
An interwiki language switch link is created by prefixing a page title with <code>en:</code>, <code>de:</code> or <code>fr:</code> in a regular link and placing it anywhere within the markup of a content page, resulting in the language switch appearing in the left column of the page in Desktop view while at the end of the page in Mobile view.
PHP 5.6.17 (cli) (built: Jan 12 2016 14:29:00)
 
Copyright (c) 1997-2015 The PHP Group
 
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
 
  
 +
''Examples:''
  
== Batch import ==
+
* <code><nowiki>[[fr:Cholestéatome]]</nowiki></code> on [[Cholesteatoma]] leads to [https://www.dr-pere.fr/entopedia/Cholest%C3%A9atome www.dr-pere.fr/entopedia/Cholestéatome].
  
Within ~/wiki/maintenance/ run, eg.:
+
* <code><nowiki>[[de:Cholesteatom]]</nowiki></code> on [[Cholesteatoma]] leads to [https://www.dr-pere.de/entopedia/Cholesteatom www.dr-pere.de/entopedia/Cholesteatom].
  
php importImages.php /tmp/wiki_images_backup --user=Webmaster --comment="Batch imported media"
+
* <code><nowiki>[[en:Cholesteatoma]]</nowiki></code> on [https://www.dr-pere.fr/entopedia/Cholest%C3%A9atome www.dr-pere.fr/entopedia/Cholestéatome] and on [https://www.dr-pere.de/entopedia/Cholesteatom www.dr-pere.de/entopedia/Cholesteatom] leads to [[Cholesteatoma]].
  
php --help importImages.php
+
== Multi column lists ==
  
Causes error when old GoogleMaps extension is active.
+
The '''Div col''' markup is used to create a multi-column list that automatically adjust its number of columns depending on screen widths.
  
<pre>
+
''Example:''
php importImages.php /tmp/wiki_images_backup --user=Webmaster --comment="Batch imported media"
+
<pre><nowiki>
Warning: require(extensions/GoogleMaps/GoogleMaps.i18n.php): failed to open stream: No such file or directory in /usr/home/wiki/extensions/GoogleMaps/GoogleMaps.php on line 21
+
{{Div col|colwidth=10em|rules=yes|gap=2em}}
Fatal error: require(): Failed opening required 'extensions/GoogleMaps/GoogleMaps.i18n.php' (include_path='/usr/home/wiki/vendor/pear/pear_exception:/usr/home/wiki/vendor/pear/console_getopt:/usr/home/wiki/vendor/pear/pear-core-minimal/src:/usr/home/wiki/vendor/pear/mail_mime:/usr/home/wiki/vendor/pear/mail_mime-decode:/usr/home/wiki/vendor/pear/net_socket:/usr/home/wiki/vendor/pear/net_smtp:/usr/home/wiki/vendor/pear/mail:.:/usr/local/lib/php') in /usr/home/wiki/extensions/GoogleMaps/GoogleMaps.php on line 21
+
* a
</pre>
+
* b
 +
* c
 +
* d
 +
* e
 +
* f
 +
* g
 +
* h
 +
{{Div col end}}</nowiki></pre>
  
Temporarily block:
+
''Result:''
# require_once( "extensions/GoogleMaps/GoogleMaps.php" );
 
  
Chmod images 777 and possibly all following are needed within:
+
{{Div col|colwidth=10em|rules=yes|gap=2em}}
 +
* a
 +
* b
 +
* c
 +
* d
 +
* e
 +
* f
 +
* g
 +
* h
 +
{{Div col end}}
  
<pre>
+
More at https://en.wikipedia.org/wiki/Template:Div_col
drwxrwxrwx    2 practice wheel        2 Jul 18 22:06 archive
+
 
drwxrwxrwx    2 practice wheel        2 Jul 18 22:06 lockdir
+
== HTML5video ==
drwxrwxrwx    2 practice wheel        2 Jul 18 22:44 temp
+
 
drwxrwxrwx  106 practice  wheel      106 Jul 18 22:46 thumb
+
Examples:
</pre>
+
 
 +
<HTML5video width="520" height="320" autoplay="false" loop="false">dragonfly</HTML5video>
 +
 
 +
<nowiki><HTML5video width="520" height="320" autoplay="false" loop="false">dragonfly</HTML5video></nowiki>
 +
 
 +
 
 +
<HTML5video type="youtube" width="400" height="300" autoplay="false">CBqevebIAME</HTML5video>
 +
 
 +
  <nowiki><HTML5video type="youtube" width="400" height="300" autoplay="false">CBqevebIAME</HTML5video></nowiki>
 +
 
 +
== RSS ==
 +
 
 +
An RSS feed can be included on a page by the following syntax:
 +
 
 +
  <nowiki><rss max=4 highlight="BBC">https://feeds.bbci.co.uk/news/rss.xml</rss></nowiki>
 +
 
 +
<rss max=4 highlight="BBC">https://feeds.bbci.co.uk/news/rss.xml</rss>
 +
 
 +
Google News feeds are a bit more tricky, as the summaries parts render HTML tags instead of descriptions. These descriptions can be removed by specifying a [[Template:Google-feed|Google-feed]] template in the RSS tag:
 +
 
 +
  <nowiki><rss max=4 template="Google-feed">https://news.google.com/news?pz=1&cf=all&ned=us&hl=en&as_scoring=r&as_maxm=20&q=allintitle%3A+munich&as_qdr=a&as_drrb=q&as_mind=26&as_minm=9&cf=all&as_maxd=26&output=rss</rss></nowiki>
 +
 
 +
<rss max=4 template="Google-feed">https://news.google.com/news?pz=1&cf=all&ned=us&hl=en&as_scoring=r&as_maxm=20&q=allintitle%3A+munich&as_qdr=a&as_drrb=q&as_mind=26&as_minm=9&cf=all&as_maxd=26&output=rss</rss>
 +
 
 +
For brevity the above feeds are set to maximum 4 articles by:
 +
 
 +
max=4
 +
 
 +
Configure as required. More details of configuration options at at https://www.mediawiki.org/wiki/Extension:RSS
 +
 
 +
<!-- not working with 'https'
 +
== Google Maps ==
 +
 
 +
Google Maps can be included on a page by clicking on the map symbol to generate the markup.
 +
 
 +
''Example:''
 +
 
 +
<pre><nowiki><googlemap version="0.9" lat="48.150514" lon="11.545212" zoom="18" style="width:90%">
 +
48.150321, 11.545233
 +
Map test!
 +
</googlemap></nowiki></pre>
 +
 
 +
''Result:''
 +
 
 +
<googlemap version="0.9" lat="48.150514" lon="11.545212" zoom="18" style="width:90%">
 +
48.150321, 11.545233
 +
Map test!
 +
</googlemap>
 +
 
 +
-->
 +
 
 +
 
 +
== Image galleries ==
 +
 
 +
Lightbox style galleries of uploaded images can easily be created using the '''<nowiki><gallery>...</gallery></nowiki>''' markup:
 +
 
 +
''Example:''
 +
 
 +
<pre><nowiki><gallery>
 +
20160610_124100_DSC04914.jpg
 +
20160610_124123_DSC04915.jpg
 +
20160610_124129_DSC04916.jpg
 +
20160610_124141_DSC04917.jpg
 +
20160610_124154_DSC04918.jpg
 +
20160610_124541_DSC04920.jpg
 +
</gallery></nowiki></pre>
 +
 
 +
''Result:''
 +
 
 +
<gallery>
 +
20160610_124100_DSC04914.jpg
 +
20160610_124123_DSC04915.jpg
 +
20160610_124129_DSC04916.jpg
 +
20160610_124141_DSC04917.jpg
 +
20160610_124154_DSC04918.jpg
 +
20160610_124541_DSC04920.jpg
 +
</gallery>
 +
 
 +
More photos at https://www.dr-pere.com/entopedia/Photos
 +
 
 +
== Random image ==
 +
 
 +
A random image from the images uploaded on this server can be generated by the markup:
 +
 
 +
<nowiki><randomimage float="left"></randomimage></nowiki>
 +
 
 +
''Result:''
 +
<randomimage float="left"></randomimage><br clear="all">For more configuration options and parameters, see https://www.mediawiki.org/wiki/Extension:RandomImage#Usage
 +
 
 +
== Additional information/links ==
 +
 
 +
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.

Latest revision as of 14:57, 17 July 2017

Contents

Language switching

An interwiki language switch link is created by prefixing a page title with en:, de: or fr: in a regular link and placing it anywhere within the markup of a content page, resulting in the language switch appearing in the left column of the page in Desktop view while at the end of the page in Mobile view.

Examples:

Multi column lists

The Div col markup is used to create a multi-column list that automatically adjust its number of columns depending on screen widths.

Example:

{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

Result:

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

More at https://en.wikipedia.org/wiki/Template:Div_col

HTML5video

Examples:

<HTML5video width="520" height="320" autoplay="false" loop="false">dragonfly</HTML5video>


<HTML5video type="youtube" width="400" height="300" autoplay="false">CBqevebIAME</HTML5video>

RSS

An RSS feed can be included on a page by the following syntax:

<rss max=4 highlight="BBC">https://feeds.bbci.co.uk/news/rss.xml</rss>
US confirms first aid trucks arrive via Gaza pier
It marks the opening of a new route for humanitarian aid to reach the stricken Gaza Strip.
2024-05-17 07:48:10
French police kill man trying to burn Rouen synagogue
The man was reportedly armed with a knife and an iron bar and was shot after approaching police officers.
2024-05-17 08:38:52
Water firm 'fallen short' on parasite outbreak
Susan Davy says South West Water will "not stop working until the situation has been resolved".
2024-05-17 07:49:46
Ukraine's defence lines stretched as Russian troops advance
The BBC's Jonathan Beale joins Ukrainian forces in Kharkiv as they try to shore up a weakened frontline.
2024-05-17 04:59:01


Google News feeds are a bit more tricky, as the summaries parts render HTML tags instead of descriptions. These descriptions can be removed by specifying a Google-feed template in the RSS tag:

<rss max=4 template="Google-feed">https://news.google.com/news?pz=1&cf=all&ned=us&hl=en&as_scoring=r&as_maxm=20&q=allintitle%3A+munich&as_qdr=a&as_drrb=q&as_mind=26&as_minm=9&cf=all&as_maxd=26&output=rss</rss>
Giants to face Panthers in Munich, Germany, on Nov. 10, 2024 - Giants.com
2024-05-15 11:44:45
High End Munich 2024: The Post - Twittering Machines
2024-05-12 15:14:52
Lilium Begins Constructing Munich Certification Testing Facility - Aviation Week
2024-05-16 23:09:30
Munich Re Specialty NA deploys Kalepa’s underwriting platform to enhance risk analysis - Reinsurance News
2024-05-16 15:34:44


For brevity the above feeds are set to maximum 4 articles by:

max=4

Configure as required. More details of configuration options at at https://www.mediawiki.org/wiki/Extension:RSS


Image galleries

Lightbox style galleries of uploaded images can easily be created using the <gallery>...</gallery> markup:

Example:

<gallery>
20160610_124100_DSC04914.jpg
20160610_124123_DSC04915.jpg
20160610_124129_DSC04916.jpg
20160610_124141_DSC04917.jpg
20160610_124154_DSC04918.jpg
20160610_124541_DSC04920.jpg
</gallery>

Result:

More photos at https://www.dr-pere.com/entopedia/Photos

Random image

A random image from the images uploaded on this server can be generated by the markup:

<randomimage float="left"></randomimage>

Result:

Batch imported media


For more configuration options and parameters, see https://www.mediawiki.org/wiki/Extension:RandomImage#Usage

Additional information/links

Consult the User's Guide for information on using the wiki software.