Account  |  Mobile  |  Help    
 
Home Database Live Audio Forums Wiki Classifieds Submit Info About

Go Back   The RadioReference.com Forums > Site Administration Forums > Wiki Forum


Wiki Forum Discussions regarding the RadioReference Wiki

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-2009, 05:53 AM
Wiki Admin
 
Database Admin
 
Join Date: Jul 2002
Location: Glen Burnie, Md.
Posts: 8,957
Default Some coding tips

As I'm in the process of doing a little spring cleaning, I've noticed that some bad (HTML based) habits have kinda raised their heads insofar as linking to images and other pages within the wiki have surfaced. So here's a little help in how to use a few of the Media wiki features correctly;
  • Please don't code the URL to link to another page within the wiki environment. This is called a bare link. Instead just code the page title in double brackets, like this: [[Montgomery County (PA)]] . There is a side benefit - if someone were to delete this article, links like the one above show up in red. In addition, if one wanted to move or rename an article, the wiki uses links like the one above to survey what article links to the one you want to move. Bare links are not checked - so if the site goes away, it ends up being a bad link, which obviously we want to avoid
  • The only time a URL should be used is when you are linking to another website. This includes linking to the database for a reference. If you want to use data from the database, you can use the wiki extensions. We have a pretty good article on the subject. Please don't hardcode data from the database - it means twice the work to maintain it
  • Links to external website should be shown as hyperlinks, not as bare links. To do this, simply enclose the URL in single brackets followed by the desired text, like this: [http://www.radioreference.com/apps/db/?sid=187 Anne Arundel County DB] where 'Anne Arundel County DB' will become the hyperlink
  • There are several ways to link to an image (say a JPEG). Once the file has been uploaded to the wiki, you can use the Image command to display it on the page (and it has several options - you can, for example, put the image to the right and display it in thumbnail mode to conserve space on the page) or the Media command (to hyperlink to an image that can't be directly viewed without an external application - such as a PDF file, which is very commonly found for maps and so forth. If the file is rather large, then there are times the Media command will be a better choice. Coding a URL for an image also has an unintended consequence - it lists the file as 'unused' when you know it really isn't
  • Use the Gallery verb if you have a series of images you wish to display. We have lots of examples of this in the wiki currently
  • Please be sure to allocate at least one category to an article. The list of categories is found at the bottom of the collaboration page. An article is automatically allocated to a category with the Category command, and is coded like this: [[Category:FTOs]] This example also brings up another important point - please use this category if your article has data on it that pertains to Fire Tone Outs (FTOs). Right now we have such a category, and once everything is moved, we will (hopefully) have an easy way for newcomers to find FTO information for their area
  • If you have a straight list of items (such as a list of fire stations) to display, make it easy on yourself - put a '*' (shift of 8) in the first column. The wiki will allocate a soft break at the end of each item - no need to put a '</br>' at the end of each one. I have found it's good practice to put a break at the end of a list to create a little space between the end of the list and the next item
  • Never sign changes you make or put a signature on a new page. The software maintains a list of all new articles and changes. On the main page, click on 'wiki changes' at the bottom right, and the change logs are displayed

As always if you have questions about how to use these and other commands, shoot me an email and I'll steer you straight (or at least try to, hi)

Thanks to everyone who has contributed so far! 73 Mike
__________________
links editor, Utility Monitoring Central
Wiki Administrator, HF Forum moderator, RadioReference
Friends don't let friends buy Scancat Lite Plus!

Last edited by ka3jjz; 06-03-2009 at 08:17 AM..
Reply With Quote
Sponsored links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
coding tip - links ka3jjz Wiki Forum 0 03-07-2009 06:18 PM
GRE FAQs and tips ka3jjz GRE Scanners 0 01-27-2009 12:26 PM
wiki coding hints and suggestions ka3jjz Wiki Forum 5 11-19-2008 10:48 AM
Police Software? matthewpd General Scanning Forum 41 08-24-2008 06:27 PM
BC246T - Soon to be new owner. Any tips? JustinD Uniden Scanners 2 04-24-2006 09:23 PM


All times are GMT -5. The time now is 09:29 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All information here is Copyright 2009 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2009 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions