<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://helpwiki.sharcnet.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=Wiki_tips_and_hints</id>
	<title>Wiki tips and hints - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://helpwiki.sharcnet.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=Wiki_tips_and_hints"/>
	<link rel="alternate" type="text/html" href="https://helpwiki.sharcnet.ca/wiki/index.php?title=Wiki_tips_and_hints&amp;action=history"/>
	<updated>2026-04-04T06:31:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://helpwiki.sharcnet.ca/wiki/index.php?title=Wiki_tips_and_hints&amp;diff=350&amp;oldid=prev</id>
		<title>Syam: Created page with &quot;This page is for tips and hints on using our wiki pages, things which are not trivial or generally known.    Please use &lt;nowiki&gt; &lt;nowiki&gt; wiki syntax &lt;/nowiki&gt; &lt;/nowiki&gt; to ac...&quot;</title>
		<link rel="alternate" type="text/html" href="https://helpwiki.sharcnet.ca/wiki/index.php?title=Wiki_tips_and_hints&amp;diff=350&amp;oldid=prev"/>
		<updated>2021-03-18T17:46:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This page is for tips and hints on using our wiki pages, things which are not trivial or generally known.    Please use &amp;lt;nowiki&amp;gt; &amp;lt;nowiki&amp;gt; wiki syntax &amp;lt;/nowiki&amp;gt; &amp;lt;/nowiki&amp;gt; to ac...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page is for tips and hints on using our wiki pages, things which are not trivial or generally known.  &lt;br /&gt;
&lt;br /&gt;
Please use &amp;lt;nowiki&amp;gt; &amp;lt;nowiki&amp;gt; wiki syntax &amp;lt;/nowiki&amp;gt; &amp;lt;/nowiki&amp;gt; to actually show the raw wikimedia syntax.&lt;br /&gt;
{{NeedsGraphics}}&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
&lt;br /&gt;
If you want to create text in a box like the one above that can be added to multiple pages, use this template example as a starting point.&lt;br /&gt;
&lt;br /&gt;
If you edit any page, the templates used are listed at the bottom.  There will be a link there to each template used.  For the template above, the link points to [[Template:NeedsGraphics]].  That is the page to be edited to change the content/appearance of the box.&lt;br /&gt;
&lt;br /&gt;
To make a new template, create the relevant page, say [[Template:SomethingNew]], edit it with the content you want and save, then include it in some page via &amp;lt;nowiki&amp;gt;{{SomethingNew}}&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The content of that template page is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{| cellpadding=5 style=&amp;quot;border:4px solid #4682B4&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#E0FFFF&amp;quot;&lt;br /&gt;
| Note: This software requires a graphical connection to SHARCNET. &amp;lt;br&amp;gt; Please consult our [[Remote Graphical Connections]] page for instructions.&lt;br /&gt;
|}&lt;br /&gt;
__TOC__&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case &amp;quot;#4682B4&amp;#039; is a color code.  The table with various color possibilities is [https://meta.wikimedia.org/wiki/Wiki_color_formatting_help here].&lt;br /&gt;
The &amp;lt;nowiki&amp;gt;__TOC__&amp;lt;/nowiki&amp;gt; directs the that the table of contents goes immediately below the template, which is useful for cases where you want the template at the very top of the page, above table of contents (otherwise, table of contents will be first)&lt;br /&gt;
&lt;br /&gt;
Useful templates:&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{Delete|obsolete}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{Template:NeedsGraphics}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{Template:Outdated}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get a full list of templates, click [https://www.sharcnet.ca/help/index.php?title=Special%3AAllPages&amp;amp;from=&amp;amp;to=&amp;amp;namespace=10 here].&lt;br /&gt;
&lt;br /&gt;
=== Transclusions ===&lt;br /&gt;
&lt;br /&gt;
It is possible to add the content from another page to the current page via transclusion, like this  &amp;lt;b&amp;gt; &amp;lt;nowiki&amp;gt; {{:Another Page}} &amp;lt;/nowiki&amp;gt; &amp;lt;/b&amp;gt; This is very useful for splitting large pages into more manageable chunks.  For an example, see our [[Knowledge Base]] page.&lt;br /&gt;
&lt;br /&gt;
WARNING: apparently if you make any changes on the lower level (transcluded) page, they only become visible from the top level if one makes a change to the top level page. It is sufficient to make this change inside invisible comments like this one: &amp;lt;nowiki&amp;gt;&amp;lt;!--Invisible comment--&amp;gt;&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Collapsible items ===&lt;br /&gt;
According to [http://www.mediawiki.org/wiki/Manual:Collapsible_elements this help page], collapsible module is in MediaWiki core by default as of MediaWiki 1.18 and higher. Add the class &amp;quot;mw-collapsible&amp;quot; to any element (div, table, list, anything) to trigger it.&lt;br /&gt;
&lt;br /&gt;
An example (cleck on &amp;quot;Edit&amp;quot; on this section to see how it is implemented):&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
! style=&amp;quot;background:#8AA8E5;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Bash&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;: &amp;lt;tt&amp;gt;single_case.run&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# The actual (serial) computation, for a single case No. $2 in the table $1.&lt;br /&gt;
&lt;br /&gt;
# Extracing and executing the $2-th line from file $1:&lt;br /&gt;
`sed -n ${2}p $1`&lt;br /&gt;
&lt;br /&gt;
# Returning with the exit status of the previous command:&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you use &amp;#039;&amp;#039;class=&amp;quot;mw-collapsible mw-collapsed&amp;quot;&amp;#039;&amp;#039;, the item will be collapsed initially; if simply &amp;#039;&amp;#039;class=&amp;quot;mw-collapsible&amp;quot;&amp;#039;&amp;#039;, it will be open initially.&lt;br /&gt;
&lt;br /&gt;
You can use &amp;#039;&amp;#039;div&amp;#039;&amp;#039; brackets to explicitely designate visible and not visible content in the collapsed state, like in this example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;width:800px&amp;quot;&amp;gt;&lt;br /&gt;
This text is not collapsible; but the next is collapsible and hidden by default:&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
*Blah blah&lt;br /&gt;
*Blah blah blah&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Extensions ===&lt;br /&gt;
To see which extensions are already installed on this wiki, see [[Special:Version]].  To see what Mediawiki extensions are available, check [http://www.mediawiki.org/wiki/Manual:Extensions].&lt;br /&gt;
&lt;br /&gt;
=== Tabs ===&lt;br /&gt;
&lt;br /&gt;
Implemented via [https://www.mediawiki.org/wiki/Extension:Header_Tabs Header Tabs extension]  &lt;br /&gt;
&lt;br /&gt;
Submit parallel job on:&lt;br /&gt;
= orca =&lt;br /&gt;
sqsub -q mpi -n 4 -o test.txt test.x&lt;br /&gt;
= monk =&lt;br /&gt;
sqsub -q mpi --gpp=1 -n 4 -o test.txt test.x&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can be used to easily present different ways of doing things on different systems.&lt;br /&gt;
&lt;br /&gt;
Wiki syntax for this is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html5&amp;quot;&amp;gt;&lt;br /&gt;
 = orca =&lt;br /&gt;
  sqsub -q mpi -n 4 -o test.txt test.x&lt;br /&gt;
 = monk =&lt;br /&gt;
  sqsub -q mpi --gpp=1 -n 4 -o test.txt test.x&lt;br /&gt;
 &amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE: Use of tabs currently makes Table of Contents box disappear, so it cannot be used on long pages where having a table of contents is essential. This behavior can be changed in the extension settings.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--checked2016--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Syam</name></author>
	</entry>
</feed>