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

Difference between revisions of "Template:AM3RepositoryLink"

(corrected template to point to AM3 root, and not plugins)
(fixed additional issue in template usage for files)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Displays a link to a file in the AM3 section of the [[MoDisco]] repository.
 
Displays a link to a file in the AM3 section of the [[MoDisco]] repository.
  
{{Usage|<pre>{{AM3RepositoryLink|plugins/trunk/|AM3 Plugins}}</pre>|2={{AM3RepositoryLink|plugins/trunk/|AM3 Plugins}}}}
+
For folders:
 +
 
 +
{{Usage|<pre>{{AM3RepositoryLink|plugins/trunk/||AM3 Plugins}}</pre>|2={{AM3RepositoryLink|plugins/trunk/||AM3 Plugins}}}}
 +
 
 +
For files:
 +
 
 +
{{Usage|<pre>{{AM3RepositoryLink|dsls/trunk/AM3/Metamodel/AM3.km3|2=&view=markup|3=AM3.km3}}</pre>|2={{AM3RepositoryLink|dsls/trunk/AM3/Metamodel/AM3.km3|2=&view=markup|3=AM3.km3}}}}
 +
 
 +
Note that 2= and 3= are mandatory if the second parameter includes an equal symbol ("=").
  
 
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.
 
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.
Line 8: Line 16:
 
Notes (may be useful to help converting links to old repositories into use of this template):
 
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:
 
* Had this template existed at the time AM3 used CVS, the template would have looked like:
<pre>[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmt/{{{1}}}?root=Modeling_Project&view=markup {{{2}}}]</pre>
+
<pre>[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmt/{{{1}}}?root=Modeling_Project{{{2}}} {{{3}}}]</pre>
* The use of <pre>?view=markup</pre> would only have been valid for files, not folders.
+
* The use of <pre>view=markup</pre> 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):
 +
<pre>[http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.modisco/incubation/trunk/am3/{{{1}}} {{{3}}}]</pre>
  
</noinclude><includeonly>[http://dev.eclipse.org/viewsvn/viewvc.cgi/incubation/trunk/am3/{{{1}}}?root=Modeling_MODISCO {{{2}}}]</includeonly>
+
</noinclude><includeonly>[http://dev.eclipse.org/viewsvn/viewvc.cgi/incubation/trunk/am3/{{{1}}}?root=Modeling_MODISCO{{{2}}} {{{3}}}]</includeonly>

Latest revision as of 06:44, 13 December 2013

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|2=&view=markup|3=AM3.km3}}

AM3.km3


Note that 2= and 3= are mandatory if the second parameter includes an equal symbol ("=").

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