(trying to add interloper, high chance this won't work correctly. also slight reorganization) |
No edit summary |
||
Line 27: | Line 27: | ||
"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 |
|||
}, |
|||
"type": { |
|||
"description": "Type of the actor", |
|||
"type": "string", |
|||
"suggested": true |
"suggested": true |
||
} |
} |
||
Line 34: | Line 39: | ||
"name", |
"name", |
||
"text", |
"text", |
||
"image" |
"image", |
||
"type" |
|||
], |
], |
||
"format": "block" |
"format": "block" |
||
Line 68: | Line 74: | ||
/><span class="color-friend">+</span>'<span title="INHERITED CONTEXT::'i just think they are cool'">cousinly eyes</span>'<br |
/><span class="color-friend">+</span>'<span title="INHERITED CONTEXT::'i just think they are cool'">cousinly eyes</span>'<br |
||
/><span class="color-friend">+</span>'self-designed signature'}} |
/><span class="color-friend">+</span>'self-designed signature'}} |
||
== See also: == |
|||
* [[Template:LogBox/Main.css]] |
|||
</noinclude><includeonly><!-- |
</noinclude><includeonly><!-- |
||
Line 73: | Line 82: | ||
--><div class="log-message-box spacemono-text {{{ type|<!-- |
--><div class="log-message-box spacemono-text {{{ type|<!-- |
||
-->{{ #switch: {{{ name |{{{ 1 |template_error}}}}}}<!-- |
-->{{ #switch: {{{ name |{{{ 1 |template_error}}}}}}<!-- |
||
# Would be really nice if this was somehow grabbed directly from the relevant page in one way or another... |
|||
# Any clue how do to that? Cuz this is growing a bit much |
|||
-->| system=system<!-- |
-->| system=system<!-- |
||
-->| sys=system<!-- |
-->| sys=system<!-- |
||
-->| moth=friend<!-- |
-->| moth=friend<!-- |
||
-->| |
-->| sourceless=sourceless<!-- |
||
-->| interloper=interloper<!-- |
|||
-->| funfriend=obesk<!-- |
-->| funfriend=obesk<!-- |
||
-->| akizet=obesk<!-- |
-->| akizet=obesk<!-- |
||
-->| |
-->| bozko=obesk<!-- |
||
-->| kazki=obesk<!-- |
|||
-->| tozik=obesk<!-- |
|||
-->| gakvu=obesk<!-- |
|||
-->| template_error=template-error<!-- # Cuz CSS uses kebab-case, not snake_case |
|||
-->|examine<!-- |
-->|examine<!-- |
||
-->}}}}}" role="figure" aria-label="Dialogue box of actor <!-- |
-->}}}}}" role="figure" aria-label="Dialogue box of actor <!-- |
||
Line 86: | Line 102: | ||
-->{{ #if: {{{ image |}}} | [[File:{{{ image }}} | class=message-image custom-image | alt={{{ image_alt |Actor image}}}]] |<!-- |
-->{{ #if: {{{ image |}}} | [[File:{{{ image }}} | class=message-image custom-image | alt={{{ image_alt |Actor image}}}]] |<!-- |
||
# TODO: Rewrite this stuff to borrow EffectiveType from Corru code, "type" param overriding the name derived type |
# TODO: Rewrite this stuff to borrow EffectiveType from Corru code, "type" param overriding the name derived type |
||
-- -->{{ #switch: |
-- -->{{ #switch: {{{ name |{{{ 1 |template_error}}}}}}<!-- |
||
-- -->| system =[[File:MindspikeCropped.gif | class=message-image | alt=Actor image ]]<!-- |
|||
-- -->| friend =[[File:MothCropped.gif | class=message-image | alt=Actor image]]<!-- |
|||
-- -->| obesk =[[File:Akizet_Log_Portrait.gif | class=message-image | alt=Actor image]]<!-- |
|||
-- -->| template_error =[[File:Corruheze.png | class=message-image | alt=Actor image]]<!-- |
|||
-- -->| {{ #switch: {{{ name |{{{ 1 |template_error}}}}}}<!-- |
|||
-- -- -->| sys =[[File:MindspikeCropped.gif | class=message-image | alt=Actor image]]<!-- |
-- -- -->| sys =[[File:MindspikeCropped.gif | class=message-image | alt=Actor image]]<!-- |
||
-- -- -->| system =[[File:MindspikeCropped.gif | class=message-image | alt=Actor image]]<!-- |
-- -- -->| system =[[File:MindspikeCropped.gif | class=message-image | alt=Actor image]]<!-- |
||
Line 98: | Line 109: | ||
-- -- -->| funfriend =[[File:Funfriend_Log_Portrait.gif | class=message-image | alt=Actor image]]<!-- |
-- -- -->| funfriend =[[File:Funfriend_Log_Portrait.gif | class=message-image | alt=Actor image]]<!-- |
||
-- -- -->| akizet =[[File:Akizet_Log_Portrait.gif | class=message-image | alt=Actor image]]<!-- |
-- -- -->| akizet =[[File:Akizet_Log_Portrait.gif | class=message-image | alt=Actor image]]<!-- |
||
-- -- -->}}<!-- |
|||
-- -->}}<!-- |
-- -->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
Revision as of 08:47, 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 |
Example:
Moth ("friend"), defaults image to /img/sprites/moth/mothman.gif (cropped):
Examine system ("examine"), default type:
System/mindspike messages ("system"), uses /img/mui/mindspikelogoactive.gif (cropped) icon over BG of /img/textures/static.gif:
Own thoughts, narration ("sourceless"):
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: