Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Template:AM3RepositoryLink"
(added a parameter to the template for optional query string extension) |
(fixed additional issue in template usage for files) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
For files: | For files: | ||
− | {{Usage|<pre>{{AM3RepositoryLink|dsls/trunk/AM3/Metamodel/AM3.km3|&view=markup|AM3.km3}}</pre>|2={{AM3RepositoryLink|dsls/trunk/AM3/Metamodel/AM3.km3|view=markup|AM3.km3}}}} | + | {{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. |
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 | |
---|---|---|
|
For files:
Markup | Rendering | |
---|---|---|
|
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}}}]