Template:Repo link/doc: Difference between revisions

Jump to navigation Jump to search
Addition of base site URL examples for GitHub and GitLab, showing how not supplying a project or repository results in a nonsensical link or URL.
(Modified the Gitorious base site URL example to show both the Mediawiki link and URL text.)
(Addition of base site URL examples for GitHub and GitLab, showing how not supplying a project or repository results in a nonsensical link or URL.)
Line 660: Line 660:


=== GitHub examples ===
=== GitHub examples ===
==== Base site URL ====
This is for the base URL https://github.com.
{{obr}}repo link{{!}}site=gh{{cbr}}.
{{repo link|site=gh}}.
{{obr}}repo link{{!}}site=gh{{!}}full=1{{cbr}}.
{{repo link|site=gh|full=1}}.
==== User repository ====
==== User repository ====
  {{obr}}repo link
  {{obr}}repo link
Line 919: Line 930:


=== GitLab examples ===
=== GitLab examples ===
==== Base site URL ====
This is for the base URL https://gitlab.com.
{{obr}}repo link{{!}}site=gl{{cbr}}.
{{repo link|site=gl}}.
{{obr}}repo link{{!}}site=gl{{!}}full=1{{cbr}}.
{{repo link|site=gl|full=1}}.
==== The FlightGear Multiplayer server software ====
==== The FlightGear Multiplayer server software ====
This should produce <code><nowiki>git clone https://gitlab.com/fgms/fgms-0-x.git</nowiki></code>.
This should produce <code><nowiki>git clone https://gitlab.com/fgms/fgms-0-x.git</nowiki></code>.

Navigation menu