Difference between revisions of "Wikipedia Link Mod"

From TNG_Wiki
Jump to navigation Jump to search
(added French language files)
 
(68 intermediate revisions by 18 users not shown)
Line 1: Line 1:
 +
{{restricted}}
 
{{Languages}}
 
{{Languages}}
 
{{TNGmod
 
{{TNGmod
Line 4: Line 5:
 
| mod_summary    = Adds links to Wikipedia for place name in the Place Search page
 
| mod_summary    = Adds links to Wikipedia for place name in the Place Search page
 
| mod_validation  = Latest mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| mod_validation  = Latest mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
| download_link  = for {{Tv90}}[[Media:wikipedia_link_v9.0.0.0.zip|wikipedia_link_v9.0.0.0.zip]]<br />[[Media:wikipedia_link_v9.0.0.0_fr.zip|French language files]]<hr />for {{Tv80}}[[Media: wikipedia_link_v8.1.0.zip| wikipedia_link_v8.1.0.zip]] <hr />for {{Tv70}}[[Media: wikipedia_link_v1.1.zip| wikipedia_link_v1.1.zip]]
+
| mod_last_update = 30 Oct 2021
 +
| download_link  = for {{Tv130}}[https://www.royandboucher.com/ccount/click.php?id=632&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} wikipedia_link_v13.0.0.4.zip]<hr />for {{Tv120}}{{Tv1102}}[https://www.royandboucher.com/ccount/click.php?id=390&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} wikipedia_link_v11.0.2.3.zip] <br />supports renaming extensions folder<hr />for <span class="nowrap">{{Tv110}}{{Tv100}}{{Tv90}}</span>[https://www.royandboucher.com/ccount/click.php?id=381&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} wikipedia_link_v9.0.0.2.zip]<br />[https://www.royandboucher.com/ccount/click.php?id=253&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} French language files]<hr />for {{Tv80}}[[Media: wikipedia_link_v8.1.0.zip| wikipedia_link_v8.1.0.zip]] <hr />for {{Tv70}}[[Media: wikipedia_link_v1.1.zip| wikipedia_link_v1.1.zip]]
 +
| download_stats = [https://www.royandboucher.com/ccount/index.php?action=stats&id=144-145-231-253-381-390-632 View download stats]
 
| mod_author      = Luke Weerts<br />Ken Roy enhanced and created config file
 
| mod_author      = Luke Weerts<br />Ken Roy enhanced and created config file
 
| mod_url        = [[Wikipedia Link Mod]] (This page)
 
| mod_url        = [[Wikipedia Link Mod]] (This page)
| mod_support    = [http://www.tngforum.us/ TNG Forums]
+
| mod_support    = [http://tng.community/ TNG Community Forums]
| mod_contact    = [http://www.tngforum.us/ TNG Forums]
+
| mod_contact    = [http://tng.community/ TNG Community Forums]
| mod_version    = 9.0.0.0 for TNG V9<br />8.1.0 for TNG V8<br />1.1 for TNG V7
+
| mod_version    = 13.0.0.4 for TNG 13+<br />11.0.2.3 for TNG V11.0.2 and up<br />9.0.0.2 for TNG V9 and up<br />8.1.0 for TNG V8<br />1.1 for TNG V7
 
| min_TNG_ver    = 7.0.0
 
| min_TNG_ver    = 7.0.0
| max_TNG_ver    = 9.0.0
+
| max_TNG_ver    = 13+
 
| TNG_file_list  = placesearch.php  
 
| TNG_file_list  = placesearch.php  
 
| related_mods    = None
 
| related_mods    = None
| notes          = Please update your additional language cust_text.php files with translations based upon the [[Wikipedia_Link _Mod#Custom_Text_Additions|Custom Text Additions]] for this mod.
+
| notes          =  
 
}}
 
}}
{|align=right
+
<!-- French language file wikipedia_link_v9.0.0.0_fr.zip -->
|__TOC__
+
<!-- French language file http://tng.lythgoes.net/wiki/images/e/ec/Wikipedia_link_v9.0.0.1_french.zip  -->
|}
+
{| style="margin-right:0.5 em;" align="right"
 
+
| __TOC__
{|align=right
 
|__TOC__
 
 
|}
 
|}
  
Line 39: Line 40:
  
 
* where they may find the additional information on the segments of the place name.
 
* where they may find the additional information on the segments of the place name.
 
  
 
== Developer ==
 
== Developer ==
  
The mod was initially provided (for TNG V6) on the [http://www.tngforum.us/index.php?s=&showtopic=3921&view=findpost&p=18911 TNG Forum] by Luke Weerts.  
+
The mod was initially provided (for TNG V6) in the [http://tng.community/index.php?s=&showtopic=3921&#comment-18911 Adding Wikipedia links to 'Places'] post on the TNG Community Forum by Luke Weerts.  
  
 
Note that Luke initially replaced the Place Name header with a link to Wikipedia.  Ken Roy modified Luke's code to add the Wikipedia link information below the Place Name Header and use cust_text.php to provide the indication of a Wikipedia link.
 
Note that Luke initially replaced the Place Name header with a link to Wikipedia.  Ken Roy modified Luke's code to add the Wikipedia link information below the Place Name Header and use cust_text.php to provide the indication of a Wikipedia link.
 
   
 
   
 
 
==Requirements==
 
==Requirements==
  
Line 53: Line 52:
 
* A backup of your TNG placesearch.php file.
 
* A backup of your TNG placesearch.php file.
 
* An installed current version of the [[Mod Manager]].
 
* An installed current version of the [[Mod Manager]].
 
  
 
== Automated Install ==
 
== Automated Install ==
Line 63: Line 61:
 
'''Note''' that config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages.  The config file is also slightly different in that the Wikipedia links now all open in a separate window.
 
'''Note''' that config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages.  The config file is also slightly different in that the Wikipedia links now all open in a separate window.
  
 +
== Revision History ==
 +
 +
{| border="1" cellspacing="5" cellpadding="2" width="75%" class="wikitable"
 +
|-
 +
! Version
 +
! width="15%" | Date
 +
! Contents
 +
|- valign="top"
 +
| 13.0.0.4
 +
| 30 Oct 2021
 +
| Updated by Ken Roy to fix fatal error in PHP 8 and added other languages
 +
* French translation provided by Katryne and Michel Kirsch
 +
* Dutch translation provided by Rob Severijns
 +
* German translation by Rainer
 +
* Italian translation by Richard Falzini
 +
|- valign="top"
 +
| 11.0.2.3
 +
| 18 Sep 2016‎‎
 +
| Updated to TNG v11.0.2
 +
|- valign="top"
 +
| 11.0.0.2
 +
| 18 Mar 2016‎
 +
| updated to use $extspath variable for extensions folder
 +
|- valign="top"
 +
| 10.1.0.1
 +
| 13 Jan 2015‎
 +
|  Updated to TNG v10.1
 +
|}
  
 
== Custom Text Additions ==  
 
== Custom Text Additions ==  
  
'''Note''' that config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages.
+
'''Note''' that config file only includes the English language changes, except where noted, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages.
 
 
  
 
=== English/cust_text.php ===
 
=== English/cust_text.php ===
Line 76: Line 101:
 
$text[wikilinks] = "Wikipedia links for";
 
$text[wikilinks] = "Wikipedia links for";
 
</pre>
 
</pre>
 
  
 
=== Other languages ===
 
=== Other languages ===
  
 
If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course, for example  
 
If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course, for example  
 
  
 
In your French/cust_text.php in TNG V7, or languages/French/cust_text.php or languages/French-UTF8/cust_text.php in TNG V8, you would add
 
In your French/cust_text.php in TNG V7, or languages/French/cust_text.php or languages/French-UTF8/cust_text.php in TNG V8, you would add
Line 90: Line 113:
  
 
You will need to add similar text for your other languages.
 
You will need to add similar text for your other languages.
 
  
 
== Visualization of this mod ==
 
== Visualization of this mod ==
Line 102: Line 124:
  
 
=== With Mod Installed ===
 
=== With Mod Installed ===
 
 
{|
 
{|
 
|
 
|
Line 111: Line 132:
 
|}
 
|}
  
 
+
== Sites using this mod ==
== TNG User sites using this mod ==
+
If you download and install this mod, please add your TNG site to the table below
Please add TNG site that you have found that utilize this modification
 
  
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
Line 120: Line 140:
 
! User
 
! User
 
! Note
 
! Note
! Mod-Version/TNG-Version
+
! Mod-Version
 +
! TNG-Version
 
! User-language
 
! User-language
 
|-
 
|-
Line 126: Line 147:
 
| Luke Weerts
 
| Luke Weerts
 
| Mod developer
 
| Mod developer
| V8.1.6/8.1.1
+
| 8.1.6
 +
| 8.1.1
 
| DA, DE, EN, NL
 
| DA, DE, EN, NL
 
|-
 
|-
| [http://www.royandboucher.com/genealogy/placesearch.php?tree=&psearch=Joigny%2C+Yonne%2C+Bourgogne%2C+France Our Acadian, French Canadian, and Maine Ancestors]
+
| [https://www.royandboucher.com/genealogy/placesearch.php?tree=&psearch=Joigny%2C+Yonne%2C+Bourgogne%2C+France Our Acadian, French Canadian, and Maine Ancestors]
 
| [[User:Ken Roy|Ken Roy]]
 
| [[User:Ken Roy|Ken Roy]]
| updated to add Wikipedia links below header
+
| updated to add Wikipedia links below header. Updated to support extensions folder rename
| V8.1.0/8.1.2.1
+
| 13.0.0.4
 +
| {{Tv1404}}
 
| EN, FR
 
| EN, FR
 +
|-
 +
| [http://www.appelthaus.com/ AppeltHaus Genealogy]
 +
| [[User:InvernessHighlander|Lawrence Appelt]]
 +
| Not a Public Site.
 +
| 9.0.0.0
 +
| 10.0.0
 +
| EN
 +
|-
 +
| [http://www.arsenaultfamily.com/ Arsenault and Simpson Family Genealogy]
 +
| [[User:BobA|Bob Arsenault]]
 +
| not a public site
 +
| 9.0.0.0
 +
| 9.0.3
 +
| EN
 +
|-
 +
| [http://www.maarelweb.nl/stamboom/surnames100.php Van der Maarel Genealogy]
 +
| [[User:Edward|Edward van der Maarel]]
 +
| Public Site.
 +
| 9.0.0.0
 +
| 10.0.0
 +
| EN, NL
 +
|-
 +
| [http://genealogy.oceanwharf.com Hooley Family Links]
 +
| [[User:lastejas|Rick Hooley]]
 +
| Public/Private
 +
| [[User: lastejas|See Here]]
 +
| [[User: lastejas|See Here]]
 +
| EN
 +
|-
 +
| [https://www.bradyfamilytree.org/ Brady Family Tree in Western Australia]
 +
| [[User:bradyfamilytree|Darryl Brady]]
 +
| Public site
 +
| 9.0.0.1
 +
| 10.1.1
 +
| EN, DE
 +
|-
 +
| [https://www.brabantse-genealogie.nl Brabantse Genealogie]
 +
| [[User:Rob van Rij|Rob van Rij]]
 +
| Public Site
 +
| 11.0.2.3
 +
| 12.2
 +
| EN,NL
 +
|-
 +
| [http://pagesfromourpast.com Pages From Our Past]
 +
| [[User:alprunty|Allen Prunty]]
 +
| Not a public site
 +
| 11.0.2.3
 +
| 11.1.0
 +
| EN
 +
|-
 +
| [https://www.ourlife.us OurLife Family History - McMullen Clan]
 +
| [[User:Seanst|Sean Thompson]]
 +
| Not a public site.
 +
| 11.0.2.3
 +
| 11.1.0
 +
| EN
 +
|-
 +
| [http://www.potie.eu/genealogy Famille Potié et ses alliés]
 +
| [[User:Stillman|Christophe Potié]]
 +
| Not a public site.
 +
| 11.0.2.3
 +
| 11.1.0
 +
| EN, FR
 +
|-
 +
| [https://www.rgstrong-genes.com R G Strong Family Genealogy]
 +
| [[User:Rgstrong|Russ Strong]]
 +
| Public Site
 +
| 13.0.0.4
 +
| {{Tv1404}}
 +
| EN, FR, DE, NL
 +
|-
 +
| [https://www.OurFamilyLinks.org We are All Cousins - Quebec, French, Norwegian, New England, British monarchy]
 +
| [[User:Chuckfilteau|Chuck Filteau]]
 +
| Public site with a local mod to assist with my abbreviated place names in Quebec, Canada
 +
| 13.0.0.4
 +
| 12.1.0
 +
| EN
 +
|-
 +
| [https://bourdeaux.de Genealogische Datenbank]
 +
| [[User:JPB|JPB]]
 +
| Public site
 +
| [[User:JPB|see here]]
 +
| [[User:JPB|see here]]
 +
| DE, EN, FR
 +
|-
 +
| [https://www.lathro.pe Lathrope Family Genealogy]
 +
| [[User:4lexsharpe|S Sharpe]]
 +
| Public
 +
| 13.0.0.4
 +
| 13.0.4
 +
| EN
 +
|-
 +
| [https://mijnstamboom.net Genealogie Familie Smit - Kamp]
 +
| Bert Smit
 +
| Public
 +
| 13.0.4.5
 +
| 13.0.1
 +
| NL, EN, DE, DK
 +
|-
 +
| [https://www.josephoranholtz.com/ Joseph Oran Holtz Genealogy Pages]
 +
| [[User:Stores|Jim Holt]]
 +
| Private
 +
| [[User:Stores|See Here]]
 +
| [[User:Stores|See Here]]
 +
| EN
 +
|-
 +
|[https://harnettsheehanfamilies.com/ Harnett Sheehan Families]
 +
| Kathy Harnett Sheehan
 +
| Private
 +
| 13.0.0.4
 +
| 14.0.2
 +
| EN
 +
|-
 +
| [https://www.CarrFamilyTree.com Carr's Garage]
 +
| |[[User:Regis Carr|Regis Carr]]
 +
| Public & XAMPP
 +
| 13.0.0.4
 +
| 14.0.3
 +
| EN, DE, NO
 +
|-
 
|}
 
|}
  
 +
[[Category:Mods for TNG v13]]
 +
[[Category:Mods for TNG v12]]
 +
[[Category:Mods for TNG v11]]
 +
[[Category:Mods for TNG v10]]
 +
[[Category:Mods for TNG v9]]
 +
[[Category:Mods for TNG v8]]
 +
[[Category:Mods for TNG v7]]
 
[[Category:Mods for TNG v6]]
 
[[Category:Mods for TNG v6]]
[[Category:Mods for TNG v7]]
+
 
[[Category:Mods for TNG v8]]
+
[[Category:placesearch.php mods]]
[[Category:Mods for TNG v9]]
+
 
 +
[[Category: cust_text.php English mods]]

Latest revision as of 23:11, 4 March 2024

Restricted Downloads of Wikipedia Link Mod are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


Wikipedia Link Mod
Summary Adds links to Wikipedia for place name in the Place Search page
Validation Latest mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 30 Oct 2021
Download link for
TNG 13.0
wikipedia_link_v13.0.0.4.zip
for
TNG 12.0
TNG 11.0.2
wikipedia_link_v11.0.2.3.zip
supports renaming extensions folder
for
TNG 11.0
TNG 10.0
TNG 9.0
wikipedia_link_v9.0.0.2.zip
French language files
for
TNG 8.0
wikipedia_link_v8.1.0.zip
for
TNG 7.0
wikipedia_link_v1.1.zip
Download stats View download stats
Author(s) Luke Weerts
Ken Roy enhanced and created config file
Homepage Wikipedia Link Mod (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 13.0.0.4 for TNG 13+
11.0.2.3 for TNG V11.0.2 and up
9.0.0.2 for TNG V9 and up
8.1.0 for TNG V8
1.1 for TNG V7
Min TNG V 7.0.0
Max TNG V 13+
Files modified
placesearch.php
Related Mods
None
Notes


Purpose of the mod

This mod provides links to Wikipedia for the TNG Place name and for each of the individual segments of the place name in the Place Search page.

Note that the Wikipedia links are added to the page you get when you click the Find (spy glass) icon after a place name on the Individual page or on the Place search results page.

See the Mod Visualization below.

Advantages

The Wikipedia link mod allows your users to link to Wikipedia:

  • where they may find additional information on the place.
  • where they may find the additional information on the segments of the place name.

Developer

The mod was initially provided (for TNG V6) in the Adding Wikipedia links to 'Places' post on the TNG Community Forum by Luke Weerts.

Note that Luke initially replaced the Place Name header with a link to Wikipedia. Ken Roy modified Luke's code to add the Wikipedia link information below the Place Name Header and use cust_text.php to provide the indication of a Wikipedia link.

Requirements

  • A working TNG installation. The automated installation release was initially tested at TNG Version 7.1.0. Manual installation previously used on TNG 6 and 7.
  • A backup of your TNG placesearch.php file.
  • An installed current version of the Mod Manager.

Automated Install

  1. Download the appropriate zip file from the summary in the upper right hand corner
  2. Extract the zip file in your TNG admin/mod_folder in TNG V8 and mods folder in TNG V8 and V9
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the wikipedia_link.cfg.

Note that config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages. The config file is also slightly different in that the Wikipedia links now all open in a separate window.

Revision History

Version Date Contents
13.0.0.4 30 Oct 2021 Updated by Ken Roy to fix fatal error in PHP 8 and added other languages
  • French translation provided by Katryne and Michel Kirsch
  • Dutch translation provided by Rob Severijns
  • German translation by Rainer
  • Italian translation by Richard Falzini
11.0.2.3 18 Sep 2016‎‎ Updated to TNG v11.0.2
11.0.0.2 18 Mar 2016‎ updated to use $extspath variable for extensions folder
10.1.0.1 13 Jan 2015‎ Updated to TNG v10.1

Custom Text Additions

Note that config file only includes the English language changes, except where noted, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages.

English/cust_text.php

This mod adds the following text to your English/cust_text.php in TNG V7, or languages/English/cust_text.php or languages/English-UTF8/cust_text.php in TNG V8 and V9

// Added for Wikipedia Searchplace mod by Luke Weerts 
$text[wikilinks] = "Wikipedia links for";

Other languages

If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course, for example

In your French/cust_text.php in TNG V7, or languages/French/cust_text.php or languages/French-UTF8/cust_text.php in TNG V8, you would add

// Added for Wikipedia Searchplace mod by Luke Weerts 
$text[wikilinks] = "Wikipedia liens pour";

You will need to add similar text for your other languages.

Visualization of this mod

Without Mod

Without this mod, the Place Search page does not include any links to Wikipedia as shown in the image on the right.

Wikipedia link not installed.jpg

With Mod Installed

With the ShowTable Mod, the Place Search page does includes two different sets links to Wikipedia as shown in the image on the right:

  • a link that uses all parts of the place location name
  • separate links to each distinct component of the place location name, such as Joigny (city), Yonne (department), Bourgogne (Region), France (country) shown in the image
Wikipedia link installed.jpg.jpg

Sites using this mod

If you download and install this mod, please add your TNG site to the table below

URL User Note Mod-Version TNG-Version User-language
Luke Weert's Cousin Folk web site Luke Weerts Mod developer 8.1.6 8.1.1 DA, DE, EN, NL
Our Acadian, French Canadian, and Maine Ancestors Ken Roy updated to add Wikipedia links below header. Updated to support extensions folder rename 13.0.0.4
TNG 14.0.4
EN, FR
AppeltHaus Genealogy Lawrence Appelt Not a Public Site. 9.0.0.0 10.0.0 EN
Arsenault and Simpson Family Genealogy Bob Arsenault not a public site 9.0.0.0 9.0.3 EN
Van der Maarel Genealogy Edward van der Maarel Public Site. 9.0.0.0 10.0.0 EN, NL
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Brady Family Tree in Western Australia Darryl Brady Public site 9.0.0.1 10.1.1 EN, DE
Brabantse Genealogie Rob van Rij Public Site 11.0.2.3 12.2 EN,NL
Pages From Our Past Allen Prunty Not a public site 11.0.2.3 11.1.0 EN
OurLife Family History - McMullen Clan Sean Thompson Not a public site. 11.0.2.3 11.1.0 EN
Famille Potié et ses alliés Christophe Potié Not a public site. 11.0.2.3 11.1.0 EN, FR
R G Strong Family Genealogy Russ Strong Public Site 13.0.0.4
TNG 14.0.4
EN, FR, DE, NL
We are All Cousins - Quebec, French, Norwegian, New England, British monarchy Chuck Filteau Public site with a local mod to assist with my abbreviated place names in Quebec, Canada 13.0.0.4 12.1.0 EN
Genealogische Datenbank JPB Public site see here see here DE, EN, FR
Lathrope Family Genealogy S Sharpe Public 13.0.0.4 13.0.4 EN
Genealogie Familie Smit - Kamp Bert Smit Public 13.0.4.5 13.0.1 NL, EN, DE, DK
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Harnett Sheehan Families Kathy Harnett Sheehan Private 13.0.0.4 14.0.2 EN
Carr's Garage Regis Carr Public & XAMPP 13.0.0.4 14.0.3 EN, DE, NO