Template:Fgdata commit: Difference between revisions
m (typo) |
m (Switch from the temporary {{project infrastructure/code}} template to {{project infrastructure}} template with the mode set to 'abbrev'.) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{repo link | ||
| site = {{project infrastructure|abbrev}} | |||
| repo = fgdata | |||
| commit = {{{1|next}}} | |||
| view = commit | |||
| text = {{#if: {{{1|}}} | |||
| {{{text|{{{t|{{{2|FGData commit {{{1}}} }}} }}} }}} | |||
| {{error|Missing parameter '''commit'''|fgdata commit}} | |||
}} | |||
}}<noinclude> | }}<noinclude> | ||
== | {{repo link/doc commit | ||
| label = FGData | |||
| repo = fgdata | |||
| git = 1 | |||
| svn = 0 | |||
| eg1commit = 776a6552 | |||
| eg2intro = The moon now has a | |||
| eg2commit = 83cbd1ec | |||
| eg2text = more detailed texture | |||
}} | |||
{{repo link/doc commit | |||
| label = FGData | |||
== | | repo = fgdata | ||
| git = 1 | |||
| svn = 0 | |||
| eg1commit = 81607f734e13add9be02816ddaec305d05bc4e47 | |||
| eg2intro = Remove ATC chatter, as previously discussed: | |||
http://sourceforge.net/p/flightgear/mailman/message/32440533/ | |||
http://sourceforge.net/p/flightgear/mailman/message/32428167/ | |||
}} | |||
</noinclude> | </noinclude> |
Latest revision as of 16:20, 20 June 2019
{{fgdata commit}}: Missing parameter commit
Goal
This template can be used when linking to summaries of commits for the FGData git repository at SourceForge. It is a subtemplate of the master {{repo link}} template designed to link to specific version control commits.
Usage
{{fgdata commit | commit | text = }}
The parameters are:
Parameter | Description | Abbreviated parameter |
Numbered parameter |
Status |
---|---|---|---|---|
commit | The commit identifier (git hash). This defaults to HEAD. | 1 | mandatory | |
text | Text to display as the link label. | t | 2 | optional |
Design
In this section, the following notation will be used:
- Angular brackets + lower case text
<xyz>
- Template parameters.
- Angular brackets + upper case text
<XYZ>
- Template constructed text.
- Square brackets
[xyz]
- Optional text, only added if the parameter is set.
- Or symbol
|
- The value on the left, if present, otherwise the value on the right of the symbol.
Overview
The general design is:
<cmd> <opt> [<URL> <TEXT>] <post>
Here the square brackets do not denote optional text, but will instead produce a Mediawiki link. This can be modified by setting full = 1 to produce:
<cmd> <opt> <URL> <post>
Site: SourceForge
Project page
For a normal SourceForge project page, the base URL is respectively constructed as:
https://sourceforge.net/p/flightgear/fgdata/
SourceForge git <URL>
For the svn repository type, the <URL>
value will be:
https://sourceforge.net/p/flightgear/fgdata/ci/<commit>
SourceForge URL <TEXT>
The link text <TEXT>
, if the text parameter is not set, will simply be:
FGData commit <commit>
Or if the text parameter is supplied, the <TEXT>
is simply:
<text>
Plain text
To create a URL or link as plain text and avoid external links, simply use the {{#tag:tagname|content}}
magic word construct:
{{#tag:nowiki| {{repo link | full = 1 }} }}
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/
To use the <code> tags:
{{#tag:code|{{#tag:nowiki| {{repo link | full = 1 }} }}}}
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/
Examples
Auto-generated text
{{fgdata commit | 776a6552}}
User supplied text
The moon now has a {{fgdata commit | 83cbd1ec | text = more detailed texture}}.
The moon now has a more detailed texture .
Parameter alias
The moon now has a {{fgdata commit | 83cbd1ec | t = more detailed texture}}.
The moon now has a more detailed texture .
Numbered parameters
The moon now has a {{fgdata commit | 83cbd1ec | more detailed texture}}.
The moon now has a more detailed texture .
Related templates
|
Goal
This template can be used when linking to summaries of commits for the FGData git repository at SourceForge. It is a subtemplate of the master {{repo link}} template designed to link to specific version control commits.
Usage
{{fgdata commit | commit | text = }}
The parameters are:
Parameter | Description | Abbreviated parameter |
Numbered parameter |
Status |
---|---|---|---|---|
commit | The commit identifier (git hash). This defaults to HEAD. | 1 | mandatory | |
text | Text to display as the link label. | t | 2 | optional |
Design
In this section, the following notation will be used:
- Angular brackets + lower case text
<xyz>
- Template parameters.
- Angular brackets + upper case text
<XYZ>
- Template constructed text.
- Square brackets
[xyz]
- Optional text, only added if the parameter is set.
- Or symbol
|
- The value on the left, if present, otherwise the value on the right of the symbol.
Overview
The general design is:
<cmd> <opt> [<URL> <TEXT>] <post>
Here the square brackets do not denote optional text, but will instead produce a Mediawiki link. This can be modified by setting full = 1 to produce:
<cmd> <opt> <URL> <post>
Site: SourceForge
Project page
For a normal SourceForge project page, the base URL is respectively constructed as:
https://sourceforge.net/p/flightgear/fgdata/
SourceForge git <URL>
For the svn repository type, the <URL>
value will be:
https://sourceforge.net/p/flightgear/fgdata/ci/<commit>
SourceForge URL <TEXT>
The link text <TEXT>
, if the text parameter is not set, will simply be:
FGData commit <commit>
Or if the text parameter is supplied, the <TEXT>
is simply:
<text>
Plain text
To create a URL or link as plain text and avoid external links, simply use the {{#tag:tagname|content}}
magic word construct:
{{#tag:nowiki| {{repo link | full = 1 }} }}
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/
To use the <code> tags:
{{#tag:code|{{#tag:nowiki| {{repo link | full = 1 }} }}}}
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/
Examples
Auto-generated text
{{fgdata commit | 81607f734e13add9be02816ddaec305d05bc4e47}}
FGData commit 81607f734e13add9be02816ddaec305d05bc4e47
User supplied text
Remove ATC chatter, as previously discussed: http://sourceforge.net/p/flightgear/mailman/message/32440533/ http://sourceforge.net/p/flightgear/mailman/message/32428167/ {{fgdata commit | MISSING | text = MISSING}}.
Remove ATC chatter, as previously discussed:
http://sourceforge.net/p/flightgear/mailman/message/32440533/ http://sourceforge.net/p/flightgear/mailman/message/32428167/
MISSING .
Parameter alias
Remove ATC chatter, as previously discussed: http://sourceforge.net/p/flightgear/mailman/message/32440533/ http://sourceforge.net/p/flightgear/mailman/message/32428167/ {{fgdata commit | MISSING | t = MISSING}}.
Remove ATC chatter, as previously discussed:
http://sourceforge.net/p/flightgear/mailman/message/32440533/ http://sourceforge.net/p/flightgear/mailman/message/32428167/
MISSING .
Numbered parameters
Remove ATC chatter, as previously discussed: http://sourceforge.net/p/flightgear/mailman/message/32440533/ http://sourceforge.net/p/flightgear/mailman/message/32428167/ {{fgdata commit | MISSING | MISSING}}.
Remove ATC chatter, as previously discussed:
http://sourceforge.net/p/flightgear/mailman/message/32440533/ http://sourceforge.net/p/flightgear/mailman/message/32428167/
MISSING .
Related templates
|