Difference between revisions of "Template:Repo link/doc commit"

From relax wiki
Jump to navigation Jump to search
(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.)
 
m (Fixes for the template {{repo}} parameter usage.)
Line 5: Line 5:
  
 
{{repo link/doc usage
 
{{repo link/doc usage
| template                    = {{{repo|MISSING}}} commit
+
| template                    = {{{label|MISSING}}} commit
 
| commit                      = 1
 
| commit                      = 1
 
| type_commit                = num
 
| type_commit                = num
Line 24: Line 24:
 
{{repo link/doc design sourceforge commit
 
{{repo link/doc design sourceforge commit
 
| label{{#if:{{{label|}}}||NULL}} = {{{label}}}
 
| label{{#if:{{{label|}}}||NULL}} = {{{label}}}
| proj                           = {{{proj}}}
+
| proj{{#if:{{{proj|}}}||NULL}}  = {{{proj}}}
 
| repo{{#if:{{{repo|}}}||NULL}}  = {{{repo}}}
 
| repo{{#if:{{{repo|}}}||NULL}}  = {{{repo}}}
 
| user                            = 0
 
| user                            = 0
Line 34: Line 34:
 
== Examples ==
 
== Examples ==
 
=== Auto-generated text ===
 
=== Auto-generated text ===
  {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg1commit|MISSING}}}{{cbr}}
+
  {{obr}}{{{label|MISSING}}} commit {{!}} {{{eg1commit|MISSING}}}{{cbr}}
  
{{{{{repo|MISSING}}} commit | {{{eg1commit|MISSING}}} }}
+
{{{{{label|MISSING}}} commit | {{{eg1commit|MISSING}}} }}
  
 
=== User supplied text ===
 
=== User supplied text ===
  {{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} text = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.
+
  {{{eg2intro|MISSING}}} {{obr}}{{{label|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} text = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.
  
 
{{{eg2intro|MISSING}}}
 
{{{eg2intro|MISSING}}}
{{{{{repo|MISSING}}} commit
+
{{{{{label|MISSING}}} commit
 
| {{{eg2commit|MISSING}}}
 
| {{{eg2commit|MISSING}}}
 
| text = {{{eg2text|MISSING}}}
 
| text = {{{eg2text|MISSING}}}
Line 49: Line 49:
  
 
=== Parameter alias ===
 
=== Parameter alias ===
  {{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} t = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.
+
  {{{eg2intro|MISSING}}} {{obr}}{{{label|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} t = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.
  
 
{{{eg2intro|MISSING}}}
 
{{{eg2intro|MISSING}}}
{{{{{repo|MISSING}}} commit
+
{{{{{label|MISSING}}} commit
 
| {{{eg2commit|MISSING}}}
 
| {{{eg2commit|MISSING}}}
 
| t = {{{eg2text|MISSING}}}
 
| t = {{{eg2text|MISSING}}}
Line 59: Line 59:
  
 
=== Numbered parameters ===
 
=== Numbered parameters ===
  {{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.
+
  {{{eg2intro|MISSING}}} {{obr}}{{{label|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} |  {{{eg2post}}} }}.
  
 
{{{eg2intro|MISSING}}}
 
{{{eg2intro|MISSING}}}
{{{{{repo|MISSING}}} commit
+
{{{{{label|MISSING}}} commit
 
| {{{eg2commit|MISSING}}}
 
| {{{eg2commit|MISSING}}}
 
| {{{eg2text|MISSING}}}
 
| {{{eg2text|MISSING}}}

Revision as of 12:39, 25 October 2017