<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nanoworldorder.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAutoLinker%2Fdoc</id>
	<title>Module:AutoLinker/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nanoworldorder.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAutoLinker%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://nanoworldorder.com/wiki/index.php?title=Module:AutoLinker/doc&amp;action=history"/>
	<updated>2026-09-22T13:00:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://nanoworldorder.com/wiki/index.php?title=Module:AutoLinker/doc&amp;diff=1475&amp;oldid=prev</id>
		<title>Geckopico at 07:32, 4 June 2026</title>
		<link rel="alternate" type="text/html" href="https://nanoworldorder.com/wiki/index.php?title=Module:AutoLinker/doc&amp;diff=1475&amp;oldid=prev"/>
		<updated>2026-06-04T07:32:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://nanoworldorder.com/wiki/index.php?title=Module:AutoLinker/doc&amp;amp;diff=1475&amp;amp;oldid=1474&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Geckopico</name></author>
	</entry>
	<entry>
		<id>https://nanoworldorder.com/wiki/index.php?title=Module:AutoLinker/doc&amp;diff=1474&amp;oldid=prev</id>
		<title>Geckopico: Created page with &quot;# Template:AutoLinker Documentation  This template provides a user-friendly interface for the Module:AutoLinker Lua module.  ## Installation Instructions  1. **Create the Lua module:**    - Go to your wiki&#039;s Module namespace: `Module:AutoLinker`    - Copy the complete Lua code (autolinker_module.lua) into the page    - Save  2. **Create the template wrapper:**    - Go to your wiki&#039;s Template namespace: `Template:AutoLinker`    - Copy the template code below into the page...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nanoworldorder.com/wiki/index.php?title=Module:AutoLinker/doc&amp;diff=1474&amp;oldid=prev"/>
		<updated>2026-06-04T07:29:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;# Template:AutoLinker Documentation  This template provides a user-friendly interface for the Module:AutoLinker Lua module.  ## Installation Instructions  1. **Create the Lua module:**    - Go to your wiki&amp;#039;s Module namespace: `Module:AutoLinker`    - Copy the complete Lua code (autolinker_module.lua) into the page    - Save  2. **Create the template wrapper:**    - Go to your wiki&amp;#039;s Template namespace: `Template:AutoLinker`    - Copy the template code below into the page...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Template:AutoLinker Documentation&lt;br /&gt;
&lt;br /&gt;
This template provides a user-friendly interface for the Module:AutoLinker Lua module.&lt;br /&gt;
&lt;br /&gt;
## Installation Instructions&lt;br /&gt;
&lt;br /&gt;
1. **Create the Lua module:**&lt;br /&gt;
   - Go to your wiki&amp;#039;s Module namespace: `Module:AutoLinker`&lt;br /&gt;
   - Copy the complete Lua code (autolinker_module.lua) into the page&lt;br /&gt;
   - Save&lt;br /&gt;
&lt;br /&gt;
2. **Create the template wrapper:**&lt;br /&gt;
   - Go to your wiki&amp;#039;s Template namespace: `Template:AutoLinker`&lt;br /&gt;
   - Copy the template code below into the page&lt;br /&gt;
   - Save&lt;br /&gt;
&lt;br /&gt;
3. **Customize the page list:**&lt;br /&gt;
   - Edit `Module:AutoLinker`&lt;br /&gt;
   - Modify the `p.getStaticPages()` function&lt;br /&gt;
   - Add/remove page titles that should be auto-linked&lt;br /&gt;
   - Save&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
