User tips: Difference between revisions
wordsmith and add ordermethod to sort the list by title |
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. |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
| include = {Messagebox}:type:text | | include = {Messagebox}:type:text | ||
| table = class="wikitable sortable",, Type, Tip | | table = class="wikitable sortable",, Type, Tip | ||
| tablerow =\n<span class="message-box message-%%">%%\n</span>,%% | | tablerow =\n<span class="message-box message-%%" style="padding-left:8px;">%%\n</span>,%% | ||
}} | }} | ||
Line 24: | Line 24: | ||
;[https://dpl3.wikitide.org/wiki/Criteria_for_page_selection#uses uses]: is pretty straightforward. | ;[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 | ;[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> | <pre> | ||
{{#dpl: | {{#dpl: | ||
Line 32: | Line 32: | ||
| include = {Messagebox}:type:text | | include = {Messagebox}:type:text | ||
| table = class="wikitable sortable",, Type, Tip | | table = class="wikitable sortable",, Type, Tip | ||
| tablerow =\n<span class="message-box message-%%">%%\n</span>,%% | | tablerow =\n<span class="message-box message-%%" style="padding-left:8px;">%%\n</span>,%% | ||
}} | }} | ||
</pre> | </pre> | ||
== See Also == | |||
[[Admin tips]] | |||
{{References}} | |||
[[Category:Wiki]] | [[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.
Content page | Type | Tip |
---|---|---|
Apache |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
Elasticsearch performs poorly when JVM starts swapping: you should ensure that it never swaps.
Set this property to true to lock the memory: Make sure that the You should also make sure that the Elasticsearch process is allowed to lock the memory, eg. by using |
Git |
|
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 |
|
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 |
|
So, the really easy way to display a list of subpages is to just stick {{Template:Subpages}} into your page. |
Kubernetes |
|
It's important to note right up front, before you dive into Kubernetes, that minikube is the tool for local Kubernetes. |
Library |
|
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 |
|
wikEd is enabled sitewide on this wiki. Turn it on in your Preferences settings |
MediaWiki/Presentation |
|
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 |
|
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 |
|
This page talks more about diff than merge. There are currently no actual merge examples given. |
Metadata |
|
This is not compatible with PHP Parsoid. Do not use this form of annotation |
Software section |
|
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 |
|
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 |
|
your message content |
Messagebox/doc |
|
no type, uses default (normal) |
Messagebox/doc |
|
no type, uses default (normal) |
Messagebox/doc |
|
Why be normal? |
Messagebox/doc |
|
Why be normal? |
Messagebox/doc |
|
You won! |
Messagebox/doc |
|
You won! |
Messagebox/doc |
|
Do not spit into the wind |
Messagebox/doc |
|
Do not spit into the wind |
Messagebox/doc |
|
Something went wrong. |
Messagebox/doc |
|
Something went wrong. |
Messagebox/doc |
|
You can't do that! |
Messagebox/doc |
|
You can't do that! |
Messagebox/doc |
|
You must be a registered user to create or edit articles. Contact the WikiSysop for an account! |
Messagebox/doc |
|
You must be a registered user to create or edit articles. Contact the WikiSysop for an account! |
More |
|
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 |
|
This is an example of how to create maps in this wiki |
Using keys |
|
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
andtablerow
work if you want to output tabular data withinclude
. In this dpl query, we usetable
to specify the table headers "Type" and "Tip" to label the content that comes from the 'type' and 'text' parameters selected byinclude
. Thetablerow
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]