<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AHighlight%2Fdoc</id>
	<title>Module:Highlight/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AHighlight%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Highlight/doc&amp;action=history"/>
	<updated>2026-04-10T18:20:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Highlight/doc&amp;diff=136476&amp;oldid=prev</id>
		<title>imported&gt;Wnt: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Highlight/doc&amp;diff=136476&amp;oldid=prev"/>
		<updated>2014-02-09T03:38:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&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|alpha}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;amp;#123;{#invoke:{{BASEPAGENAME}}|main|&amp;#039;&amp;#039;regex&amp;#039;&amp;#039;|&amp;#039;&amp;#039;page name&amp;#039;&amp;#039;|&amp;#039;&amp;#039;style&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;regex&amp;#039;&amp;#039; is a Lua pattern (a somewhat limited form of [[regular expression]] -- see [[mw:Extension:Scribunto/Lua_reference_manual#Patterns]]).  Note that quotes around the regex are &amp;#039;&amp;#039;not&amp;#039;&amp;#039; needed and captures should have no effect (however, you can use them to break up blocks of [ or { characters that interfere with the processing of the #invoke block).  Omitting the regex results in blank output.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;page&amp;#039;&amp;#039; is the name of the page to highlight.  However, it can be omitted, in which case the current page is used.  However, if the page name ends in &amp;quot;/highlight&amp;quot;, then that part is removed before the page is looked up.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;style&amp;#039;&amp;#039; is an optional parameter.  In addition to the default, it can presently be &amp;quot;yellow&amp;quot; for a classic yellow highlighter look, or &amp;quot;oval&amp;quot; for a bolder, oval-ish red outline.  The span style=&amp;quot;...&amp;quot; statements for accomplishing this are defined near the top of the module for your convenience in editing.&lt;br /&gt;
&lt;br /&gt;
* All of these parameters can be passed with names (regex = , page = , style =) if desired.&lt;br /&gt;
&lt;br /&gt;
* Therefore, a convenient way to use this function is to preview the text &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Highlight|main|&amp;#039;&amp;#039;regex&amp;#039;&amp;#039;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; at &amp;#039;&amp;#039;(your-page-name)&amp;#039;&amp;#039;/highlight to view the text of &amp;#039;&amp;#039;(your-page-name)&amp;#039;&amp;#039; with markup added.  Unless you&amp;#039;d like to share the marked-up text with others you shouldn&amp;#039;t Save the page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Wnt</name></author>
	</entry>
</feed>