User:KingAragorn/Applications: Difference between revisions

From Tolkien Gateway
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
There is no better piece of software that ''Wiki'' software that could be used to create a Tolkien encyclopedia. It's extremely flexible with all sorts of extensions available; however very few wikis have javascript applications ready to use. These applications can do anything Javascript and client-side scripting will allow; it's very dynamic and therefore can be very useful. Here I will list applications which each user can choose to use if they like; at the moment I have only created one, however reusing the code will make it extremely easy and quick for me to create a new one. Therefore if you have an idea for an application then please let me know on this page's [[User talk:KingAragorn/Applications|talk page]].
There is no better piece of software that ''Wiki'' software that could be used to create a Tolkien encyclopedia. It's extremely flexible with all sorts of extensions available; however very few wikis have javascript applications ready to use. These applications can do anything Javascript and client-side scripting will allow; it's very dynamic and therefore can be very useful. Here I will list applications which each user can choose to use if they like; at the moment I have only created one, however reusing the code will make it extremely easy and quick for me to create a new one. Therefore if you have an idea for an application then please let me know on this page's [[User talk:KingAragorn/Applications|talk page]].


''Note: Currently user javascript does not load when using the new '''Ithilien''', this is because this skin is still really in it's beta stage of release. However it does work on every other skin, hopefully this problem will be fixed soon!''
*Note: If you are using the site's default skin - ''Mithilien'' - then you'll have to copy the code to '''User:''YOURUSERNAME''/''Mithilien''.js''' .


= Applications =
= Applications =
Line 14: Line 14:
To Install this application, copy the following code into the page: '''User:''YOURUSERNAME''/''THESKINYOUUSE''.js''' .
To Install this application, copy the following code into the page: '''User:''YOURUSERNAME''/''THESKINYOUUSE''.js''' .


For example if I wanted to install this I would goto [[User:KingAragorn/cavendish.js|'''User:''KingAragorn''/''cavendish''.js''']] and paste the following code into that file. ''cavendish'' is the site's default skin.
For example if I wanted to install this I would go to [[User:KingAragorn/mithilien.js|'''User:''KingAragorn''/''mithilien''.js''']] and paste the following code into that file. ''Gateway to Ithilien'' is the site's default skin.
<pre>
<pre>
document.write(
document.write(
   '<script type="text/javascript" src="'
   '<script type="text/javascript" src="'
   + ' http://tolkiengateway.net/w/index.php?title=User:KingAragorn/spell.js'
   + ' http://tolkiengateway.net/w/index.php?title=User:KingAragorn/spell.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></'
  + 'script>' );
</pre>
== Insert Tengwar ==
==== Summary ====
This application will appear under the 'edit' textbox. It is a very basic way of inserting Tengwar into articles, however most words created with this tool will be inaccurate but at least it's something until the slightly more accurate TengTex extension is installed on this wiki.
==== Preview ====
[[Image:preview_tengwar.png]]
==== To Install ====
To Install this application, copy the following code into the page: '''User:''YOURUSERNAME''/''THESKINYOUUSE''.js''' .
For example if I wanted to install this I would goto [[User:KingAragorn/cavendish.js|'''User:''KingAragorn''/''cavendish''.js''']] and paste the following code into that file. ''cavendish'' is the site's default skin.
<pre>
document.write(
  '<script type="text/javascript" src="'
  + ' http://tolkiengateway.net/w/index.php?title=User:KingAragorn/tengwar.js'
   + '&action=raw&ctype=text/javascript&dontcountme=s"></'
   + '&action=raw&ctype=text/javascript&dontcountme=s"></'
   + 'script>' );
   + 'script>' );

Latest revision as of 17:00, 23 August 2011

There is no better piece of software that Wiki software that could be used to create a Tolkien encyclopedia. It's extremely flexible with all sorts of extensions available; however very few wikis have javascript applications ready to use. These applications can do anything Javascript and client-side scripting will allow; it's very dynamic and therefore can be very useful. Here I will list applications which each user can choose to use if they like; at the moment I have only created one, however reusing the code will make it extremely easy and quick for me to create a new one. Therefore if you have an idea for an application then please let me know on this page's talk page.

  • Note: If you are using the site's default skin - Mithilien - then you'll have to copy the code to User:YOURUSERNAME/Mithilien.js .

Applications

Spell Check

Summary

This application will appear within the regular buttons above the editing box. This application uses third party software, when you first click on the button it will prompt you to install the software. Once installed, clicking on the button will make a familiar user interface if there are any spelling mistakes within the article. As suggested here, it would be useful if we make available a spelling file which includes all Tolkien-related terms. Note: The software that this application uses only works on Microsoft Internet Explorer.

Preview

Preview spell.png

To Install

To Install this application, copy the following code into the page: User:YOURUSERNAME/THESKINYOUUSE.js .

For example if I wanted to install this I would go to User:KingAragorn/mithilien.js and paste the following code into that file. Gateway to Ithilien is the site's default skin.

document.write(
  '<script type="text/javascript" src="'
  + ' http://tolkiengateway.net/w/index.php?title=User:KingAragorn/spell.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></'
  + 'script>' );