Template:SVN: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[https://trac.railml.org/changeset/{{{1}}} <nowiki>[</nowiki>{{{1}}}<nowiki>]</nowiki>]</includeonly><noinclude>
<includeonly><!--
→{{{2}}} stutzen            -->{{#vardefine:stamm|{{#sub:{{{2|2}}}|0|1}}}}<!--
→In Projektnummer übersetzen-->{{#vardefine:projekt|{{#switch:{{#var:stamm}}
|2=4
|3=1
|#default={{fixme}}}}}}<!--
 
→Ausgabe
-->[https://development.railml.org/search?project_id={{#var:projekt}}&scope=commits&search=%40{{{1}}} <nowiki>[</nowiki>{{{1}}}<nowiki>]</nowiki>] ''([[Dev:versioning#Note on legacy SVN commits|Note on legacy SVN commits]])''</includeonly><noinclude>
==Usage==
==Usage==
This templateis suposed to standardize links to SVN Commits. It makes the links look uniform, and if the path to the tickets ever changes, the links can be changed here centrally.
This template is supposed make the legacy SVN commits findable. Whereever possible, link to the current gitlab commit numbers via [[Template:Commit]], as [[Template:SVN]] is only a workaround pointing to a search result.
===Parameters===
===Parameters===
The template has only one obligatory, unnamed argument: the number of the addressed commit
1: The legacy SVN commit number
2: The {{rml}} version (default: 2)
==Examples==
==Examples==
<pre>
<pre>
Line 13: Line 22:


[[category:markupTemplate]]
[[category:markupTemplate]]
{{interwiki}}
</noinclude>
</noinclude>

Latest revision as of 17:03, 13 December 2021

Usage

This template is supposed make the legacy SVN commits findable. Whereever possible, link to the current gitlab commit numbers via Template:Commit, as Template:SVN is only a workaround pointing to a search result.

Parameters

1: The legacy SVN commit number 2: The railML® version (default: 2)

Examples

{{SVN|335}}

delivers:

[335] (Note on legacy SVN commits)