## Template Code&lt;br /&gt;
&lt;br /&gt;
Copy this into `Template:AutoLinker`:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #ccc; padding: 15px; background-color: #f9f9f9; margin: 20px 0;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Auto-Linker Tool&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Paste text below to automatically link all matching page titles in your wiki.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 15px 0;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Input Text:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;textarea id=&amp;quot;autolinker-input&amp;quot; style=&amp;quot;width: 100%; height: 200px; font-family: monospace; padding: 8px; border: 1px solid #ccc;&amp;quot;&amp;gt;{{{input|}}}&amp;lt;/textarea&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 15px 0;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Output Text (linked):&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;textarea id=&amp;quot;autolinker-output&amp;quot; style=&amp;quot;width: 100%; height: 200px; font-family: monospace; padding: 8px; border: 1px solid #ccc; background-color: #fffacd;&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;autoLinkerProcess()&amp;quot;&amp;gt;Process Text&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;autoLinkerCopy()&amp;quot;&amp;gt;Copy Output&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;autoLinkerReset()&amp;quot;&amp;gt;Reset&amp;lt;/button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;font-size: 0.9em; color: #666; margin-top: 15px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt; This tool uses the static page list. For more control, use the invoke syntax directly:&lt;br /&gt;
&amp;lt;code style=&amp;quot;background: #f0f0f0; padding: 2px 4px;&amp;quot;&amp;gt;{{#invoke:AutoLinker|linkify|text=Your text here}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
function autoLinkerProcess() {&lt;br /&gt;
    var inputText = document.getElementById(&amp;#039;autolinker-input&amp;#039;).value;&lt;br /&gt;
    var outputText = document.getElementById(&amp;#039;autolinker-output&amp;#039;);&lt;br /&gt;
    &lt;br /&gt;
    // For now, show instructions&lt;br /&gt;
    outputText.value = &amp;#039;JavaScript method coming soon.\n\n&amp;#039; +&lt;br /&gt;
                      &amp;#039;For immediate results, use the wiki markup syntax below:\n\n&amp;#039; +&lt;br /&gt;
                      &amp;#039;{{#invoke:AutoLinker|linkify|text=&amp;#039; + inputText + &amp;#039;|mode=static}}\n\n&amp;#039; +&lt;br /&gt;
                      &amp;#039;Copy the above into your page, save it, and the linked text will appear.&amp;#039;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function autoLinkerCopy() {&lt;br /&gt;
    var output = document.getElementById(&amp;#039;autolinker-output&amp;#039;);&lt;br /&gt;
    output.select();&lt;br /&gt;
    document.execCommand(&amp;#039;copy&amp;#039;);&lt;br /&gt;
    alert(&amp;#039;Output copied to clipboard!&amp;#039;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function autoLinkerReset() {&lt;br /&gt;
    document.getElementById(&amp;#039;autolinker-input&amp;#039;).value = &amp;#039;&amp;#039;;&lt;br /&gt;
    document.getElementById(&amp;#039;autolinker-output&amp;#039;).value = &amp;#039;&amp;#039;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
## Usage Methods&lt;br /&gt;
&lt;br /&gt;
### Method 1: On a Wiki Page (Easiest)&lt;br /&gt;
&lt;br /&gt;
Create a special page (e.g., `Tools:AutoLinker`) and use this syntax:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
{{#invoke:AutoLinker|linkify|text=Your text goes here. This is about Targeted Individuals and Directed Energy Weapons.}}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
The page will display the linked text:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
Your text goes here. This is about [[Targeted Individuals|Targeted Individuals]] and [[Directed Energy Weapons|Directed Energy Weapons]].&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Copy and paste that result elsewhere.&lt;br /&gt;
&lt;br /&gt;
### Method 2: Using the Template&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
{{AutoLinker|input=Your text here}}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
This displays the form interface.&lt;br /&gt;
&lt;br /&gt;
### Method 3: In Your Article&lt;br /&gt;
&lt;br /&gt;
Embed it directly where you want auto-linking:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
== Linked Section ==&lt;br /&gt;
&lt;br /&gt;
{{#invoke:AutoLinker|linkify|text=Paste your article text here}}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
## Advanced Parameters&lt;br /&gt;
&lt;br /&gt;
When calling the module directly, you can use:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
{{#invoke:AutoLinker|linkify&lt;br /&gt;
|text=Your text&lt;br /&gt;
|mode=static&lt;br /&gt;
}}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
- `text`: The input text to process (required)&lt;br /&gt;
- `mode`: Where to get the page list&lt;br /&gt;
  - `static` = Use curated list only (fast, requires maintenance)&lt;br /&gt;
  - `dynamic` = Query wiki API (slower, more complete)&lt;br /&gt;
  - `auto` = Try dynamic first, fall back to static (default)&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
## Customizing the Page List&lt;br /&gt;
&lt;br /&gt;
To add or remove pages from auto-linking:&lt;br /&gt;
&lt;br /&gt;
1. Edit `Module:AutoLinker`&lt;br /&gt;
2. Find the `p.getStaticPages()` function&lt;br /&gt;
3. Add new pages to the return table:&lt;br /&gt;
&lt;br /&gt;
```lua&lt;br /&gt;
return {&lt;br /&gt;
    &amp;quot;Your Page Title&amp;quot;,&lt;br /&gt;
    &amp;quot;Another Page&amp;quot;,&lt;br /&gt;
    -- etc&lt;br /&gt;
}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
**Tips:**&lt;br /&gt;
- Add both singular and plural forms if needed&lt;br /&gt;
- Longer titles first (handled automatically)&lt;br /&gt;
- Use proper capitalization&lt;br /&gt;
- Test with `{{#invoke:AutoLinker|test|text=Sample text}}`&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
## Debugging&lt;br /&gt;
&lt;br /&gt;
To see the list of pages being matched:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
{{#invoke:AutoLinker|listPages}}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
To test with sample text:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
{{#invoke:AutoLinker|test|text=Targeted Individuals and COINTELPRO}}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
## Limitations &amp;amp; Notes&lt;br /&gt;
&lt;br /&gt;
- **Already linked text** is skipped (won&amp;#039;t double-link [[existing links]])&lt;br /&gt;
- **Maximum 500 matches per invocation** (safety limit, prevents performance issues)&lt;br /&gt;
- **Whole words only** (matches &amp;quot;Energy Weapons&amp;quot; but not inside other words)&lt;br /&gt;
- **Performance:** Static mode is fast; dynamic mode slower on large wikis&lt;br /&gt;
- **Case sensitivity:** Can be toggled in the module config&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
## Troubleshooting&lt;br /&gt;
&lt;br /&gt;
**Nothing is getting linked:**&lt;br /&gt;
- Check that page titles in the static list exactly match your wiki pages&lt;br /&gt;
- Verify the module is in the `Module:` namespace&lt;br /&gt;
- Test with `{{#invoke:AutoLinker|test}}`&lt;br /&gt;
&lt;br /&gt;
**Too many false matches:**&lt;br /&gt;
- Add longer, more specific titles to the list first&lt;br /&gt;
- Reduce the number of generic terms&lt;br /&gt;
- Use the `wholeWordsOnly` setting&lt;br /&gt;
&lt;br /&gt;
**Performance is slow:**&lt;br /&gt;
- Use `mode=static` instead of `mode=auto`&lt;br /&gt;
- Reduce the static page list&lt;br /&gt;
- Don&amp;#039;t process extremely long texts at once&lt;/div&gt;</summary>
		<author><name>Geckopico</name></author>
	</entry>
</feed>