Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Changes

Jump to: navigation, search

Wikipedia Link Mod

172 bytes added, 14:36, 6 December 2011
updated for TNG V9
| mod_summary = Adds links to Wikipedia for place name in the Place Search page
| mod_validation = Mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]] <br />in TNG 8.1.2
| download_link = for {{Tv90}}[[Media:wikipedia_link_v9.0.0.0.zip|wikipedia_link_v9.0.0.0.zip]]<hr />for {{Tv80}}[[Media: wikipedia_link_v8.1.0.zip| wikipedia_link_v8.1.0.zip]] for TNG V8<br hr />for {{Tv70}}[[Media: wikipedia_link_v1.1.zip| wikipedia_link_v1.1.zip]]
| mod_author = Luke Weerts<br />Ken Roy enhanced and created config file
| mod_url = [[Wikipedia Link Mod]] (This page)
| mod_support = [http://www.tngforum.us/ TNG Forums]
| mod_contact = [http://www.tngforum.us/ TNG Forums]
| mod_version = 9.0.0.0 for TNG V9<br />8.1.0 for TNG V8<br />1.1 for TNG V7
| min_TNG_ver = 7.0.0
| max_TNG_ver = 89.10.20
| TNG_file_list = placesearch.php
| related_mods = None
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.
 
== Advantages ==
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 backup of your TNG placesearch.php file.
* An installed current version of the [[Mod Manager]].
 
== Automated Install ==
# Download the appropriate zip file from the summary in the upper right hand corner
# Extract the zip file in your TNG '''admin/mod_folder''' in TNG V8 and '''mods''' folder in TNG V8and V9
# 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.
 
== 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.
 
=== 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 V8and V9
<pre>
$text[wikilinks] = "Wikipedia links for";
</pre>
 
=== Other languages ===
You will need to add similar text for your other languages.
 
== Visualization of this mod ==
|[[Image:Wikipedia_link_installed.jpg.jpg|500px|right]]
|}
 
== TNG User sites using this mod ==
[[Category:Mods for TNG v7]]
[[Category:Mods for TNG v8]]
[[Category:Mods for TNG v9]]
13,889
edits

Navigation menu