More actions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|{{#ifeq:{{#if:{{{branch|}}}|Y|B}}|{{#if:{{{commit|}}}|Y|C}}|{{error|{{Tl|GitHub Repository}}: Found both <code> | <includeonly>{{#if:{{{1|}}}|{{#ifeq:{{#if:{{{branch|}}}|Y|B}}|{{#if:{{{commit|}}}|Y|C}}|{{error|1={{Tl|GitHub Repository}}: Found both <code>|branch=</code> and <code>|commit=</code>}}|[https://github.com/{{{1}}}/{{#if:{{{branch|{{{commit|}}}}}}{{{file|}}}|{{#if:{{{file|}}}|blob|tree}}/{{{branch|master}}}/{{{file|}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|#L{{{line}}}}}}}}} {{{1}}}{{#if:{{{branch|{{{commit|}}}}}}|@<code>{{{branch|{{#invoke:String|sub|s={{{commit}}}|j=7}}}}}</code>}}{{#if:{{{file|}}}|:/{{{file}}}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|<nowiki>#</nowiki>L{{{line}}}}}}}]}}|{{error|{{Tl|GitHub Repository}}: Missing parameter 1 (repository)}}}}</includeonly><noinclude>{{doc}}</noinclude> |
Latest revision as of 10:53, 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@fe35073
{{GitHub Repository|minetest/minetest|branch=stable-5}}
→ minetest/minetest@stable-5
{{GitHub Repository|minetest/minetest|file=doc/lua_api.md}}
→ minetest/minetest:/doc/lua_api.md{{GitHub Repository|minetest/minetest|file=builtin/init.lua|line=9}}
→ minetest/minetest:/builtin/init.lua#L9{{GitHub Repository|minetest/minetest|branch=stable-5|file=builtin/init.lua|line=9}}
→ minetest/minetest@stable-5
:/builtin/init.lua#L9{{GitHub Repository|minetest/minetest|branch=stable-5|file=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}}
→ {{GitHub Repository}}: Found both|branch=
and|commit=