Template:Λ: Difference between revisions

From the Garry's Mod Factions Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|style="width:{{{5|90%}}}; background-color:{{{4|#FFCC66}}}; border: {{{7|1px solid #000000}}};border-collapse: separate; border-spacing: {{{8|3px}}}; margin-left: auto; margin-right: auto;"
{|style="width:{{{box-width|90%}}}; background-color:{{{color|#fb7f0c}}}; border-width: {{{border-width|1px}}}; border-style: {{{border-style|solid}}}; border-color: {{{border-color|#00000}}}; border-collapse: separate; border-spacing: {{{border-spacing|3px}}}; margin-left: auto; margin-right: auto; color:{{{message-color|#000000}}}"|style="border-width:{{{image-border-width|0px}}}; border-style:{{{image-border-style|solid}}}; border-color: {{{image-border-color|#000000}}};{{{image-styling|padding:0px}}}; margin:0px;"  
|style="border:{{{6|0px solid #000000}}};{{{9|padding:0px}}};margin:0px;" |[[File:{{{2|Lego-gordon-freeman.png}}}|link=|{{{3|110px}}}]]
|[[File:{{{image|Lego-gordon-freeman.png}}}|link=|{{{image-width|110px}}}]]
|style="{{#if:{{{1style|}}}|{{{1style}}}|width:100%;text-align:center;padding:5px; margin:0px;}}" |{{{1|'''Hey You!'''<br/>I'm glad I've got your attention.}}}
|{{{message|'''Hey You!'''<br/>I'm glad I've got your attention.}}}
|}<noinclude>
|}
<noinclude>
=Instant Template Construction Kit=
This template is an attempt to reduce redundant code by making a ready to use template that can be used.


==Instant Template Construction Kit==
==Parameters==
# Message
# Image Filename
# Image Width
# Box Color
# Box Width
# Image Border Style (CSS e.g. <nowiki>|</nowiki><span style="color: #119911;">4px solid Blue</span><nowiki>|</nowiki>, or <span style="color: #119911;">0px</span> for no border)
# Box Border Style
# Space Between Box Border and Box Contents
# Optional Styling For Image Area
# Text color
 
==Usage Examples==
<pre><nowiki>
{{Λ}}
</nowiki></pre>
{{Λ}}
 
[[Category:Core Templates]]
<templatedata>
{
"params": {
"box-width": {},
"color": {
"label": "Box color",
"description": "Valid CSS color for the background of the box",
"example": "#fb7f0c",
"type": "string",
"default": "#fb7f0c"
},
"border-width": {},
"border-style": {},
"border-color": {},
"border-spacing": {},
"message-color": {
"description": "Valid CSS color for the color of the text in the box."
},
"image-border-width": {},
"image-border-style": {},
"image-border-color": {},
"image-styling": {
"label": "Image Styling",
"description": "CSS styles for the image",
"type": "string"
},
"image": {
"label": "Image",
"description": "The image that goes on the left side of the box",
"example": "Melon-anime.gif",
"type": "wiki-file-name",
"default": "Lego-gordon-freeman.png",
"required": true
},
"image-width": {
"label": "Image Width",
"description": "The width of the image in valid CSS size.",
"example": "100px",
"type": "string",
"default": "110px"
},
"message": {
"aliases": [
"msg"
],
"label": "Box Message",
"description": "The text the box displays.",
"example": "'''Beep Boop'''",
"type": "content",
"default": "'''Hey You!'''<br/>I'm glad I've got your attention.",
"required": true
}
}
}
</templatedata></noinclude>

Latest revision as of 01:36, 9 October 2025

Hey You!
I'm glad I've got your attention.

Instant Template Construction Kit

This template is an attempt to reduce redundant code by making a ready to use template that can be used.

Parameters

  1. Message
  2. Image Filename
  3. Image Width
  4. Box Color
  5. Box Width
  6. Image Border Style (CSS e.g. |4px solid Blue|, or 0px for no border)
  7. Box Border Style
  8. Space Between Box Border and Box Contents
  9. Optional Styling For Image Area
  10. Text color

Usage Examples

{{Λ}}
Hey You!
I'm glad I've got your attention.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
box-widthbox-width

no description

Unknownoptional
Box colorcolor

Valid CSS color for the background of the box

Default
#fb7f0c
Example
#fb7f0c
Stringoptional
border-widthborder-width

no description

Unknownoptional
border-styleborder-style

no description

Unknownoptional
border-colorborder-color

no description

Unknownoptional
border-spacingborder-spacing

no description

Unknownoptional
message-colormessage-color

Valid CSS color for the color of the text in the box.

Unknownoptional
image-border-widthimage-border-width

no description

Unknownoptional
image-border-styleimage-border-style

no description

Unknownoptional
image-border-colorimage-border-color

no description

Unknownoptional
Image Stylingimage-styling

CSS styles for the image

Stringoptional
Imageimage

The image that goes on the left side of the box

Default
Lego-gordon-freeman.png
Example
Melon-anime.gif
Filerequired
Image Widthimage-width

The width of the image in valid CSS size.

Default
110px
Example
100px
Stringoptional
Box Messagemessage msg

The text the box displays.

Default
'''Hey You!'''<br/>I'm glad I've got your attention.
Example
'''Beep Boop'''
Contentrequired