<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Module%3ADemo%2Fdoc</id>
	<title>Module:Demo/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Module%3ADemo%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Demo/doc&amp;action=history"/>
	<updated>2026-05-07T06:00:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Module:Demo/doc&amp;diff=5741&amp;oldid=prev</id>
		<title>Maxwells: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Demo/doc&amp;diff=5741&amp;oldid=prev"/>
		<updated>2022-06-11T21:01:24Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:01, 11 June 2022&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff::1.12:old-5740:rev-5741 --&gt;
&lt;/table&gt;</summary>
		<author><name>Maxwells</name></author>
	</entry>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Module:Demo/doc&amp;diff=5740&amp;oldid=prev</id>
		<title>en&gt;Patrick: /* Usage via templates */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Demo/doc&amp;diff=5740&amp;oldid=prev"/>
		<updated>2021-06-07T09:09:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage via templates&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating |release&amp;lt;!-- Values:  pre-alpha • alpha • beta • release • protected  --  If a rating not needed/relevant, delete this template call --&amp;gt;}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Stiles.casa Wiki:Wikidata]]) --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Usage via templates ===&lt;br /&gt;
This module supports {{t|Demo}}&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|&amp;#039;&amp;#039;main&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
and {{t|Demo inline}}&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|&amp;#039;&amp;#039;inline&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
The input must be wrapped in {{tag|nowiki}} tags or else it may be processed before the module can read it.&lt;br /&gt;
&lt;br /&gt;
=== Usage in a module ===&lt;br /&gt;
If you want to use this in another module (such as to make the output prettier), you can get values like so:&lt;br /&gt;
&amp;lt;pre&amp;gt;require(&amp;#039;Module:demo&amp;#039;).get(frame)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Function get() returns a table containing:&lt;br /&gt;
*&amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt; = the source code (without {{tag|pre}} wrappers, characters substituted with html entities)&lt;br /&gt;
*&amp;lt;code&amp;gt;output&amp;lt;/code&amp;gt; = the execution result of the source.&lt;br /&gt;
*&amp;lt;code&amp;gt;frame&amp;lt;/code&amp;gt; = the frame from which this template took the parameter.&lt;br /&gt;
&lt;br /&gt;
By default, get() takes the first parameter of frame. If the frame uses a different parameter name for the nowiki-wrapped source, then place that name (as a string) as the second parameter, like so &amp;lt;code&amp;gt;require(&amp;#039;Module:demo&amp;#039;).get(frame, &amp;#039;alternate_name&amp;#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;p = {}&lt;br /&gt;
&lt;br /&gt;
 function p.main(frame)&lt;br /&gt;
  local parts = require(&amp;#039;Module:demo&amp;#039;).get(frame)&lt;br /&gt;
  return &amp;#039;&amp;lt;Pretty html&amp;gt;&amp;lt;pre&amp;gt;&amp;#039; .. parts.source .. &amp;#039;&amp;lt;/pre&amp;gt;&amp;lt;more pretty html&amp;gt;&amp;#039; .. parts.output .. &amp;#039;&amp;lt;even more pretty html&amp;gt;&amp;#039;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
 return p&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Nowiki template demo]] which uses [[Module:Template test case]]&lt;br /&gt;
* [[Template:Automarkup]] which uses [[Module:Automarkup]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Patrick</name></author>
	</entry>
</feed>