﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikidot.com.au/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://wikidot.com.au/index.php?action=history&amp;feed=atom&amp;title=Module%3ADemo%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wikidot.com.au/index.php?title=Module:Demo/doc&amp;action=history"/>
	<updated>2026-04-20T14:00:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wikidot.com.au/index.php?title=Module:Demo/doc&amp;diff=2074&amp;oldid=prev</id>
		<title>Wikiweb: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wikidot.com.au/index.php?title=Module:Demo/doc&amp;diff=2074&amp;oldid=prev"/>
		<updated>2021-03-27T05:12:11Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:12, 27 March 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Wikiweb</name></author>
	</entry>
	<entry>
		<id>https://wikidot.com.au/index.php?title=Module:Demo/doc&amp;diff=2073&amp;oldid=prev</id>
		<title>Module:Demo&gt;Andrybak: Undid revision 1001143904 by Cupper52 (talk)</title>
		<link rel="alternate" type="text/html" href="https://wikidot.com.au/index.php?title=Module:Demo/doc&amp;diff=2073&amp;oldid=prev"/>
		<updated>2021-01-23T09:40:27Z</updated>

		<summary type="html">&lt;p&gt;Undid revision 1001143904 by &lt;a href=&quot;/wiki/Special:Contributions/Cupper52&quot; title=&quot;Special:Contributions/Cupper52&quot;&gt;Cupper52&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Cupper52&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Cupper52 (page does not exist)&quot;&gt;talk&lt;/a&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 [[Wikipedia: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}}|''main''}}&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}}|''inline''}}&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('Module:demo').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('Module:demo').get(frame, 'alternate_name')&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('Module:demo').get(frame)&lt;br /&gt;
  return '&amp;lt;Pretty html&amp;gt;&amp;lt;pre&amp;gt;' .. parts.source .. '&amp;lt;/pre&amp;gt;&amp;lt;more pretty html&amp;gt;' .. parts.output .. '&amp;lt;even more pretty html&amp;gt;'&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>Module:Demo&gt;Andrybak</name></author>
	</entry>
</feed>