RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

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 10-11-2017, 12:51 PM
Member
  RadioReference Database Admininstrator
Database Admin
 
Join Date: Dec 2004
Location: Urbana, IL
Posts: 1,140
Question RR Wiki Extensions and extra carriage returns

I was using the RR Wiki Extension to include the TRS Name as a hyperlink to the system and then include the system details. The code is adding extra carriage returns after the system name (see attached screenshots).

Anybody know why? I used to include it as:
Code:
 [https://www.radioreference.com/apps/db/?sid=8815 T-Mobile Arena DMR Capacity Plus System]
and it does not add extra carriage returns but it does using the new {{DB|s|8815|T-Mobile Arena DMR Capacity Plus}} syntax.
Attached Images
  
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 10-12-2017, 2:33 PM
Spitfire8520's Avatar
Member
   
Join Date: Jun 2009
Location: Colorado
Posts: 1,509
Default

It appears that there has been recent addition of links to template documentation that contained extra returns that are not needed.

Incorrect, causing formatting issues:
Code:
[http://www.radioreference.com/apps/db/?{{{1}}}id={{{2}}} {{{3|View the corresponding database page for this article.}}}]


<noinclude>
==Template Documentation==
*Please navigate to [[:Template:DB/doc]] for documentation about this template.
</noinclude>
Corrected:
Code:
[http://www.radioreference.com/apps/db/?{{{1}}}id={{{2}}} {{{3|View the corresponding database page for this article.}}}]<noinclude>
==Template Documentation==
*Please navigate to [[:Template:DB/doc]] for documentation about this template.
</noinclude>
I am going through and correcting other templates that might also cause this issue.
__________________
Mile-High Spitfire
RadioShack Pro-106 RadioShack Pro-652 RTL-SDR
MNN-250
Reply With Quote
  #3 (permalink)  
Old 10-12-2017, 2:50 PM
Wiki Admin Emeritus
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jul 2002
Location: Bowie, Md.
Posts: 20,549
Default

The two are totally unrelated; the doc you are changing is for templates, and the extra spacing makes it easier to read; the extensions are completely different

Mike
__________________
links editor, Utility Monitoring Central
HF Forum moderator, RadioReference
Friends don't let friends buy Scancat Lite Plus!
Reply With Quote
  #4 (permalink)  
Old 10-12-2017, 3:15 PM
Spitfire8520's Avatar
Member
   
Join Date: Jun 2009
Location: Colorado
Posts: 1,509
Default

Quote:
Originally Posted by ka3jjz View Post
The two are totally unrelated; the doc you are changing is for templates, and the extra spacing makes it easier to read; the extensions are completely different

Mike
Not sure if this is directed at me, but the extra spacing outside the <noinclude> tag were being included in all articles that were using TemplateB. If the spacing were contained within the <noinclude> tag, such as it is in Template:Tracker NXDN, then there would not be an issue. I just chose to delete them, but they can be added back if that is what you want.

The article that was mentioned by the OP no longer has the extra returns after the changes were made.
__________________
Mile-High Spitfire
RadioShack Pro-106 RadioShack Pro-652 RTL-SDR
MNN-250
Reply With Quote
  #5 (permalink)  
Old 10-13-2017, 10:26 AM
Wiki Admin Emeritus
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jul 2002
Location: Bowie, Md.
Posts: 20,549
Default

To get back on track here from the slightly OT stuff, the extensions were coded by Lindsay, so it's likely he's the one that you should be asking, Cubn


Mike
__________________
links editor, Utility Monitoring Central
HF Forum moderator, RadioReference
Friends don't let friends buy Scancat Lite Plus!
Reply With Quote
Sponsored links
  #6 (permalink)  
Old 10-18-2017, 8:33 PM
Spitfire8520's Avatar
Member
   
Join Date: Jun 2009
Location: Colorado
Posts: 1,509
Default

I fail to see why my reply is consider OT since it directly addresses the problem (as described by cubn) and provides the solution. It was mistakenly thought to be a extension issue, but it is actually a template issue.

Editors modifying any template should aware that all return characters not intended to be included as part of the template should contained within the <noinclude> and not outside of it. It can (and did) mess up formatting for multiple articles that use these templates.

Correct usage:
Code:
(Template)<noinclude>

==Template Documentation==
</noinclude>
Incorrect usage:
Code:
(Template)
<noinclude>
==Template Documentation==
</noinclude>
I made another correction for Template:Thread. You can see the before and after screenshots below to see how it affected the Marine VHF Channels and TETRA articles. Note that neither article has been recently edited.

Before:

After:


Before:

After:
__________________
Mile-High Spitfire
RadioShack Pro-106 RadioShack Pro-652 RTL-SDR
MNN-250
Reply With Quote
  #7 (permalink)  
Old 10-19-2017, 8:18 AM
Wiki Admin Emeritus
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jul 2002
Location: Bowie, Md.
Posts: 20,549
Default

I think there's a misunderstanding here between the difference between a template and an extension.

These are the only extensions that the chief coded to pull data from the wiki; see the first post of this thread.

RR Wiki Extensions - The RadioReference Wiki

Everything else is a template, and are not extensions. So this is really OT, as the original topic specifically mentioned extensions, and not templates. Please read the topic of this thread.

Mike
__________________
links editor, Utility Monitoring Central
HF Forum moderator, RadioReference
Friends don't let friends buy Scancat Lite Plus!
Reply With Quote
  #8 (permalink)  
Old 10-19-2017, 4:27 PM
Spitfire8520's Avatar
Member
   
Join Date: Jun 2009
Location: Colorado
Posts: 1,509
Default

Quote:
Originally Posted by ka3jjz View Post
Everything else is a template, and are not extensions. So this is really OT, as the original topic specifically mentioned extensions, and not templates. Please read the topic of this thread.
Yes, the original topic specifically mentioned extensions, but the whole point of this topic is dealing with the "extra carriage returns" issue that is introduced by a template. The OP incorrectly used the term "extensions" when he was actually talking about templates.

It appears that the content of the original post identifying the problem is being completely ignored because of the semantics of the topic title. I point to the relevant quote from the original post.

Quote:
Originally Posted by cubn View Post
I used to include it as:
Code:
 [https://www.radioreference.com/apps/db/?sid=8815 T-Mobile Arena DMR Capacity Plus System]
and it does not add extra carriage returns but it does using the new {{DB|s|8815|T-Mobile Arena DMR Capacity Plus}} syntax.
The content of the original post specifically identifies the symptoms as being introduced when using the {{DB}} template, unless I am completely mistaken with my understanding of the existence of Template: DB. To claim it has nothing to do with templates is ignorant of what the original post was trying to point out because of the focus being placed on the incorrect usage of terminology.
__________________
Mile-High Spitfire
RadioShack Pro-106 RadioShack Pro-652 RTL-SDR
MNN-250

Last edited by Spitfire8520; 10-19-2017 at 4:41 PM.. Reason: Other thoughts.
Reply With Quote
Reply

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



All times are GMT -5. The time now is 1:14 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
All information here is Copyright 2012 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2015 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions