2,733
edits
Red Leader (talk | contribs) m (→Todo list: Args and start link styles) |
Red Leader (talk | contribs) (→Todo list: Clean up mess, finalize {{repo link}} list.) |
||
Line 44: | Line 44: | ||
A list to record changes to repository link templates. Feel free to contribute. | A list to record changes to repository link templates. Feel free to contribute. | ||
'''Templates:''' | |||
* Meta-template: {{tl|Repo link}} | * Meta-template: {{tl|Repo link}} | ||
* Sub-templates | * Sub-templates | ||
Line 52: | Line 52: | ||
** {{obr}}Aircraft repo{{cbr}} | ** {{obr}}Aircraft repo{{cbr}} | ||
== | '''Arguments''' | ||
{| class="wikitable" | |||
! Parameter name !! Description !! Type | |||
|- | |||
! colspan="3" | Link modifiers | |||
|- | |||
| <code>site</code> || Specifies the site to link to || Mandatory | |||
|- | |||
| <code>proj</code> || Project name || Mandatory | |||
|- | |||
| <code>type</code> || Type of repo || Optional | |||
|- | |||
| <code>brt</code> || Branch, revision, or tag || Optional | |||
|- | |||
| <code>path</code> || Path to file || Optional | |||
|- | |||
| <code>lines</code> || Line(s) to link to || Optional | |||
|- | |||
| <code>subdom</code> || Subdomain of gitorious.org || Optional | |||
|- | |||
| <code>view</code> || View || Optional | |||
|- | |||
| <code>proto</code> || Protocol || Optional | |||
|- | |||
! colspan="3" | Label modifiers | |||
|- | |||
| <code>text</code> || Text to use as label || Optional | |||
|- | |||
| <code>pre</code> || Text to replace project name || Optional | |||
|- | |||
| <code>link</code> || Return plain-text link || Optional | |||
|- | |||
| <code>plain</code> || No formatting on link || Optional | |||
|} | |||
'''Link styles''' | |||
* Normal | * {{tl|Repo link}} | ||
** Normal | |||
* Pre arg | *** <small>flightgear/</small>flightgear/src/Scripting/NasalSys.cxx <small>(SourceForge)</small> | ||
** No path | |||
*** <small>flightgear/</small>flightgear/master <small>(SourceForge)</small> | |||
** Download link | |||
*** <small>flightgear/</small>flightgear/archive/master.zip <small>(SourceForge)</small> | |||
** Pre arg | |||
*** FG source/src/Scripting/NasalSys.cxx <small>(SourceForge)</small> | |||
** Plain | |||
*** flightgear/flightgear/src/Scripting/NasalSys.cxx | |||
** Protocol | |||
*** RO (read-only) | |||
**** <nowiki>git://git.code.sf.net/p/flightgear/flightgear</nowiki> | |||
*** http | |||
**** <nowiki>http://git.code.sf.net/p/flightgear/flightgear</nowiki> | |||
'''To do''' | |||
* {{tl|Repo link}} | |||
** Protocols (e.g., <code><nowiki>git://</nowiki></code>, see [[#needs_to_be_updated_for_different_protocols|above]]) | |||
** Add Mercurial to repo types | |||
* | ** GitLab option | ||
* | ** Standardize label style (when label is not customized). | ||
** Download links | |||
* Protocols (e.g., <code><nowiki>git://</nowiki></code>, see [[#needs_to_be_updated_for_different_protocols|above]]) | |||
* Add Mercurial to repo types | |||
* GitLab option | |||
* Standardize label style (when label is not customized). | |||
* Download links | |||
'''Started by''' [[User:Red_Leader|<span style="color:red">'''''Red Leader'''''</span>]] ([[User_talk:Red_Leader|Talk]], [[Special:Contributions/Red_Leader|contribs]]) | '''Started by''' [[User:Red_Leader|<span style="color:red">'''''Red Leader'''''</span>]] ([[User_talk:Red_Leader|Talk]], [[Special:Contributions/Red_Leader|contribs]]) |