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
(fix alt text)
(how about now)
 
Line 147: Line 147:
-->{{{ name |{{{ 1 |template_error}}}}}}<!--
-->{{{ 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}}}]] |<!--
-->{{ #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: {{{ name |{{{ 1 |template_error}}}}}}<!--
-- -->{{ #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}}}]]<!--
-- -- -->| 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}}}]]<!--
-- -- -->| 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}}}]]<!--
-- -- -->| 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}}}]]<!--
-- -- -->| interloper =[[File:Interloper_Log_Portrait.gif |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!--
-- -- -->| funfriend =[[File:Funfriend_Log_Portrait.gif |{{#if:{{{imagesize}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!--
-- -- -->| 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}}}]]<!--
-- -- -->| 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}}}]]<!--
-- -- -->| 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}}}]]<!--
-- -- -->| template_error = [[File:Corruheze.png |{{#if:{{{imagesize|}}}|{{{imagesize}}}{{!}}|}} class=message-image {{#switch: {{{notpageimage|false}}} |false= |notpageimage}} | alt={{{ image_alt |Actor image}}}]]<!--
-- -->}}<!--
-- -->}}<!--
-->}}<!--
-->}}<!--

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!

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 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
Stringrequired
texttext content 2

Content of the box. Mind the formatting and such. Supports limited coloring with classes "color-..." matching the types.

Example
hey buddy
Contentrequired
imageimage

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

Example
MothCropped.gif
Filesuggested
typetype

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

Suggested values
examine system obesk interloper sourceless friend template_error
Example
examine
Stringsuggested
rawnamerawname

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__!!
Stringoptional
notpageimagenotpageimage

Whether to show the actor image used in the embed of the page or not.

Example
false
Booleanoptional
image_altimage_alt

Optional alt text for the image.

Example
Actor image
Stringoptional
imagesizeimagesize

Size of the image, in a format like "50px".

Stringoptional

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", game also uses "sys"), 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.

Interloper speech ("interloper", game also uses "self")

Actor image
so how are repairs going?

Obesk speech (requires ...|type="obesk"..., unless it's a known name)

Actor image
!!__funfriend__!!
HELLO!

Missing parameter handling:

Actor image
!!__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:

Actor image
!!__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.