<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://xn--jrnvgshistoria-5hbd.se/index.php?action=history&amp;feed=atom&amp;title=Modul%3ADemo%2Fdoc</id>
	<title>Modul:Demo/doc - Versionshistorik</title>
	<link rel="self" type="application/atom+xml" href="https://xn--jrnvgshistoria-5hbd.se/index.php?action=history&amp;feed=atom&amp;title=Modul%3ADemo%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Demo/doc&amp;action=history"/>
	<updated>2026-05-14T03:04:36Z</updated>
	<subtitle>Versionshistorik för denna sida på wikin</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Demo/doc&amp;diff=69691&amp;oldid=prev</id>
		<title>Jan Karlsson: 1 version importerades</title>
		<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Demo/doc&amp;diff=69691&amp;oldid=prev"/>
		<updated>2021-01-12T18:42:06Z</updated>

		<summary type="html">&lt;p&gt;1 version importerades&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;sv&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Äldre version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versionen från 12 januari 2021 kl. 18.42&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key hviqzheq_jarnvagshistoria22:diff::1.12:old-69690:rev-69691 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jan Karlsson</name></author>
	</entry>
	<entry>
		<id>https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Demo/doc&amp;diff=69690&amp;oldid=prev</id>
		<title>jarnvagsdata&gt;Zyxw: /* See also */ add link</title>
		<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Demo/doc&amp;diff=69690&amp;oldid=prev"/>
		<updated>2018-08-19T04:49:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; add link&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny sida&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>jarnvagsdata&gt;Zyxw</name></author>
	</entry>
</feed>