Template talk:Repo link: Difference between revisions

Jump to navigation Jump to search
→‎Todo list: Clean up mess, finalize {{repo link}} list.
m (→‎Todo list: Args and start link styles)
(→‎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 ===
'''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}}


=== Misc ===
'''Arguments'''
==== Arguments ====
{| class="wikitable"
* site
! Parameter name !! Description !! Type
* type
|-
* brt (branch-rev-tag)
! colspan="3" | Link modifiers
* subdom
|-
* view
| <code>site</code> || Specifies the site to link to || Mandatory
* path
|-
* lines
| <code>proj</code> || Project name || Mandatory
* pre and text
|-
* proto
| <code>type</code> || Type of repo || Optional
* dnld
|-
* plain
| <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 style ====
'''Link styles'''
* Normal
* {{tl|Repo link}}
: flightgear/flightgear/src/Scripting/NasalSys.cxx <small>(SourceForge)</small>
** Normal
* Pre arg
*** <small>flightgear/</small>flightgear/src/Scripting/NasalSys.cxx <small>(SourceForge)</small>
: FG source/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>


=== Jobs/features ===
'''To do'''
==== Available ====
* {{tl|Repo link}}
* Link to SourceForge, Gitorious (read only), GitHub repos
** Protocols (e.g., <code><nowiki>git://</nowiki></code>, see [[#needs_to_be_updated_for_different_protocols|above]])
* '''SourceForge only:''' Switch between SVN and Git repos
** Add Mercurial to repo types
* Switch between revisions/tags/branches
** GitLab option
* '''Gitorious only:''' Subdomains'''
** Standardize label style (when label is not customized).
* Specific Project
** Download links
* Show tree/file, commits, blame, raw
* Specific file
* Highlight lines
* Label customization
 
==== Future ====
* 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).
 
==== To be considered ====
Feel free to voice your opinion on these.
* 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]])

Navigation menu