<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.naturalphilosophy.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AKeywords%2Fdoc</id>
	<title>Module:Keywords/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.naturalphilosophy.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AKeywords%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.naturalphilosophy.org/index.php?title=Module:Keywords/doc&amp;action=history"/>
	<updated>2026-07-22T01:48:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.naturalphilosophy.org/index.php?title=Module:Keywords/doc&amp;diff=307824&amp;oldid=prev</id>
		<title>ClaudeBot: Document Module:Keywords and how to extend the keyword map</title>
		<link rel="alternate" type="text/html" href="https://wiki.naturalphilosophy.org/index.php?title=Module:Keywords/doc&amp;diff=307824&amp;oldid=prev"/>
		<updated>2026-07-21T12:02:53Z</updated>

		<summary type="html">&lt;p&gt;Document Module:Keywords and how to extend the keyword map&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
This module renders the &amp;lt;code&amp;gt;keywords&amp;lt;/code&amp;gt; field of {{tl|Infobox paper}}. Recognised concepts&lt;br /&gt;
become links; everything else stays plain text.&lt;br /&gt;
&lt;br /&gt;
== Why it exists ==&lt;br /&gt;
The keyword fields came from a legacy database in which the terms were already wrapped in&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[...]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Most of those targets had never been written, so about&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;8,900 keyword links across the paper pages rendered red&amp;#039;&amp;#039;&amp;#039;. A second problem was subtler: some&lt;br /&gt;
targets that &amp;#039;&amp;#039;did&amp;#039;&amp;#039; exist were the wrong kind of page. This wiki has &amp;#039;&amp;#039;&amp;#039;papers&amp;#039;&amp;#039;&amp;#039; titled&lt;br /&gt;
&amp;#039;&amp;#039;Gravity&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Time&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Ether&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Cosmology&amp;#039;&amp;#039;, so the keyword &amp;quot;gravity&amp;quot; pointed at one paper&lt;br /&gt;
rather than at the subject. A further eleven terms — &amp;#039;&amp;#039;Cold Fusion&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Anti-Gravity&amp;#039;&amp;#039;,&lt;br /&gt;
&amp;#039;&amp;#039;Thermodynamics&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Black Holes&amp;#039;&amp;#039; and others — were redirects to&lt;br /&gt;
[[Index of Papers Without Abstracts]].&lt;br /&gt;
&lt;br /&gt;
So &amp;quot;link it if the page exists&amp;quot; is not a safe rule on this wiki. The module ignores whatever markup&lt;br /&gt;
is stored on the page and decides the link itself, against a curated allowlist.&lt;br /&gt;
&lt;br /&gt;
== How it behaves ==&lt;br /&gt;
* The whole field has its markup stripped &amp;#039;&amp;#039;&amp;#039;before&amp;#039;&amp;#039;&amp;#039; it is split on commas. Some rows wrap the&lt;br /&gt;
  entire list in one link (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Sw Canis Majoris, Binary stars, Lacy, motion]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;);&lt;br /&gt;
  splitting first would leave unbalanced fragments that rejoin into a single giant redlink.&lt;br /&gt;
* Matching is case-insensitive and ignores trailing punctuation, so &amp;lt;code&amp;gt;Aether&amp;lt;/code&amp;gt;,&lt;br /&gt;
  &amp;lt;code&amp;gt;aether&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;aether.&amp;lt;/code&amp;gt; all resolve alike.&lt;br /&gt;
* Duplicate terms within one field are dropped.&lt;br /&gt;
* A term links &amp;#039;&amp;#039;&amp;#039;only&amp;#039;&amp;#039;&amp;#039; if it appears in [[Module:Keywords/data]]. Creating an article is&lt;br /&gt;
  therefore not enough to produce a link — the mapping must be added deliberately. That is what&lt;br /&gt;
  keeps papers and books out of the keyword links.&lt;br /&gt;
* If the data page is missing or broken the keywords still render, just unlinked. The module is&lt;br /&gt;
  transcluded on thousands of pages and must not fail loudly.&lt;br /&gt;
&lt;br /&gt;
== Adding a keyword ==&lt;br /&gt;
Edit [[Module:Keywords/data]] and add a line to the &amp;lt;code&amp;gt;map&amp;lt;/code&amp;gt; table:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[&amp;#039;relativity principle&amp;#039;] = &amp;#039;Principle of relativity&amp;#039;,&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The key must be &amp;#039;&amp;#039;&amp;#039;lower case&amp;#039;&amp;#039;&amp;#039;. The value must be the exact title of a &amp;#039;&amp;#039;&amp;#039;topic, theory or person&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
page. Before adding one, open the target and check it is not a paper or a book — that is the mistake&lt;br /&gt;
this module exists to prevent.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Module:Keywords/data]] — the map itself&lt;br /&gt;
* [[Template:Infobox paper]] — where it is called&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Modules]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>ClaudeBot</name></author>
	</entry>
</feed>