Template:Messagebox/doc: Difference between revisions

From Vintage Story Wiki
m
We don't use forums for recruiting anymore.
(Created page with "This template produces a wide message box capable of displaying various amounts of information in both its' title and body text along with an optional image. Generally used as...")
 
m (We don't use forums for recruiting anymore.)
 
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:


This is the base template that all other message box templates should inherit from, as it allows for cascading style changes i.e. any CSS changes made here will affect all children templates, preventing excessive work when a change is needed. It should generally ''only'' be used for making new templates, unless a single article has an edge case use for it.
This is the base template that all other message box templates should inherit from, as it allows for cascading style changes i.e. any CSS changes made here will affect all children templates, preventing excessive work when a change is needed. It should generally ''only'' be used for making new templates, unless a single article has an edge case use for it.
[[:Category:Notice_templates]] shows all notice templates.


== Usage ==
== Usage ==
<pre style="display: table">
<pre style="display: table">
{{Msgbox
{{Messagebox
|bgcol= The background color
|bgcol= The background color
|linecol= The border line color
|linecol= The border line color
Line 49: Line 51:
|-
|-
| <pre>
| <pre>
{{msgbox
{{Messagebox
|image= Grid_Copper_anvil.png
|image= Grid_Copper_anvil.png
|title= This is a message box!
|title= This is a message box!
Line 55: Line 57:
|discuss= true
|discuss= true
}}</pre>  
}}</pre>  
|| {{msgbox
|| {{Messagebox
|image= Grid_Copper_anvil.png
|image= Grid_Copper_anvil.png
|title= This is a message box!
|title= This is a message box!
Line 63: Line 65:
|-
|-
| <pre>
| <pre>
{{msgbox
{{Messagebox
|bgcol= rgba(120,90,60,0.4)
|bgcol= rgba(120,90,60,0.4)
|title=This page is a stub.
|title=This page is a stub.
|text=This page does not contain as much information as we would like.
|text=This page does not contain as much information as we would like.
If you do wish to contribute, please request wiki edit access on the [https://www.vintagestory.at/forums/topic/267-wiki-discussion/ forum] or the [https://discord.gg/Tndr3w8 Discord].
If you do wish to contribute, please request wiki edit access on the [https://discord.gg/Tndr3w8 Discord].
|image=Icon Sign.png
|image=Icon Sign.png
|imagesize=64px}}</pre>
|imagesize=64px}}</pre>
|| {{msgbox
|| {{Messagebox
|bgcol= rgba(120,90,60,0.4)
|bgcol= rgba(120,90,60,0.4)
|title=This page is a stub.
|title=This page is a stub.
|text=This page does not contain as much information as we would like.
|text=This page does not contain as much information as we would like.
If you do wish to contribute, please request wiki edit access on the [https://www.vintagestory.at/forums/topic/267-wiki-discussion/ forum] or the [https://discord.gg/Tndr3w8 Discord].
If you do wish to contribute, please request wiki edit access on the [https://discord.gg/Tndr3w8 Discord].
|image=Icon Sign.png
|image=Icon Sign.png
|imagesize=64px}}
|imagesize=64px}}
|-
|-
| <pre>
| <pre>
{{msgbox
{{Messagebox
|bgcol= #cccccc
|bgcol= #cccccc
|linecol= #88acf5
|linecol= #88acf5
Line 86: Line 88:
|css= box-shadow: 5px 5px 1px #787878;
|css= box-shadow: 5px 5px 1px #787878;
}}</pre>
}}</pre>
|| {{msgbox
|| {{Messagebox
|bgcol= #cccccc
|bgcol= #cccccc
|linecol= #88acf5
|linecol= #88acf5
Line 94: Line 96:
}}
}}
|}
|}
<includeonly>
<!-- Template categories/interwikis here -->
[[Category:Notice templates]]
</includeonly>
Confirmedusers
467

edits