Open main menu

Changes

Template:Repo link/doc commit

2,571 bytes added, 12:33, 25 October 2017
Creation of the {{repo link/doc commit}} template. This is adapted from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Repo_link/doc_commit&oldid=94927.
{{Informative template|1=
__NOTOC__
== Goal ==
This template can be used when linking to summaries of commits for the [[{{{label|MISSING}}}]] {{{type|git}}} repository at SourceForge. It is a subtemplate of the master {{tl|repo link}} template designed to link to specific version control commits.

{{repo link/doc usage
| template = {{{repo|MISSING}}} commit
| commit = 1
| type_commit = num
| pos_commit = 1
| stat_commit = mandatory
| text = 1
| type_text = named
| short_text = t
| pos_text = 2
| sf = 1
| svn{{#if:{{{svn|}}}||NULL}} = {{{svn}}}
| git{{#if:{{{git|}}}||NULL}} = {{{git}}}
| break = 0
}}

{{repo link/doc design intro}}
{{repo link/doc design overview}}
{{repo link/doc design sourceforge commit
| label{{#if:{{{label|}}}||NULL}} = {{{label}}}
| proj = {{{proj}}}
| repo{{#if:{{{repo|}}}||NULL}} = {{{repo}}}
| user = 0
| git{{#if:{{{git|}}}||NULL}} = {{{git}}}
| svn{{#if:{{{svn|}}}||NULL}} = {{{svn}}}
}}
{{repo link/doc plain text}}

== Examples ==
=== Auto-generated text ===
{{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg1commit|MISSING}}}{{cbr}}

{{{{{repo|MISSING}}} commit | {{{eg1commit|MISSING}}} }}

=== User supplied text ===
{{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} text = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.

{{{eg2intro|MISSING}}}
{{{{{repo|MISSING}}} commit
| {{{eg2commit|MISSING}}}
| text = {{{eg2text|MISSING}}}
}}
{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.

=== Parameter alias ===
{{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} t = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.

{{{eg2intro|MISSING}}}
{{{{{repo|MISSING}}} commit
| {{{eg2commit|MISSING}}}
| t = {{{eg2text|MISSING}}}
}}
{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.

=== Numbered parameters ===
{{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.

{{{eg2intro|MISSING}}}
{{{{{repo|MISSING}}} commit
| {{{eg2commit|MISSING}}}
| {{{eg2text|MISSING}}}
}}
{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.

== Related templates ==

{{repo link/doc related}}

}}

[[Category:Repository link templates]]
Trusted, Bureaucrats
4,228

edits