<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Parser_Functions_and_Lua_Scripts</id>
	<title>Parser Functions and Lua Scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Parser_Functions_and_Lua_Scripts"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Parser_Functions_and_Lua_Scripts&amp;action=history"/>
	<updated>2026-05-14T01:00:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Parser_Functions_and_Lua_Scripts&amp;diff=26862&amp;oldid=prev</id>
		<title>Bernard Szlachta at 13:27, 10 July 2015</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Parser_Functions_and_Lua_Scripts&amp;diff=26862&amp;oldid=prev"/>
		<updated>2015-07-10T13:27:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|course_code_mwdev1}}&lt;br /&gt;
==Parser and Lua⌘==&lt;br /&gt;
*General MediaWiki does not allow for logic to be implemented&lt;br /&gt;
&lt;br /&gt;
*Parser functions were introduced to give MediaWiki some programming like functionality&lt;br /&gt;
&lt;br /&gt;
allowing you to use commands like if and exists.&lt;br /&gt;
&lt;br /&gt;
*You can define your own parser functions, and there is an extension with predefined functions that comes bundled with MediaWiki since version 1.17.&lt;br /&gt;
&lt;br /&gt;
*Unfortunately these are somewhat limited, and complex logic can become unreadable.&lt;br /&gt;
&lt;br /&gt;
*The scribunto extension is being developed, to allow use of programming languages in MediaWiki, currently only supporting the Lua Scripting language.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Parser functions⌘==&lt;br /&gt;
http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions&lt;br /&gt;
&lt;br /&gt;
{{#if: 1 | yes | no}}&lt;br /&gt;
&lt;br /&gt;
{{#expr: (1+4)/5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Lua⌘==&lt;br /&gt;
http://www.mediawiki.org/wiki/Extension:Scribunto&lt;br /&gt;
&lt;br /&gt;
Lua scripts are created in the Module namespace, Module:MyScript&lt;br /&gt;
&lt;br /&gt;
to invoke a script &lt;br /&gt;
&lt;br /&gt;
{{#invoke: MyScript | function | parameter1 | paremeter2 }}&lt;br /&gt;
&lt;br /&gt;
http://www.mediawiki.org/wiki/Lua/Tutorial&lt;br /&gt;
&lt;br /&gt;
==Exercise ⌘==&lt;br /&gt;
*Create a Template of your cheese table.&lt;br /&gt;
*include it on your cheese pages.&lt;br /&gt;
*Make sure the cheeses in the table link to there related page.&lt;/div&gt;</summary>
		<author><name>Bernard Szlachta</name></author>
	</entry>
</feed>