No edit summary |
(how about now) |
||
(26 intermediate revisions by 6 users not shown) | |||
Line 8: | Line 8: | ||
"1" |
"1" |
||
], |
], |
||
"description": "The name of relevant entity (character or object) for which this log |
"description": "The name of relevant entity (character or object) for which this log entry was created. Will automatically add !!__...__!! around it and uppercase it as per the game, and hidden if it's from \"system\", \"sourceless\", \"interloper\". Will be used to derive color/type for styling the box. Case sensitive for this purpose, all known names are matched with lowercase.", |
||
"example": "moth", |
"example": "moth", |
||
"type": "string", |
"type": "string", |
||
Line 19: | Line 19: | ||
"2" |
"2" |
||
], |
], |
||
"description": " |
"description": "Content of the box. Mind the formatting and such. Supports limited coloring with classes \"color-...\" matching the types.", |
||
"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": { |
|||
"description": "Type of the actor. Overrides color and styling derived from the name. Useful for examine box of Akizet (Use \"akizet\" for actual name though, it's case sensitive), for example", |
|||
"type": "string", |
|||
"suggested": true, |
|||
"example": "examine", |
|||
"suggestedvalues": [ |
|||
"examine", |
|||
"system", |
|||
"obesk", |
|||
"interloper", |
|||
"sourceless", |
|||
"friend", |
|||
"template_error" |
|||
] |
|||
}, |
|||
"rawname": { |
|||
"description": "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" |
|||
}, |
|||
"notpageimage": { |
|||
"description": "Whether to show the actor image used in the embed of the page or not. ", |
|||
"example": "false", |
|||
"type": "boolean" |
|||
}, |
|||
"image_alt": { |
|||
"description": "Optional alt text for the image.", |
|||
"example": "Actor image", |
|||
"type": "string" |
|||
}, |
|||
"imagesize": { |
|||
"description": "Size of the image, in a format like \"50px\".", |
|||
"type": "string" |
|||
} |
} |
||
}, |
}, |
||
"description": " |
"description": "A template for the fancy boxes from the sidebar status/log messages when examining things or looking at past dialogue!", |
||
"paramOrder": [ |
"paramOrder": [ |
||
"name", |
"name", |
||
"text", |
"text", |
||
"image" |
"image", |
||
"type", |
|||
"rawname", |
|||
"notpageimage", |
|||
"image_alt", |
|||
"imagesize" |
|||
], |
], |
||
"format": "block" |
"format": "block" |
||
Line 48: | Line 89: | ||
{{LogBox|cyst|::CORRUCYSTIC ENTITY<br>::NO FUNCTION SIGNATURE<br>::CONNECTIVE MEMBRANE EXPOSED}} |
{{LogBox|cyst|::CORRUCYSTIC ENTITY<br>::NO FUNCTION SIGNATURE<br>::CONNECTIVE MEMBRANE EXPOSED}} |
||
System/mindspike messages ("system"), uses [[Media:MindspikeCropped.gif|/img/mui/mindspikelogoactive.gif (cropped)]] icon over BG of [[Media:TextureStatic.gif|/img/textures/static.gif]]: |
System/mindspike messages ("system", game also uses "sys"), uses [[Media:MindspikeCropped.gif|/img/mui/mindspikelogoactive.gif (cropped)]] icon over BG of [[Media:TextureStatic.gif|/img/textures/static.gif]]: |
||
{{LogBox|system|..__RECONNECTING__..}} |
{{LogBox|system|..__RECONNECTING__..}} |
||
Own thoughts, narration ("sourceless"): |
Own thoughts, narration ("sourceless"): |
||
{{LogBox|sourceless|the decoding machines flip on, casting their light over a spidery mess of wires.|type=sourceless}} |
{{LogBox|sourceless|the decoding machines flip on, casting their light over a spidery mess of wires.|type=sourceless}} |
||
Interloper speech ("interloper", game also uses "self") |
|||
{{LogBox|interloper|so how are repairs going?}} |
|||
Obesk speech (requires ...|type="obesk"..., unless it's a known name) |
|||
{{LogBox|funfriend|HELLO!}} |
|||
Missing parameter handling: |
Missing parameter handling: |
||
{{LogBox}} |
{{LogBox}} |
||
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: |
|||
{{LogBox |
|||
|akizet |
|||
|type=examine |
|||
|rawname=!!__akizetesche__!! |
|||
|text=::RESPONSIVE THOUGHTFORM<br |
|||
/>::EXPLICIT PURPOSE::'recollection locus'<br |
|||
/><span class="color-friend">::RECONSTRUCTED SIGNATURE CONTEXT</span><br |
|||
/><span class="color-friend">+</span>'<span title="INHERITED CONTEXT::'continent'">vaznian</span> surrealist influence'<br |
|||
/><span class="color-friend">+</span>'mark of <span title="INHERITED CONTEXT::'cave-city'">oltazni</span>'<br |
|||
/><span class="color-friend">+</span>'vel receptors, curled'<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'}} |
|||
== See also: == |
|||
* [[Template:LogBox/Main.css]] |
|||
* [[Template:LogBox/Generic]] |
|||
[[Category:Templates]] |
|||
</noinclude><includeonly><!-- |
</noinclude><includeonly><!-- |
||
--><templatestyles src="LogBox/Main.css" /><!-- |
--><templatestyles src="LogBox/Main.css" /><!-- |
||
--><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<!-- |
|||
-->| bstrd=bstrd<!-- |
|||
-->| bastard=bstrd<!-- |
|||
-->| funfriend=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 <!-- |
||
-->{{ |
-->{{{ name |{{{ 1 |template_error}}}}}}<!-- |
||
⚫ | |||
-->{{ #if: {{{ image |}}} | [[File:{{{ image }}} |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image custom-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | 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}}}}}}<!-- |
||
-- -->| |
-- -- -->| sys =[[File:MindspikeCropped.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
||
-- -->| |
-- -- -->| system =[[File:MindspikeCropped.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
||
-- -->| |
-- -- -->| moth =[[File:MothCropped.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
||
-- -- -->| interloper =[[File:Interloper_Log_Portrait.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
|||
-- -->| {{ #switch: {{{ name |{{{ 1 |template_error}}}}}}<!-- |
|||
-- -- -->| |
-- -- -->| funfriend =[[File:Funfriend_Log_Portrait.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
||
-- -- -->| |
-- -- -->| akizet =[[File:Akizet_Log_Portrait.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
||
-- -- -->| |
-- -- -->| bstrd =[[File:BSTRD.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
||
-- -- -->| template_error = [[File:Corruheze.png |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!-- |
|||
⚫ | |||
-- -->}}<!-- |
-- -->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Line 83: | Line 164: | ||
-- -->| system=<!-- |
-- -->| system=<!-- |
||
-- -->| sourceless=<!-- |
-- -->| sourceless=<!-- |
||
-- -->| interloper=<!-- |
|||
-- -->|{{ barcode |{{{ rawname |!!__{{{ name |{{{ 1 |template error}}}}}}__!!}}}| name | div }}<!-- |
-- -->|{{ barcode |{{{ rawname |!!__{{{ name |{{{ 1 |template error}}}}}}__!!}}}| name | div }}<!-- |
||
-->}}<!-- |
-->}}<!-- |
Latest revision as of 08:28, 6 June 2024
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 entry was created. Will automatically add !!__...__!! around it and uppercase it as per the game, and hidden if it's from "system", "sourceless", "interloper". Will be used to derive color/type for styling the box. Case sensitive for this purpose, all known names are matched with lowercase.
| String | required |
text | text content 2 | Content of the box. Mind the formatting and such. Supports limited coloring with classes "color-..." matching the types.
| 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. Overrides color and styling derived from the name. Useful for examine box of Akizet (Use "akizet" for actual name though, it's case sensitive), for example
| String | suggested |
rawname | rawname | 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
| String | optional |
notpageimage | notpageimage | Whether to show the actor image used in the embed of the page or not.
| Boolean | optional |
image_alt | image_alt | Optional alt text for the image.
| String | optional |
imagesize | imagesize | Size of the image, in a format like "50px". | 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: