<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.nmr-relax.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapsible_script</id>
	<title>Template:Collapsible script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nmr-relax.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapsible_script"/>
	<link rel="alternate" type="text/html" href="http://wiki.nmr-relax.com/wiki/index.php?title=Template:Collapsible_script&amp;action=history"/>
	<updated>2026-05-09T09:02:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.4</generator>
	<entry>
		<id>http://wiki.nmr-relax.com/wiki/index.php?title=Template:Collapsible_script&amp;diff=5965&amp;oldid=prev</id>
		<title>Bugman: Switched from &amp;#124; to the inbuilt {{!}} template.</title>
		<link rel="alternate" type="text/html" href="http://wiki.nmr-relax.com/wiki/index.php?title=Template:Collapsible_script&amp;diff=5965&amp;oldid=prev"/>
		<updated>2015-11-03T18:05:04Z</updated>

		<summary type="html">&lt;p&gt;Switched from | to the inbuilt {{!}} template.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:05, 3 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot; &gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;collapsible script&amp;#039;&amp;#039;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#124;&lt;/del&gt;&amp;#039;&amp;#039;type=&amp;#039;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#124;&lt;/del&gt;&amp;#039;&amp;#039;title=&amp;#039;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#124;&lt;/del&gt;&amp;#039;&amp;#039;intro=&amp;#039;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#124;&lt;/del&gt;&amp;#039;&amp;#039;lang=&amp;#039;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#124;&lt;/del&gt;&amp;#039;&amp;#039;script=&amp;#039;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#124;&lt;/del&gt;&amp;#039;&amp;#039;conc=&amp;#039;&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#124;&lt;/del&gt;&amp;#039;&amp;#039;bgcolor=&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;collapsible script&amp;#039;&amp;#039;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{!}}&lt;/ins&gt;&amp;#039;&amp;#039;type=&amp;#039;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{!}}&lt;/ins&gt;&amp;#039;&amp;#039;title=&amp;#039;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{!}}&lt;/ins&gt;&amp;#039;&amp;#039;intro=&amp;#039;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{!}}&lt;/ins&gt;&amp;#039;&amp;#039;lang=&amp;#039;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{!}}&lt;/ins&gt;&amp;#039;&amp;#039;script=&amp;#039;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{!}}&lt;/ins&gt;&amp;#039;&amp;#039;conc=&amp;#039;&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{!}}&lt;/ins&gt;&amp;#039;&amp;#039;bgcolor=&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; type:    The type of script, code, shell command, etc.  This text, which defaults to &amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;, will be bold and form the start of the heading.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; type:    The type of script, code, shell command, etc.  This text, which defaults to &amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;, will be bold and form the start of the heading.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bugman</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.nmr-relax.com/wiki/index.php?title=Template:Collapsible_script&amp;diff=5096&amp;oldid=prev</id>
		<title>Bugman: Created the {{collapsible script}} template based on my content at [http://wiki.flightgear.org/Template:Collapsible_script].</title>
		<link rel="alternate" type="text/html" href="http://wiki.nmr-relax.com/wiki/index.php?title=Template:Collapsible_script&amp;diff=5096&amp;oldid=prev"/>
		<updated>2015-10-17T09:49:33Z</updated>

		<summary type="html">&lt;p&gt;Created the {{collapsible script}} template based on my content at [http://wiki.flightgear.org/Template:Collapsible_script].&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavHead&amp;quot; style=&amp;quot;background-color: {{{bgcolor|transparent}}}; text-align: left; font-weight: normal;&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;{{{type|Code}}}:&amp;#039;&amp;#039;&amp;#039; {{{title|}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavContent&amp;quot; style=&amp;quot;display: none; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
{{#if: {{{intro|}}} | {{{intro}}} }}&lt;br /&gt;
{{#tag: syntaxhighlight |{{{script|rm -rf /}}}| lang=&amp;quot;{{{lang|text}}}&amp;quot;}}&lt;br /&gt;
{{#if: {{{conc|}}} | {{{conc}}} }}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Template info|1=&lt;br /&gt;
== Goal ==&lt;br /&gt;
This template allow for large scripts or code segments to be embedded into relax wiki articles without cluttering the article.  Introduction text, the script, code, or commands, and conclusion text will be embedded within a MediaWiki NavFrame, which starts off in a collapsed state.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;collapsible script&amp;#039;&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;type=&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;title=&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;intro=&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;lang=&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;script=&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;conc=&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;bgcolor=&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; type:    The type of script, code, shell command, etc.  This text, which defaults to &amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;, will be bold and form the start of the heading.&lt;br /&gt;
; title:   The optional title to show in the NavFrame header.  This follows the type and is of normal font weight (not bold).&lt;br /&gt;
; intro:   Any optional introductory text.&lt;br /&gt;
; lang:    The optional language of the script or code for syntax highlighting.  If not given, the language defaults to &amp;#039;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;#039; to avoid syntax highlighting.&lt;br /&gt;
; script:  The script, code block, or set of commands.  This will be placed within a set of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags.&lt;br /&gt;
; conc:    Any optional text to conclude with.&lt;br /&gt;
; bgcolor:  The optional background colour of the NavFrame header.  This defaults to transparent.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Minimal example ===&lt;br /&gt;
When the following is used within an article:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{collapsible script&lt;br /&gt;
| title  = The &amp;#039;&amp;#039;grep_python&amp;#039;&amp;#039; script.&lt;br /&gt;
| script = &lt;br /&gt;
#! /usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
# The args.&lt;br /&gt;
args = &amp;#039;&amp;#039;&lt;br /&gt;
for i in range(1, len(sys.argv)):&lt;br /&gt;
    args = &amp;quot;%s %s&amp;quot; % (args, sys.argv[i])&lt;br /&gt;
&lt;br /&gt;
os.system(&amp;quot;find -name &amp;#039;*.py&amp;#039; -exec grep --color=always -H %s &amp;#039;{}&amp;#039; \;&amp;quot; % args)&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result is:&lt;br /&gt;
&lt;br /&gt;
{{collapsible script&lt;br /&gt;
| title  = The &amp;#039;&amp;#039;grep_python&amp;#039;&amp;#039; script.&lt;br /&gt;
| script = &lt;br /&gt;
#! /usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
# The args.&lt;br /&gt;
args = &amp;#039;&amp;#039;&lt;br /&gt;
for i in range(1, len(sys.argv)):&lt;br /&gt;
    args = &amp;quot;%s %s&amp;quot; % (args, sys.argv[i])&lt;br /&gt;
&lt;br /&gt;
os.system(&amp;quot;find -name &amp;#039;*.py&amp;#039; -exec grep --color=always -H %s &amp;#039;{}&amp;#039; \;&amp;quot; % args)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Using all options ===&lt;br /&gt;
When the following is used within an article:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{collapsible script&lt;br /&gt;
| type   = Python script&lt;br /&gt;
| title  = The &amp;#039;&amp;#039;grep_python&amp;#039;&amp;#039; script.&lt;br /&gt;
| intro  = This is a script for grepping Python files.&lt;br /&gt;
| lang   = python&lt;br /&gt;
| script = &lt;br /&gt;
#! /usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
# The args.&lt;br /&gt;
args = &amp;#039;&amp;#039;&lt;br /&gt;
for i in range(1, len(sys.argv)):&lt;br /&gt;
    args = &amp;quot;%s %s&amp;quot; % (args, sys.argv[i])&lt;br /&gt;
&lt;br /&gt;
os.system(&amp;quot;find -name &amp;#039;*.py&amp;#039; -exec grep --color=always -H %s &amp;#039;{}&amp;#039; \;&amp;quot; % args)&lt;br /&gt;
| conc   = Note that this script is not efficient.&lt;br /&gt;
| bgcolor = #e0f2ff&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result is:&lt;br /&gt;
&lt;br /&gt;
{{collapsible script&lt;br /&gt;
| type   = Python script&lt;br /&gt;
| title  = The &amp;#039;&amp;#039;grep_python&amp;#039;&amp;#039; script.&lt;br /&gt;
| intro  = This is a script for grepping Python files.&lt;br /&gt;
| lang   = python&lt;br /&gt;
| script = &lt;br /&gt;
#! /usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# The args.&lt;br /&gt;
args = &amp;#039;&amp;#039;&lt;br /&gt;
for i in range(1, len(sys.argv)):&lt;br /&gt;
    args = &amp;quot;%s %s&amp;quot; % (args, sys.argv[i])&lt;br /&gt;
&lt;br /&gt;
os.system(&amp;quot;find -name &amp;#039;*.py&amp;#039; -exec grep --color=always -H %s &amp;#039;{}&amp;#039; \;&amp;quot; % args)&lt;br /&gt;
| conc   = Note that this script is not efficient.&lt;br /&gt;
| bgcolor = #e0f2ff&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Code Templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bugman</name></author>
		
	</entry>
</feed>