Talk:Tupolev Tu-144D/info: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
(One intermediate revision by one other user not shown)
Line 24: Line 24:


: [[User:Mdanil|Mdanil]] ([[User talk:Mdanil|talk]]) 08:24, 24 January 2017 (EST)
: [[User:Mdanil|Mdanil]] ([[User talk:Mdanil|talk]]) 08:24, 24 January 2017 (EST)
:: The zip file did work fine.  Here it is as you had it previously:
:: {{infobox aircraft
| name          = Tupolev Tu-144
| image          = Tu-144D-77117-EDDF.jpg
| type          = Airliner/Supersonic aircraft
| config        = Canard aircraft/Delta-wing aircraft
| propulsion    = Jet aircraft
| manufacturer  = Tupolev
| author1        = {{usr|mdanil|Michael Danilov}}
| fdm            = JSBSim
| fgname        = Tu-144D
| status-fdm    = 5
| status-systems = 5
| status-cockpit = 0
| status-model  = 3
| status        = Early production
| download      = {{gitlab zip file|user=mdanil|repo=Tu-144|full=1|tag=0.5.0}}
| development    = {{gitlab url|mdanil|Tu-144}}
| licence        = {{gitlab source|user=mdanil|repo=Tu-144|path=Doc/COPYING.TXT|text=Restricted}}
| navbar        = 1
| float          = none
}}
The URL produced by <code>{{obr}}[[Template:gitlab zip file|gitlab zip file]]{{!}}user=mdanil{{!}}repo=Tu-144{{!}}full=1{{!}}tag=0.5.0{{cbr}}</code> is https://gitlab.com/mdanil/Tu-144/repository/archive.zip?ref=0.5.0, which seems to be a valid download.  For the *.tar.gz snapshot file, this is only supported by GitLab.  SourceForge and GitHub only allow for ZIP snapshots.  And as nobody was using TAR snapshot links in the FG wiki, as far as I could tell, I never made that {{tl|gitlab tar file}} template.  If you really would like TAR snapshot instead, I can look at creating the template in the next days/weeks.
[[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 08:58, 24 January 2017 (EST)
If the TAR template is not too much work to maintain. On the other hand, ZIP already does the job. Thanks,
[[User:Mdanil|Mdanil]] ([[User talk:Mdanil|talk]]) 09:27, 24 January 2017 (EST)

Revision as of 14:27, 24 January 2017

Download parameter usage and the {{repo link}} template for TAR files

Hi! For the last edit where the download parameter for the {{infobox aircraft}} template usage changed from:

 {{gitlab zip file|user=mdanil|repo=Tu-144|full=1|tag=0.5.0}}

to:

 [https://gitlab.com/mdanil/Tu-144/repository/archive.tar.bz2?ref=0.5.0 Release]

this does not work as you cannot have the text "Release" here - you must use a pure URL rather than a Mediawiki link.

From the change, I gather that you would like a link to the TAR file rather than the ZIP file. For that I would recommend simply extending the set of {{repo link}} templates. You could create the {{gitlab tar file}} template by copying the contents of {{gitlab zip file}} and changing "*.zip" to "*.tar.gz". This is very easy, as these are subtemplates of {{repo link}}, and the change would be of benefit for everyone! Then you could add it to the list at {{repo link/doc related}}. Cheers!

Bugman (talk) 04:24, 24 January 2017 (EST)

How do you do,
The last edit was because I saw the template not working. Maybe I should have waited some time.
While I strongly prefer TAR files and expect them to be more widely used with free software, I would not mind changing to ZIP if it is more appropriate.
Thanks,
Mdanil (talk) 08:24, 24 January 2017 (EST)
The zip file did work fine. Here it is as you had it previously:
Tupolev Tu-144
Tu-144D-77117-EDDF.jpg
Type Airliner, Supersonic aircraft
Configuration Canard aircraft, Delta-wing aircraft
Propulsion Jet aircraft
Manufacturer Tupolev
Author(s) Michael Danilov
FDM JSBSim
--aircraft= Tu-144D
Status Early production
 FDM Stars-5.png
 Systems Stars-5.png
 Cockpit Stars-0.png
 Model Stars-3.png
Development
 Repository The development repository of the Tupolev Tu-144.
Download Download the Tupolev Tu-144 aircraft package for the current stable release (2020.3).
License Restricted
This aircraft is NOT available under the GNU GPL 2, the primary license of the FlightGear project. This means that parts cannot be reused in the official FlightGear repositories.

The URL produced by {{gitlab zip file|user=mdanil|repo=Tu-144|full=1|tag=0.5.0}} is https://gitlab.com/mdanil/Tu-144/repository/archive.zip?ref=0.5.0, which seems to be a valid download. For the *.tar.gz snapshot file, this is only supported by GitLab. SourceForge and GitHub only allow for ZIP snapshots. And as nobody was using TAR snapshot links in the FG wiki, as far as I could tell, I never made that {{gitlab tar file}} template. If you really would like TAR snapshot instead, I can look at creating the template in the next days/weeks.

Bugman (talk) 08:58, 24 January 2017 (EST)

If the TAR template is not too much work to maintain. On the other hand, ZIP already does the job. Thanks,

Mdanil (talk) 09:27, 24 January 2017 (EST)