Actions

Difference between revisions of "RR Wiki Extensions"

From The RadioReference Wiki

(updated article with new 3.0 details)
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
The RadioReference Wiki has some custom extensions.  Many of these can be used to display dynamic data in the database of custom pages of information. They are currently as follows:
 
The RadioReference Wiki has some custom extensions.  Many of these can be used to display dynamic data in the database of custom pages of information. They are currently as follows:
 
+
== Converting from pre-3.0 tags to 3.0 tags ==
 
If your article is missing data, or you are editing an old article with frequency or talkgroup information, please see the [[Wiki Extensions Conversion Guide]] for the required coding changes
 
 
 
 
== Displaying Conventional Frequencies ==
 
== Displaying Conventional Frequencies ==
 
You can display conventional frequencies stored in the database with the following tag:
 
You can display conventional frequencies stored in the database with the following tag:
Line 13: Line 10:
 
  xxx = The Frequency Subcategory ID  
 
  xxx = The Frequency Subcategory ID  
  
To find the subcat ID, click on the page symbol with the small circle next to it, and the following results:  
+
To find the subcat ID, click on the left arrow, and the following results:  
 +
 
 +
[[image:Csid1.jpg]]
 +
 
 +
Click the "View Subcategory Details" button, and the following will result with the Unique ID.
  
[[image:Conventional.jpg]]
+
[[Image:Csid2.jpg]]
  
 
== Displaying Frequencies for a Trunked System ==
 
== Displaying Frequencies for a Trunked System ==
Line 29: Line 30:
 
To find the "sid" for a trunked system, look in the URL for each trunked system entry:
 
To find the "sid" for a trunked system, look in the URL for each trunked system entry:
  
[[image:Determine sid3.0.gif|normal|Determining Trunked System SID]]
+
[[image:Tgsite1.jpg|normal|Determining Trunked System SID]]
  
Next to the site number (shown circled on the left) is the site name. If there is more than one site, you must choose which site name you wish to display. In this case, click on '''simulcast'''
+
Next to the site number (shown circled on the left) is the site name. If there is more than one site, you must choose which site name you wish to display. In this case, click on '''Severy'''
  
[[image:Sitenumber30.gif|Finding the site number]]
+
[[image:Tgsite2.jpg|Finding the site number]]
 
<br>
 
<br>
 
Use the '''Unique DB Site ID''' as the second value for the tag.  
 
Use the '''Unique DB Site ID''' as the second value for the tag.  
  
[[image:Sitexample.gif|Get the Unique DB Site ID]]
 
 
<br>
 
<br>
 
So in this case, the correct site tag would read:<br>
 
So in this case, the correct site tag would read:<br>
 
<pre>
 
<pre>
<nowiki><site>187|5129</site></nowiki>
+
<nowiki><site>4390|8562</site></nowiki>
 
</pre>
 
</pre>
  
Line 56: Line 56:
  
 
The SID is found using the method above. This is the first value in the tag.<br>  
 
The SID is found using the method above. This is the first value in the tag.<br>  
To find the unique ID, go down to the desired talkgroups and point at the page symbol with a small circle next to it. The following display results:
+
To find the unique ID, go down to the desired talkgroups and point at the left arrow. The following display results:
  
[[image:Trunkedstep1.gif]]
+
[[image:Tgcatid1.jpg]]
  
 
Click on it, and the following image results. Use the '''Unique ID''' as the 2nd value in the tag.  
 
Click on it, and the following image results. Use the '''Unique ID''' as the 2nd value in the tag.  
  
[[image:Trunkestep2.gif]]
+
[[image:Tgcatid2.jpg]]
  
 
<br>
 
<br>
 
In this case, the complete tag would read:<br>
 
In this case, the complete tag would read:<br>
 
<pre>
 
<pre>
<nowiki><tg>187|1455</tg></nowiki>
+
<nowiki><tg>4390|10257</tg></nowiki>
 +
</pre>
 +
 
 +
<br>
 +
If you want to display all talkgroups for the system in one single table, use "All" as the Unique ID.  For example:<br>
 +
<pre>
 +
<nowiki><tg>4390|All</tg></nowiki>
 
</pre>
 
</pre>
  
 
==Displaying Recently Updated Frequencies and Talkgroups==
 
==Displaying Recently Updated Frequencies and Talkgroups==
''You've submitted changes to the database, they've been entered - why can't I see the changes on the Wiki?''
+
''You've submitted changes to the database, they've been entered - why can't I see the changes on the Wiki?''  
 +
 
 +
