Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Template:AM3RepositoryLink

Revision as of 06:32, 13 December 2013 by F.jouault.gmail.com (Talk | contribs) (added a parameter to the template for optional query string extension)

Displays a link to a file in the AM3 section of the MoDisco repository.

For folders:

Markup Rendering
{{AM3RepositoryLink|plugins/trunk/||AM3 Plugins}}

AM3 Plugins


For files:

Markup Rendering
{{AM3RepositoryLink|dsls/trunk/AM3/Metamodel/AM3.km3|&view=markup|AM3.km3}}

{{{3}}}


Rationale: many links to AM3 repository are still (as of creation of this template) to the old CVS repository. By introducing this template, we can simplify the correction of these links as well as 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 AM3 used CVS, the template would have looked like:
[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmt/{{{1}}}?root=Modeling_Project{{{2}}} {{{3}}}]
  • The use of
    view=markup
    is only valid for files, not folders.
  • An alternative that would not require the second parameter would be to directly point to subversion repository via HTTP, which would lead to a template looking like (note the absence of use of the second parameter):
[http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.modisco/incubation/trunk/am3/{{{1}}} {{{3}}}]


Back to the top