<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-titleparenthesis.js</id>
	<title>MediaWiki:Gadget-titleparenthesis.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-titleparenthesis.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=MediaWiki:Gadget-titleparenthesis.js&amp;action=history"/>
	<updated>2026-06-04T15:59:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.geministation.com/index.php?title=MediaWiki:Gadget-titleparenthesis.js&amp;diff=2175&amp;oldid=prev</id>
		<title>Banri: Created page with &quot;$(function () {     var conf = mw.config.get([        &#039;wgNamespaceNumber&#039;,        &#039;wgTitle&#039;,        &#039;wgAction&#039;     ]);  	if (conf.wgNamespaceNumber !== 0 || conf.wgTitle.lastI...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=MediaWiki:Gadget-titleparenthesis.js&amp;diff=2175&amp;oldid=prev"/>
		<updated>2020-02-19T16:00:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;$(function () {     var conf = mw.config.get([        &amp;#039;wgNamespaceNumber&amp;#039;,        &amp;#039;wgTitle&amp;#039;,        &amp;#039;wgAction&amp;#039;     ]);  	if (conf.wgNamespaceNumber !== 0 || conf.wgTitle.lastI...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;$(function () {&lt;br /&gt;
    var conf = mw.config.get([&lt;br /&gt;
       &amp;#039;wgNamespaceNumber&amp;#039;,&lt;br /&gt;
       &amp;#039;wgTitle&amp;#039;,&lt;br /&gt;
       &amp;#039;wgAction&amp;#039;&lt;br /&gt;
    ]);&lt;br /&gt;
&lt;br /&gt;
	if (conf.wgNamespaceNumber !== 0 || conf.wgTitle.lastIndexOf(&amp;#039;(&amp;#039;) &amp;lt; 0 ||&lt;br /&gt;
		conf.wgAction !== &amp;#039;view&amp;#039; || $(&amp;#039;.no-parenthesis-style&amp;#039;).length) {&lt;br /&gt;
		return;&lt;br /&gt;
	} &lt;br /&gt;
	&lt;br /&gt;
	// use the title in the DOM so this respects DISPLAYTITLE&lt;br /&gt;
	var title = $(&amp;#039;h1#firstHeading&amp;#039;).text(),&lt;br /&gt;
		start = title.lastIndexOf(&amp;#039;(&amp;#039;),&lt;br /&gt;
		end = title.substring(start, title.length).lastIndexOf(&amp;#039;)&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
	// add offset here&lt;br /&gt;
	end += start + 1;&lt;br /&gt;
	&lt;br /&gt;
	$(&amp;#039;h1#firstHeading&amp;#039;)&lt;br /&gt;
		.empty()&lt;br /&gt;
		.append(&lt;br /&gt;
			title.substring(0, start),&lt;br /&gt;
			$(&amp;#039;&amp;lt;span&amp;gt;&amp;#039;)&lt;br /&gt;
				.addClass(&amp;#039;title-parenthesis&amp;#039;)&lt;br /&gt;
				.text(title.substring(start, end)),&lt;br /&gt;
			title.substring(end, title.length)&lt;br /&gt;
		);&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>Banri</name></author>
	</entry>
</feed>