Template:NPCSource: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge Create Template:NPCSource |
imported>AntumDeluge Allow optional 3rd parameter |
||
| Line 1: | Line 1: | ||
{{#if: {{{1|}}} | [https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/{{{1|}}}.java {{#if: {{{2|}}} | {{{2|}}} | {{{1|}}} }}] | }} |
{{#if: {{{1|}}} | [https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/{{{1|}}}.java {{#if: {{{2|}}} | {{{2|}}} | {{{1|}}} }}] | }}{{#if: |
||
{{{3|}}} | ({{{3|}}}) | }}<noinclude> |
|||
== Usage == |
== Usage == |
||
| Line 9: | Line 10: | ||
|- |
|- |
||
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|source|names}}</nowiki> || <nowiki>[https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/<source>.java <names>]</nowiki> |
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|source|names}}</nowiki> || <nowiki>[https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/<source>.java <names>]</nowiki> |
||
|- |
|||
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|source||names}}</nowiki> || <nowiki>[https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/<source>.java <source>] (names)</nowiki> |
|||
|} |
|} |
||
| Line 19: | Line 22: | ||
|- |
|- |
||
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|ados/bank/BankNPC|Rachel}}</nowiki> || {{NPCSource|ados/bank/BankNPC|Rachel}} |
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|ados/bank/BankNPC|Rachel}}</nowiki> || {{NPCSource|ados/bank/BankNPC|Rachel}} |
||
|- |
|||
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|ados/bank/BankNPC||Rachel}}</nowiki> || {{NPCSource|ados/bank/BankNPC||Rachel}} |
|||
|} |
|} |
||
Revision as of 04:25, 16 November 2017
Usage
| Input | Output |
|---|---|
| {{NPCSource|source}} | [https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/<source>.java <source>] |
| {{NPCSource|source|names}} | [https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/<source>.java <names>] |
| {{NPCSource|source||names}} | [https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/<source>.java <source>] (names) |
Example
| Input | Output |
|---|---|
| {{NPCSource|ados/bank/BankNPC}} | ados/bank/BankNPC |
| {{NPCSource|ados/bank/BankNPC|Rachel}} | Rachel |
| {{NPCSource|ados/bank/BankNPC||Rachel}} | ados/bank/BankNPC(Rachel) |