More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|{{#ifeq:{{#if:{{{branch|}}}|Y|B}}|{{#if:{{{commit|}}}|Y|C}}|{{error|{{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|}}}|< | <includeonly>{{#if:{{{1|}}}|{{#ifeq:{{#if:{{{branch|}}}|Y|B}}|{{#if:{{{commit|}}}|Y|C}}|{{error|{{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> |
Revision as of 10:49, 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}}
→ [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}}
→ {{GitHub Repository}}: Found both