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
No edit summary
No edit summary
Line 42: Line 42:
Example:
Example:


Moth ("friend"), defaults image to [[:File:MothCropped.gif|MothCropped.gif]]:
Moth ("friend"), defaults image to [[Media:MothCropped.gif|/img/sprites/moth/mothman.gif (cropped)]]:
{{LogBox|moth|hey buddy}}
{{LogBox|moth|hey buddy}}


Line 48: Line 48:
{{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"):
{{LogBox|system|..__RECONNECTING__..}}
{{LogBox|system|..__RECONNECTING__..}}


Line 59: Line 59:
</noinclude><includeonly><!--
</noinclude><includeonly><!--
--><templatestyles src="LogBox/Main.css" /><!--
--><templatestyles src="LogBox/Main.css" /><!--
--><div class="log-message-box spacemono-text {{{ type|examine}}}"><!--
--><div class="log-message-box spacemono-text {{{ type|<!--
-->{{ #switch: {{{ name |{{{ 1 |template_error}}}}}}<!--
-->| system=system<!--
-->| sys=system<!--
-->| moth=friend<!--
-->|examine<!--
-->}}}}}"><!--
-->{{ #if: {{{ image |}}} | [[File:{{{ image }}} | class=message-image custom-image]] |<!--
-->{{ #if: {{{ image |}}} | [[File:{{{ image }}} | class=message-image custom-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: {{{ type |{{{ name |{{{ 1 |template_error}}}}}}}}}<!--
-- -->| system=[[File:MindspikeCropped.gif | class=message-image]]<!--
-- -->| system =[[File:MindspikeCropped.gif | class=message-image]]<!--
-- -->| friend=[[File:MothCropped.gif | class=message-image]]<!--
-- -->| friend =[[File:MothCropped.gif | class=message-image]]<!--
-- -->| template_error=[[File:Corruheze.png | class=message-image]]<!--
-- -->| template_error =[[File:Corruheze.png | class=message-image]]<!--
-- -->| {{ #switch: {{{ name |{{{ 1 |error}}}}}}<!--
-- -->| {{ #switch: {{{ name |{{{ 1 |template_error}}}}}}<!--
-- -- -->| sys=[[File:MindspikeCropped.gif | class=message-image]]<!--
-- -- -->| sys =[[File:MindspikeCropped.gif | class=message-image]]<!--
-- -- -->| system=[[File:MindspikeCropped.gif | class=message-image]]<!--
-- -- -->| system =[[File:MindspikeCropped.gif | class=message-image]]<!--
-- -- -->| moth=[[File:MothCropped.gif | class=message-image]]<!--
-- -- -->| moth =[[File:MothCropped.gif | class=message-image]]<!--
-- -- -->}}<!--
-- -- -->}}<!--
-- -->}}<!--
-- -->}}<!--

Revision as of 19:44, 12 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

Example:

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

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

..__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'


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