Template:GitHub Repository: Difference between revisions
(Created page with "<includeonly>{{#if:{{{1|}}}|[https://github.com/{{{1}}}/{{#if:{{{branch|}}}{{{file|}}}|{{#if:{{{file|}}}|blob|tree}}/{{{branch|master}}}/{{{file|}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|#L{{{line}}}}}}}}} {{{1}}}{{#if:{{{branch|}}}|@<code>{{{branch}}}}}{{#if:{{{file|}}}|:/{{{file}}}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|#L{{{line}}}}}}}]|{{error|{{Tl|GitHub Repository}}: Missing parameter 1 (repository)}}}}</includeonly><noinclude>{{doc}}</noinclude>") |
(No difference)
|
Revision as of 10:33, 7 June 2024
Usage
Valid Usage
{{GitHub Repository|C-C-Minetest-Server/phonograph}}
→ C-C-Minetest-Server/phonograph{{GitHub Repository|C-C-Minetest-Server/phonograph|commit=fe35073a016f86522068ee11b18af4f1b273fa4e}}
→ C-C-Minetest-Server/phonograph{{GitHub Repository|minetest/minetest|branch=stable-5}}
→ minetest/minetest@stable-5
{{GitHub Repository|minetest/minetest|file=doc/lua_api.md}}
→ [https://github.com/minetest/minetest/blob/master/doc/lua_api.md minetest/minetest
- /doc/lua_api.md]
{{GitHub Repository|minetest/minetest|file=builtin/init.lua|line=9}}
→ [https://github.com/minetest/minetest/blob/master/builtin/init.lua
- L9 minetest/minetest
- /builtin/init.lua
- L9]
{{GitHub Repository|minetest/minetest|branch=stable-5|file=builtin/init.lua|line=9}}
→ [https://github.com/minetest/minetest/blob/stable-5/builtin/init.lua
- L9 minetest/minetest@
stable-5
- /builtin/init.lua
- L9]
{{GitHub Repository|minetest/minetest|branch=stable-5|file=doc/lua_api.md}}
→ [https://github.com/minetest/minetest/blob/stable-5/doc/lua_api.md minetest/minetest@stable-5
- /doc/lua_api.md]
Invaid Usage
- Missing repository:
{{GitHub Repository|branch=stable-5}}
→ {{GitHub Repository}}: Missing parameter 1 (repository)
{{GitHub Repository|commit=fe35073a016f86522068ee11b18af4f1b273fa4e}}
→ {{GitHub Repository}}: Missing parameter 1 (repository)
- Using both
|branch=
and |commit=
:
{{GitHub Repository|C-C-Minetest-Server/phonograph|branch=stable-5|commit=fe35073a016f86522068ee11b18af4f1b273fa4e}}
→ C-C-Minetest-Server/phonograph@stable-5