Template:VersionChanges: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>This template provides a convenient way to create a link to a module's changes in a given version. In can be used as <code><nowiki>{{VersionChanges |module = qtbas...")
 
(change order of parameters; use urlencode to strip whitespace (and ensure viable links))
 
Line 1: Line 1:
<noinclude>This template provides a convenient way to create a link to a module's changes in a given version.
<noinclude>This template provides a convenient way to create a link to a module's changes in a given version.


In can be used as <code><nowiki>{{VersionChanges |module = qtbase |version = 5.8.0}}</nowiki></code>.
In can be used as <code><nowiki>{{VersionChanges |version = 5.8.0 |module = qtbase}}</nowiki></code>.


A shorthand is also provided for convenience, using positional rather than named parameters: <code><nowiki>{{VersionChanges | qtbase | 5.8.0}}</nowiki></code>.
A shorthand is also provided for convenience, using positional rather than named parameters: <code><nowiki>{{VersionChanges | 5.8.0 | qtbase}}</nowiki></code>.


In both cases, the result is a link like this: </noinclude>[http://code.qt.io/cgit/qt/{{{1|{{{module|qtbase}}}}}}.git/tree/dist/changes-{{{2|{{{version|5.8.0}}}}}}\?h=v{{{2|{{{version|5.8.0}}}}}} {{{1|{{{module|qtbase}}}}}}]
In both cases, the result is a link like this: </noinclude>[http://code.qt.io/cgit/qt/{{urlencode:{{{2|{{{module|qtbase}}}}}}}}.git/tree/dist/changes-{{urlencode:{{{1|{{{version|5.8.0}}}}}}}}\?h=v{{urlencode:{{{1|{{{version|5.8.0}}}}}}}} {{{2|{{{module|qtbase}}}}}}]

Latest revision as of 10:10, 2 May 2017

This template provides a convenient way to create a link to a module's changes in a given version.

In can be used as

<nowiki>{{VersionChanges |version = 5.8.0 |module = qtbase}}</nowiki>

. A shorthand is also provided for convenience, using positional rather than named parameters:

<nowiki>{{VersionChanges | 5.8.0 | qtbase}}</nowiki>

.

In both cases, the result is a link like this: qtbase