Template:Repo/doc
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
Use this template to create a link to registered ebuild repositories on https://repos.gentoo.org.
Specify a parameter containing the name of the repository on https://repos.gentoo.org. If no parameter is specified, the template will link to GURU, Gentoo's community ebuild repository, by default.
Link and text can be personalized with the raw and text parameters to link to an overlay which has not been registered on repos.g.o.
Tip
The repository names from https://repos.gentoo.org are case-sensitive when used with this template.
The repository names from https://repos.gentoo.org are case-sensitive when used with this template.
Parameters
unnamed
,1
(required)- Specify the relevant name of the ebuild repository. Will append the name to the https://repos.gentoo.org# URL to create a link.
text
(optional)- Change the text.
raw
(optional)- Provide link to repository rather than using https://repos.gentoo.org.
Usage
See the template's testcases:
No parameter | |
---|---|
Wiki code | {{Repo}}
|
Main version | {{Repo template error}} Parameter 1 not defined. For correct usage see Repo template's documentation on the 1 parameter. |
Sandbox version | {{Repo template error}} Parameter 1 not defined. For correct usage see Repo template's documentation on the 1 parameter. |
Unnamed parameter 1 | |
---|---|
Wiki code | {{Repo|haskell}}
|
Main version | haskell |
Sandbox version | haskell |
Unnamed parameter 1 within a sentence (in-line) - for line break test | |
---|---|
Wiki code | Add the {{Repo|pentoo}} repository for access to [[Metasploit]].
|
Main version | Add the pentoo repository for access to Metasploit. |
Sandbox version | Add the pentoo repository for access to Metasploit. |
Unnamed parameter 1 and raw parameter | |
---|---|
Wiki code | {{Repo|rawrepo|raw=https://github.com/gentoo-haskell}}
|
Main version | rawrepo |
Sandbox version | rawrepo |
Unnamed parameter 1 and text parameter | |
---|---|
Wiki code | {{Repo|haskell|text=The Haskell repository}}
|
Main version | The Haskell repository |
Sandbox version | The Haskell repository |
Raw parameter and text parameter, no unnamed parameter 1 | |
---|---|
Wiki code | {{Repo|raw=https://github.com/gentoo-haskell/gentoo-haskell|text=The Haskell repository}}
|
Main version | {{Repo template error}} Parameter 1 not defined. For correct usage see Repo template's documentation on the 1 parameter. |
Sandbox version | {{Repo template error}} Parameter 1 not defined. For correct usage see Repo template's documentation on the 1 parameter. |