Difference between revisions of "Template:enemy name/doc"
Jump to navigation
Jump to search
(Added some documentation) |
|||
Line 16: | Line 16: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
+ | }, | ||
+ | "alt": { | ||
+ | "label": "Alternate text", | ||
+ | "description": "The text to be displayed, if it needs to be different from the Wiki page name.", | ||
+ | "type": "string" | ||
} | } | ||
}, | }, |
Latest revision as of 19:14, 24 February 2023
40px | This is a documentation subpage for Template:enemy name. It contains usage information, categories and other content that is not part of the original template page. |
Inline template for displaying an enemy link. The link will be displayed with the proper classification icon if needed.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Enemy name | 1 | The name of the enemy. This has to be the Wiki page name for the Link to work.
| Page | required |
Classification | 2 | The type of this enemy. Most enemies don't need a value here. For Ringleaders, please use "boss".
| String | suggested |
Alternate text | alt | The text to be displayed, if it needs to be different from the Wiki page name.
| String | optional |
Usage[edit]
See the template's testcases:
Usual use-case | |
---|---|
Wiki code | {{enemy name|Golyat}} |
Main version | Golyat |
Sandbox version | Template:enemy name/sandbox |
Example for a Ringleader | |
---|---|
Wiki code | {{enemy name|Executioner|boss}} |
Main version | Executioner |
Sandbox version | Template:enemy name/sandbox |
See also[edit]