Template:Sourcelink: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
attempt to have {{sourcelink}} always link to current stable engine tag
Flozi (talk | contribs)
m usage
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
A small template to link to an engine source file on github.
A small template to link to an engine source file on github.


Usage: <nowiki>{{sourcelink|file=path/to/file.cpp}}</nowiki>


</noinclude>
</noinclude><includeonly>[https://github.com/spring/spring/blob/{{EngineVersion:Stable}}/{{{file|}}} {{{file|}}}] </includeonly>
<includeonly>
[https://github.com/spring/spring/blob/{{EngineVersion:Stable:Major}}.{{EngineVersion:Stable:Minor}}/{{{file|}}} {{{file|}}}] </includeonly>

Latest revision as of 23:59, 25 December 2017

A small template to link to an engine source file on github.

Usage: {{sourcelink|file=path/to/file.cpp}}