The reason is that you are getting your old page from the Wiki's page cache. The cache not only stores a local copy of the page, but also stores the last execution of any extensions. What is needed, therefore, is a way to flush the cache so that the extensions pull data from the database again. To accomplish this, install the Refreshpage template somewhere on the page (preferably at the end of the article, or the last call to the extensions). It only needs to show up '''once''' on the article; all extension calls on the page will be refreshed at the same time. It is written with the <nowiki><small></nowiki> tag so that the text does not overly distract the user from reading the rest of the article. The use of the Refreshpage template is '''strongly encouraged'''.
 +
 
 +
To install it, copy the code below, substituting the URL of the page being edited after the ‘’Pageurl=” statement. Remove the nowiki tags from either end of the statement;
  
The reason is that you are getting your old page from the Wiki's page cache. What is needed is to clear the cache, so the Wiki is forced to rebuild a new article, and the extensions will pull the updated information. To do this, add the statement ''?action=purge'' to the end of the URL, then press enter.
+
<nowiki>{{Refreshpage
 +
|Pageurl=Place the URL of the page you wish to refresh here}}</nowiki>
  
It's '''recommended''' that all articles that use the extensions to pull frequencies and talkgroups add a link at the bottom of the article for this purpose. Using the <nowiki><small></nowiki> tag will keep it out of the way of the rest of the details. For example<br>
+
If you are viewing the page from a redirected link (commonly from the Nationwide database listing), be sure to press the '''Page''' tab on the left to obtain the URL. Don't use the redirected URL.  
<br>
+
 
<nowiki>
+
This template will cause a blue ‘Refresh’ statement (in small print) to be generated. Pressing this will cause the page to be flushed from the wiki’s queue. The wiki will then get a new copy of the page, and the extensions will execute, pulling any new data into the article.
<small>[http://wiki.radioreference.com/index.php/Andrews_Air_Force_Base%2C_MD?action=purge Refresh] this page from the latest database entry</small>
 
</nowiki>
 
  
 
==Displaying EBay Search Results==
 
==Displaying EBay Search Results==
Line 88: Line 97:
 
This extension is helpful for displaying used equipment on many of the equipment pages.
 
This extension is helpful for displaying used equipment on many of the equipment pages.
  
[[Category:FAQ]]
+
[[Category:Database FAQ]]
 +
[[Category:Wiki Editing FAQ]]

Revision as of 17:52, 2 February 2016

The RadioReference Wiki has some custom extensions. Many of these can be used to display dynamic data in the database of custom pages of information. They are currently as follows:

Displaying Conventional Frequencies

You can display conventional frequencies stored in the database with the following tag:

<freqsubcat>xxx</freqsubcat>

Where:

xxx = The Frequency Subcategory ID 

To find the subcat ID, click on the left arrow, and the following results:

Csid1.jpg

Click the "View Subcategory Details" button, and the following will result with the Unique ID.

Csid2.jpg

Displaying Frequencies for a Trunked System

You can display the frequencies for a Trunked Radio System in the database with the following tag:

<site>xxx|sssss</site>

Where:

xxx = The Trunked Radio Database sid number 
sssss  = The system's Unique DB Site ID

To find the "sid" for a trunked system, look in the URL for each trunked system entry:

Determining Trunked System SID

Next to the site number (shown circled on the left) is the site name. If there is more than one site, you must choose which site name you wish to display. In this case, click on Severy

Finding the site number
Use the Unique DB Site ID as the second value for the tag.


So in this case, the correct site tag would read:

<site>4390|8562</site>

Displaying Talkgroups

You can display the talkgroups for a Trunked Radio System in the database with the following tag:

<tg>xxx|yyyyy</tg>

Where:

xxx = The Trunked Radio Database sid number
yyyyy  = The unique ID that's shown in the 2nd image below

The SID is found using the method above. This is the first value in the tag.
To find the unique ID, go down to the desired talkgroups and point at the left arrow. The following display results:

Tgcatid1.jpg

Click on it, and the following image results. Use the Unique ID as the 2nd value in the tag.

Tgcatid2.jpg


In this case, the complete tag would read:

<tg>4390|10257</tg>


If you want to display all talkgroups for the system in one single table, use "All" as the Unique ID. For example:

<tg>4390|All</tg>

Displaying Recently Updated Frequencies and Talkgroups

You've submitted changes to the database, they've been entered - why can't I see the changes on the Wiki?

The reason is that you are getting your old page from the Wiki's page cache. The cache not only stores a local copy of the page, but also stores the last execution of any extensions. What is needed, therefore, is a way to flush the cache so that the extensions pull data from the database again. To accomplish this, install the Refreshpage template somewhere on the page (preferably at the end of the article, or the last call to the extensions). It only needs to show up once on the article; all extension calls on the page will be refreshed at the same time. It is written with the <small> tag so that the text does not overly distract the user from reading the rest of the article. The use of the Refreshpage template is strongly encouraged.

To install it, copy the code below, substituting the URL of the page being edited after the ‘’Pageurl=” statement. Remove the nowiki tags from either end of the statement;

{{Refreshpage |Pageurl=Place the URL of the page you wish to refresh here}}

If you are viewing the page from a redirected link (commonly from the Nationwide database listing), be sure to press the Page tab on the left to obtain the URL. Don't use the redirected URL.

This template will cause a blue ‘Refresh’ statement (in small print) to be generated. Pressing this will cause the page to be flushed from the wiki’s queue. The wiki will then get a new copy of the page, and the extensions will execute, pulling any new data into the article.

Displaying EBay Search Results

You can display Ebay search results with the following tag:

<ebay>Your Search Here</ebay>

This extension is helpful for displaying used equipment on many of the equipment pages.