No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
"type": "content", |
"type": "content", |
||
"required": true, |
"required": true, |
||
"suggested": true |
"suggested": true, |
||
"example": "hey buddy" |
|||
}, |
}, |
||
"image": { |
"image": { |
||
"description": "Image to use for the box, unless it's from \"sourceless\" or an entity with known image.", |
"description": "Image to use for the box, unless it's from \"sourceless\" or an entity with known image.", |
||
"type": "wiki-file-name", |
"type": "wiki-file-name", |
||
"suggested": true |
"suggested": true, |
||
"example": "MothCropped.gif" |
|||
}, |
}, |
||
"type": { |
"type": { |
||
"description": "Type of the actor", |
"description": "Type of the actor", |
||
"type": "string", |
"type": "string", |
||
"suggested": true |
"suggested": true, |
||
"example": "examine", |
|||
"suggestedvalues": [ |
|||
"examine", |
|||
"system", |
|||
"obesk", |
|||
"interloper", |
|||
"sourceless" |
|||
] |
|||
}, |
|||
"rawname": { |
|||
"label": "Raw name, for when you want to use existing actor's image binding and such, but need a specific display name. See [[Template:LogBox]] page for an example with Akizet", |
|||
"example": "!!__moth__!!", |
|||
"type": "string" |
|||
} |
} |
||
}, |
}, |
||
Line 40: | Line 55: | ||
"text", |
"text", |
||
"image", |
"image", |
||
"type", |
|||
"rawname" |
|||
], |
], |
||
"format": "block" |
"format": "block" |
Revision as of 09:29, 13 March 2023
A template for the fancy boxes from the sidebar status/log messages when examining things or looking at past dialogue!
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name 1 | The name of relevant entity (character or object) for which this log entire was created. Will automatically add !!__...__!! around it and uppercase it as per the game, unless it's from "sys" or "sourceless".
| String | required |
text | text content 2 | Text content of the box
| Content | required |
image | image | Image to use for the box, unless it's from "sourceless" or an entity with known image.
| File | suggested |
type | type | Type of the actor
| String | suggested |
Raw name, for when you want to use existing actor's image binding and such, but need a specific display name. See [[Template:LogBox]] page for an example with Akizet | rawname | no description
| String | optional |
Example:
Moth ("friend"), defaults image to /img/sprites/moth/mothman.gif (cropped):
Examine system ("examine"), default type:
System/mindspike messages ("system", game also uses "sys"), uses /img/mui/mindspikelogoactive.gif (cropped) icon over BG of /img/textures/static.gif:
Own thoughts, narration ("sourceless"):
Interloper speech ("interloper", game also uses "self")
Obesk speech (requires ...|type="obesk"..., unless it's a known name)
Missing parameter handling:
Complex stuff, example copied almost verbatim from the game source. Mind that MediaWiki does not like CSS variables in anything that is sanitized. Also for some reason unnamed param does not work, end up needing the named one. BRs are used to escape the newline away:
See also: