Template:Install user script/testcases

Test0
{{Install user script}}

{{Install user script}}

importScript( '{{{1}}}' ); // Backlink: [[{{{1}}}]]

{{Install user script/sandbox}}

importScript( '{{{1}}}' ); // Backlink: [[{{{1}}}]]

Test1
{{Install user script|User:Example/script.js}}

{{Install user script}}

importScript( 'User:Example/script.js' ); // Backlink: User:Example/script.js

{{Install user script/sandbox}}

importScript( 'User:Example/script.js' ); // Backlink: User:Example/script.js

Test2
{{Install user script|User:Example/script.js|Script}}

{{Install user script}}

importScript( 'User:Example/script.js' ); // Backlink: Script

{{Install user script/sandbox}}

importScript( 'User:Example/script.js' ); // Backlink: Script

Test3
{{Install user script| |Script}}

{{Install user script}}

importScript( ' ' ); // Backlink: Script

{{Install user script/sandbox}}

importScript( ' ' ); // Backlink: Script

Test4
{{Install user script|:en:User:Example/script.js|Script}}

{{Install user script}}

importScript( ':en:User:Example/script.js' ); // Backlink: Script

{{Install user script/sandbox}}

importScript( ':en:User:Example/script.js' ); // Backlink: Script

Test5
{{Install user script|User:Example/script.js|}}

{{Install user script}}

importScript( 'User:Example/script.js' ); // Backlink: [[]]

{{Install user script/sandbox}}

importScript( 'User:Example/script.js' ); // Backlink: [[]]

Test6
{{Install user script|2=Script}}

{{Install user script}}

importScript( '{{{1}}}' ); // Backlink: Script

{{Install user script/sandbox}}

importScript( '{{{1}}}' ); // Backlink: Script