Skip to main content
Jump to: navigation, search

Difference between revisions of "Template:ATLRepositoryLink"

(New page: <noinclude>Category:Templates Displays a link to a file in the ATL repository. {{Usage|<pre>{{ATLRepositoryLink|plugins/|ATL Plugins}}</pre>|2={{ATLRepositoryLink|plugins/|ATL Plugins...)
 
(added more context)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
{{Usage|<pre>{{ATLRepositoryLink|plugins/|ATL Plugins}}</pre>|2={{ATLRepositoryLink|plugins/|ATL Plugins}}}}
 
{{Usage|<pre>{{ATLRepositoryLink|plugins/|ATL Plugins}}</pre>|2={{ATLRepositoryLink|plugins/|ATL Plugins}}}}
  
Rationale: many links to ATL repository are still (as of creation of this template) to the old CVS repository. By introducing this template, we can hopefully avoid having to update every link the next time we change repository.
+
Rationale: many links to ATL repository are still (as of creation of this template) to the old CVS repository (or even to the previous CVS repository). By introducing this template, we can hopefully avoid having to update every link the next time we change repository.
 +
 
 +
Notes (may be useful to help converting links to old repositories into use of this template):
 +
* Had this template existed at the time ATL used CVS, the template would have looked like:
 +
<pre>[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org.eclipse.m2m.atl/{{{1}}}?root=Modeling_Project&view=markup {{{2}}}]</pre>
 +
* Similarly, at the time ATL was in GMT, the template would have looked like:
 +
<pre>[http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt/ATL/{{{1}}}?view=markup {{{2}}}]</pre>
 +
* The use of <pre>?view=markup</pre> would only have been valid for files, not folders.
 +
* Contents of the CVS repository of ATL in GMT has been moved to the *deprecated* folder. Therefore, to convert a link to that repository into a use of this template, one has to insert <pre>deprecated/</pre> at the beginning of the path.
  
 
</noinclude><includeonly>[http://git.eclipse.org/c/mmt/org.eclipse.atl.git/tree/{{{1}}} {{{2}}}]</includeonly>
 
</noinclude><includeonly>[http://git.eclipse.org/c/mmt/org.eclipse.atl.git/tree/{{{1}}} {{{2}}}]</includeonly>

Latest revision as of 04:34, 5 June 2013

Displays a link to a file in the ATL repository.

Markup Rendering
{{ATLRepositoryLink|plugins/|ATL Plugins}}

ATL Plugins


Rationale: many links to ATL repository are still (as of creation of this template) to the old CVS repository (or even to the previous CVS repository). By introducing this template, we can hopefully avoid having to update every link the next time we change repository.

Notes (may be useful to help converting links to old repositories into use of this template):

  • Had this template existed at the time ATL used CVS, the template would have looked like:
[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org.eclipse.m2m.atl/{{{1}}}?root=Modeling_Project&view=markup {{{2}}}]
  • Similarly, at the time ATL was in GMT, the template would have looked like:
[http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt/ATL/{{{1}}}?view=markup {{{2}}}]
  • The use of
    ?view=markup
    would only have been valid for files, not folders.
  • Contents of the CVS repository of ATL in GMT has been moved to the *deprecated* folder. Therefore, to convert a link to that repository into a use of this template, one has to insert
    deprecated/
    at the beginning of the path.


Back to the top