User tips: Difference between revisions

From Freephile Wiki
initial draft
 
Specify padding-left for consistent visual in this page because Messagebox no longer has background images in the CSS. The template now inserts the images inline with the content.
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is a list of all the [[:Template:Messagebox]] invocations on this wiki.
In general, when providing a "tip" on this site, use the [[:Template:Messagebox]] to decorate your tip in a standardized format.


{{Messagebox
Here's a list of all the "tips" on this wiki.
 
[[File:Help-hint.svg|120px|link=]]{{Messagebox
| type = warning
| type = warning
| style = width:50%;
| style = width:50%;
| text = Please don't edit this page! If you use the template, your content will automagically appear here as well as in the original article.
| text = Do not edit this page (unless you are changing the DPL). To have your tip appear on this page, use the [[:Template:Messagebox]] template. Your content will "automagically" appear here as well as in the original article.
}}
 
{{#dpl:
| uses = Template:Messagebox
| ordermethod = title
| nottitlematch = Messagebox 
| include    = {Messagebox}:type:text
| table      = class="wikitable sortable",, Type, Tip
| tablerow =\n<span class="message-box message-%%" style="padding-left:8px;">%%\n</span>,%%
}}
 
The list above is generated using functionality of the [[mw:Extension:DynamicPageList3|DynamicPageList3 extension]].
 
== DPL Query ==
Here is the DPL query that generates the content. DPL3 comes with code for the [https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Labelled Section Transclusion] extension. So, if you are familiar with the LST extension, you get that "for free" with DPL.
 
;[https://dpl3.wikitide.org/wiki/Criteria_for_page_selection#uses uses]: is pretty straightforward.
;[https://dpl3.wikitide.org/wiki/Controlling_output_volume#include include]: Include pages, certain sections of articles, or even template parameters. We include the Messagebox template calls and the 'type' and 'text' parameters of that template into the output. It is important to understand how <code>table</code> and <code>tablerow</code> work if you want to output tabular data with <code>include</code>. In this dpl query, we use <code>table</code> to specify the table headers "Type" and "Tip" to label the content that comes from the 'type' and 'text' parameters selected by <code>include</code>. The <code>tablerow</code> specification allows us to precisely format the data represented by the '%%' token.
<pre>
{{#dpl:
| uses = Template:Messagebox
| ordermethod = title
| nottitlematch = Messagebox 
| include    = {Messagebox}:type:text
| table      = class="wikitable sortable",, Type, Tip
| tablerow =\n<span class="message-box message-%%" style="padding-left:8px;">%%\n</span>,%%
}}
}}
</pre>
== See Also ==
[[Admin tips]]
{{References}}


<DPL>
  uses=Template:Messagebox
  include={Messagebox}:text
</DPL>


This list is generated by the [[mw:Extension:DynamicPageList_(third-party)|DPL extension]].
[[Category:Wiki]]

Latest revision as of 09:31, 4 September 2025

In general, when providing a "tip" on this site, use the Template:Messagebox to decorate your tip in a standardized format.

Here's a list of all the "tips" on this wiki.

Do not edit this page (unless you are changing the DPL). To have your tip appear on this page, use the Template:Messagebox template. Your content will "automagically" appear here as well as in the original article.


Content page Type Tip
Apache

success

Because Debian-based systems use "mods-available" and "mods-enabled" through a convention of symbolic links which get included by wildcard in the main apache2.conf; and also because the default "load" configuration file for the module (ssl.conf.load) is already present on the system, you don't have to do anything more than the previous "a2enmod" command to get the module, and it's configuration file read into apache
Collections

failure

Note that the --clean-cache option of mw-serve is meant to be used from a cron job to clean up, NOT as a configuration option in your --daemonize script.
Eclipse

failure

to get Subclipse working on my Ubuntu Intrepid Ibex system, I had to install the Java bindings for Subversion (see http://subclipse.tigris.org/wiki/JavaHL) and also modify my eclipse.ini settings
Elasticsearch

success

Different indexes are created for the entire contents of the wiki. Each index is weighted differently. So, for example, "Lead-in" text is the wikitext between the top of the page and the first heading. Words found here are deemed more relevant to a users search query than the same word if found in the body text of an article. So, in this wiki, searching for the word "YAML" puts the Ansible article ahead of the Eclipse article in search results.
Elasticsearch

success

Content as well as all files uploaded into the system are indexed. For example, a search for "FAI" lists both the Cloning article as well as the PDF file And the file is not listed only because of the file name, but also because of the (indexed) file content. A search for "Ed Roman" will bring up the Enterprise Java Beans Design Patterns PDF file (see p. 13 where Ed Roman is mentioned.)
Elasticsearch

warning

Elasticsearch performs poorly when JVM starts swapping: you should ensure that it never swaps.

Set this property to true to lock the memory: bootstrap.mlockall: true (in /etc/elasticsearch/elasticsearch.yml)

Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set to the same value, and that the machine has enough memory to allocate for Elasticsearch, leaving enough memory for the operating system itself.

You should also make sure that the Elasticsearch process is allowed to lock the memory, eg. by using ulimit -l unlimited.

Git

normal

You can actually host your own private repository on any server that you have access to. To collaborate with your peers, export a bare repo [1] and use SSH keys. more

To host a public repo, go to http://github.com

Formatting

success

You can continue a bullet on a separate line by using a colon after the hash (bare colon is the indent operator if that helps you remember) So, something like this
# one
# two
#: two continued
#: two continued
# three
Subpages

success

So, the really easy way to display a list of subpages is to just stick {{Template:Subpages}} into your page.
Kubernetes

success

It's important to note right up front, before you dive into Kubernetes, that minikube is the tool for local Kubernetes.
Library

success

Note: for the bookmarklet to work, it all has to be on one line. The code above is presented on several lines for readability.
MediaWiki/Presentation

normal

wikEd is enabled sitewide on this wiki. Turn it on in your Preferences settings
MediaWiki/Presentation

restricted

You can remove the database configuration lines into it's own file and then include that file from LocalSettings so that you now can commit LocalSettings to your version control repository without revealing the db credentials.
MediaWiki/Search

success

You can search all linked wikis directly from the search box. Just enter the interwiki prefix, followed by a colon. wp: roses searches WikiPedia for "roses" and takes you there.
Merging

normal

This page talks more about diff than merge. There are currently no actual merge examples given.
Metadata

forbidden

This is not compatible with PHP Parsoid. Do not use this form of annotation
Software section

normal

This sort of list may be deprecated now that I know how to create dynamic page lists, and also use category displays on a page. Still, this serves as a "pages wanted" list, and so it will be around until it is replaced by something better.
Subpages

Tar

warning

Although I could not reproduce this behavior, I did once get my "sites" directory deleted. So, you do have backups and use version control right?
Messagebox/doc

success

your message content
Messagebox/doc

no type, uses default (normal)
Messagebox/doc

no type, uses default (normal)
Messagebox/doc

normal

Why be normal?
Messagebox/doc

normal

Why be normal?
Messagebox/doc

success

You won!
Messagebox/doc

success

You won!
Messagebox/doc

warning

Do not spit into the wind
Messagebox/doc

warning

Do not spit into the wind
Messagebox/doc

failure

Something went wrong.
Messagebox/doc

failure

Something went wrong.
Messagebox/doc

forbidden

You can't do that!
Messagebox/doc

forbidden

You can't do that!
Messagebox/doc

restricted

You must be a registered user to create or edit articles. Contact the WikiSysop for an account!
Messagebox/doc

restricted

You must be a registered user to create or edit articles. Contact the WikiSysop for an account!
More

warning

Experimental: This template is using the new image-linking functionality of MediaWiki v1.15
Subpages

Subpages/doc

You must pass an empty argument (the pipe character) in order to get the correct output due to a quirk with how template calls are given default arguments that would otherwise change the output of the parser function.
Using Leaflet to design a Disc Golf Course

success

This is an example of how to create maps in this wiki
Using keys

success

Visit http://sial.org/howto/openssh/publickey-auth/ or http://www.unixwiz.net/techtips/ssh-agent-forwarding.html for a better and more in-depth look at using SSH keys and SSH agent

The list above is generated using functionality of the DynamicPageList3 extension.

DPL Query[edit]

Here is the DPL query that generates the content. DPL3 comes with code for the Labelled Section Transclusion extension. So, if you are familiar with the LST extension, you get that "for free" with DPL.

uses
is pretty straightforward.
include
Include pages, certain sections of articles, or even template parameters. We include the Messagebox template calls and the 'type' and 'text' parameters of that template into the output. It is important to understand how table and tablerow work if you want to output tabular data with include. In this dpl query, we use table to specify the table headers "Type" and "Tip" to label the content that comes from the 'type' and 'text' parameters selected by include. The tablerow specification allows us to precisely format the data represented by the '%%' token.
{{#dpl:
 | uses = Template:Messagebox
 | ordermethod = title
 | nottitlematch = Messagebox  
 | include     = {Messagebox}:type:text
 | table      = class="wikitable sortable",, Type, Tip
 | tablerow =\n<span class="message-box message-%%" style="padding-left:8px;">%%\n</span>,%%
}}

See Also[edit]

Admin tips


References[edit]