Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:LogBox: Difference between revisions

Template page
Content added Content deleted
(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<!--
-->| interloper=sourceless<!--
-->| sourceless=sourceless<!--
-->| interloper=interloper<!--
-->| funfriend=obesk<!--
-->| funfriend=obesk<!--
-->| akizet=obesk<!--
-->| akizet=obesk<!--
-->| template_error=template_error<!--
-->| 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: {{{ type |{{{ name |{{{ 1 |template_error}}}}}}}}}<!--
-- -->{{ #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!

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename 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".

Example
moth
Stringrequired
texttext content 2

Text content of the box

Contentrequired
imageimage

Image to use for the box, unless it's from "sourceless" or an entity with known image.

Filesuggested
typetype

Type of the actor

Stringsuggested

Example:

Moth ("friend"), defaults image to /img/sprites/moth/mothman.gif (cropped):

Actor image
!!__moth__!!
hey buddy

Examine system ("examine"), default type:

!!__cyst__!!
::CORRUCYSTIC ENTITY
::NO FUNCTION SIGNATURE
::CONNECTIVE MEMBRANE EXPOSED

System/mindspike messages ("system"), uses /img/mui/mindspikelogoactive.gif (cropped) icon over BG of /img/textures/static.gif:

Actor image
..__RECONNECTING__..

Own thoughts, narration ("sourceless"):

the decoding machines flip on, casting their light over a spidery mess of wires.

Missing parameter handling:

!!__template error__!!
::TEMPLATE ERROR:'entity name missing'
::TEMPLATE ERROR:'no text'

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:

!!__akizetesche __!!
::RESPONSIVE THOUGHTFORM
::EXPLICIT PURPOSE::'recollection locus
::RECONSTRUCTED SIGNATURE CONTEXT
+'vaznian surrealist influence'
+'mark of oltazni'
+'vel receptors, curled'
+'cousinly eyes'
+'self-designed signature'

See also:


Cookies help us deliver our services. By using our services, you agree to our use of cookies.