Template:Λ: Difference between revisions

From the Garry's Mod Factions Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{|style="width:{{{box-width|90%}}}; background-color:{{{color|#fb7f0c}}}; border: {{{border-width|1px}}} {{{border-style|solid}} {{{border-color|#00000}}};border-collapse: separate; border-spacing: {{{border-spacing|3px}}}; margin-left: auto; margin-right: auto; color:{{{message-color|#000000}}}"
{|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:{{{image|Lego-gordon-freeman.png}}}|link=|{{{image-width|110px}}}]]
|[[File:{{{image|Lego-gordon-freeman.png}}}|link=|{{{image-width|110px}}}]]
|{{{message|'''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=
=Instant Template Construction Kit=
This template is an attempt to reduce redundant code by making a ready to use template that can be used.
This template is an attempt to reduce redundant code by making a ready to use template that can be used.
Line 24: Line 24:
</nowiki></pre>
</nowiki></pre>
{{Λ}}
{{Λ}}


[[Category:Core Templates]]
[[Category:Core Templates]]
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"message": {
"box-width": {},
"aliases": [
"color": {
"msg"
"label": "Box color",
],
"description": "Valid CSS color for the background of the box",
"label": " Message",
"example": "#fb7f0c",
"description": "The Text you want this box to display",
"type": "string",
"example": "'''Alakazam''",
"default": "#fb7f0c"
"type": "content",
},
"default": "'''Hey You!'''<br/>I'm glad I've got your attention.",
"border-width": {},
"required": true
"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": {
"image": {
"aliases": [
"img"
],
"label": "Image",
"label": "Image",
"description": "The filename of the image for the left side of the box.",
"description": "The image that goes on the left side of the box",
"example": "Melon-anime.gif",
"example": "Melon-anime.gif",
"type": "wiki-file-name",
"type": "wiki-file-name",
"default": "Lego-gordon-freeman.png",
"default": "Lego-gordon-freeman.png",
"suggested": true
"required": true
},
},
"image-width": {
"image-width": {
"aliases": [
"iw"
],
"label": "Image Width",
"label": "Image Width",
"description": "The width of the image on the left side of the box.",
"description": "The width of the image in valid CSS size.",
"example": "200px",
"example": "100px",
"type": "string",
"type": "string",
"default": "110px"
"default": "110px"
},
},
"box-width": {
"message": {
"aliases": [
"aliases": [
"bw"
"msg"
],
],
"label": "Box Width",
"label": "Box Message",
"description": "The Width of the box for the template",
"description": "The text the box displays.",
"example": "50%",
"example": "'''Beep Boop'''",
"type": "string",
"type": "content",
"suggestedvalues": [
"default": "'''Hey You!'''<br/>I'm glad I've got your attention.",
"250px",
"required": true
"100%",
"25%"
],
"default": "90%",
"suggested": true
}
}
},
}
"paramOrder": [
"message",
"box-width",
"image",
"image-width"
]
}
}
</templatedata>
</templatedata></noinclude>
</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