Minecraft Wiki
m (Changed protection level for "Minecraft Wiki/style" ([Edit=Allow only directors] (indefinite) [Move=Allow only directors] (indefinite)))
m (sync)
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
{{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style |
<includeonly>| {{#if: {{{id|}}} | id="{{{id}}}" }} {{#if: {{{span|}}} | colspan="{{{span}}}" }} style="background: #FCFCFC; border: 1px solid #CCC; vertical-align: top; width: 33%; {{{style|}}}" |
 
  +
<noinclude>{{message box
{{#if: {{{header|}}}
 
  +
|bgcol = #F9F9F9
| <div class="mcwiki-header" style="margin: 3px; font-weight: bold; text-align: center; font-size: 120%; {{{headerstyle|}}}">{{
 
  +
|icon = 2
#if: {{{image|}}}
 
  +
|text = To propose changes to this page, please use the [[Minecraft Wiki/editcopy/style|editcopy page]].
| <div style="float: right; margin-left: 6px">[[File:{{{image}}}|48px|{{#if: {{{link|}}} | link={{{link}}} }}]]</div>
 
  +
}}</noinclude>
}} {{{header}}}</div>
 
  +
|
  +
<noinclude>{{message box
  +
|bgcol = #F9F9F9
  +
|icon = 2
  +
|text = '''Note:''' This page is for users to propose changes for [[Minecraft Wiki/style]]. The main page is an attractive target for vandalism, but we want every user to be able to contribute to the wiki.
  +
<div style="line-height: 100%; text-align: right; font-size: 85%;">[{{fullurl:Special:ComparePages|page1={{urlencode:Minecraft Wiki/style}}&page2={{urlencode:Minecraft Wiki/style/editcopy}}}} Diff with live page]</div>
  +
}}</noinclude>
  +
}}<includeonly><div id="{{{id|}}}" class="fp-section {{{class|}}}" style="{{{style|}}}">
 
{{ #if: {{{header|}}}
 
| <div class="mcwiki-header" style="margin: 3px; font-weight: bold; text-align: center; color: white; font-size: 120%; background-image: {{FileUrl|GrassBackground.png}};{{{headerstyle|}}}; background-color: #6c4d34; border-top: 6px solid #81bb5b;">{{ #if: {{{image|}}}
 
| <div style="float: right; margin-left: 6px;">[[File:{{{image}}}|48px{{ #if: {{{link|}}}|{{!}}link={{{link}}} }}]]</div>
 
}} {{{header}}}</div>
 
}}
 
}}
<div {{#if: {{{class|}}} | class="{{{class}}}" }} style="margin: 0.5em 0.8em; {{{contentstyle|}}}">
+
<div id="{{{contentid|}}}" class="{{{contentclass|}}}" style="margin: 0.5em 0.8em;{{{contentstyle|}}}">
 
{{{content}}}
 
{{{content}}}
  +
</div>
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
{{documentation|content=
+
{{documentation|page=Minecraft Wiki/style/doc}}</noinclude>
Used to create the main content boxes on the main page.
 
 
== Parameters ==
 
 
{{{!}} class="wikitable"
 
! Parameter !! Function
 
{{!}}-
 
{{!}} {{p|id}} {{!!}} set the cell's ID
 
{{!}}-
 
{{!}} {{p|span}} {{!!}} set the cell's column span
 
{{!}}-
 
{{!}} {{p|style}} {{!!}} add styling to the cell
 
{{!}}-
 
{{!}} {{p|header}} {{!!}} add a header
 
{{!}}-
 
{{!}} {{p|headerstyle}} {{!!}} add styling to the header
 
{{!}}-
 
{{!}} {{p|image}} {{!!}} add an image to the header
 
{{!}}-
 
{{!}} {{p|link}} {{!!}} add a link to the image
 
{{!}}-
 
{{!}} {{p|content}} {{!!}} the content in the cell
 
{{!}}-
 
{{!}} {{p|class}} {{!!}} add a class to the content
 
{{!}}-
 
{{!}} {{p|contentstyle}} {{!!}} add styling to the content
 
{{!}}}
 
}}
 
[[Category:Formatting templates]]
 

Revision as of 09:58, 1 April 2021

To propose changes to this page, please use the editcopy page.
[view | edit | history | purge]Documentation

Used to create the main content boxes on the main page.

Parameters

Parameter Function
|id= set the cell's ID
|class= set the cell's class
|style= add styling to the cell
|header= add a header
|headerstyle= add styling to the header
|image= add an image to the header
|link= add a link to the image
|content= the content in the cell
|contentid= add an id to the content
|contentclass= add a class to the content
|contentstyle= add styling to the content
[view | edit | history | purge]The above documentation is transcluded from Minecraft Wiki/style/doc.