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:{{{5|90%}}}; background-color:{{{4|#fb7f0c}}}; border: {{{7|1px solid #000000}}};border-collapse: separate; border-spacing: {{{8|3px}}}; margin-left: auto; margin-right: auto; color:{{{10|#000000}}}"
{|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="border:{{{6|0px solid #000000}}};{{{9|padding:0px}}};margin:0px;" |[[File:{{{2|Lego-gordon-freeman.png}}}|link=|{{{3|110px}}}]]
|style="border:{{{6|0px solid #000000}}};{{{9|padding:0px}}};margin:0px;" |[[File:{{{image|Lego-gordon-freeman.png}}}|link=|{{{image-width|110px}}}]]
|{{{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>


Line 27: Line 27:


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

Revision as of 01:13, 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
Messagemessage msg

The Text you want this box to display

Default
'''Hey You!'''<br/>I'm glad I've got your attention.
Example
'''Alakazam''
Contentrequired
Box Widthbox-width bw

The Width of the box for the template

Suggested values
250px 100% 25%
Default
90%
Example
50%
Stringsuggested
Imageimage img

The filename of the image for the left side of the box.

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

The width of the image on the left side of the box.

Default
110px
Example
200px
Stringoptional