6,566
edits
(Redesign and large simplification of the GitLab URL and Mediawiki link text construction. If the 'user' or 'proj' parameters are not supplied, the base GitLab URL will be constructed, and the default text of "GitLab website" will be used.) |
No edit summary |
||
Line 32: | Line 32: | ||
| rss = | | rss = | ||
| #default = | | #default = | ||
ci/<!-- | ci/<!-- The commit, tag, or branch (defaulting to next). | ||
-->{{{commit|{{{branch|next}}}}}}/ | -->{{{commit|{{#if: {{{tag|}}} | ||
| {{{tag}}}/~ | |||
| {{{branch|next}}} | |||
}}}}}/ | |||
}}<!-- | }}<!-- | ||
-->{{#switch: {{{view|}}} <!-- The different views. --> | -->{{#switch: {{{view|}}} <!-- The different views. --> | ||
Line 69: | Line 72: | ||
| {{{user|{{{proj|flightgear}}}}}}/<!-- The user or project name. | | {{{user|{{{proj|flightgear}}}}}}/<!-- The user or project name. | ||
-->{{{repo|flightgear}}}<!-- The repository name. | -->{{{repo|flightgear}}}<!-- The repository name. | ||
-->{{#ifeq: {{{view|}}} | rss | <!-- The repository commit or branch (if view != rss). --> | -->{{#ifeq: {{{view|}}} | rss | <!-- The repository commit, tag, or branch (if view != rss). --> | ||
| /{{{commit|{{{branch|next}}}}}} | | /{{{commit|{{{tag|{{{branch|next}}}}}}}}} | ||
}} | }} | ||
}} | }} | ||
Line 85: | Line 88: | ||
| {{#if: {{{commit|}}} | | {{#if: {{{commit|}}} | ||
|<nowiki></nowiki> (commit {{{commit}}}) | |<nowiki></nowiki> (commit {{{commit}}}) | ||
| {{#if: {{{branch|}}} | | {{#if: {{{tag|}}} | ||
|<nowiki></nowiki> (tag {{{tag}}}) | |||
| {{#if: {{{branch|}}} | |||
|<nowiki></nowiki> (branch {{{branch}}}) | |||
}} | |||
}} | }} | ||
}} | }} |