Minecraft Wiki
(Add width param)
(misc updates)
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: {{{width|33%}}}; {{{style|}}}" |
 
  +
<noinclude>{{message box
{{#if: {{{header|}}}
 
  +
|bgcol = #F9F9F9
| <div class="mcwiki-header" style="
 
  +
|icon = 2
margin: 3px;
 
  +
|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.
font-weight: bold;
 
  +
<div style="line-height: 100%; text-align: right; font-size: 85%;">[{{fullurl:Special:ComparePages|page1={{urlencode:Minecraft Wiki/style}}&page2={{urlencode:Minecraft Wiki/editcopy/style}}}} Diff with main page]</div>
text-align: center;
 
  +
}}</noinclude>
color: white;
 
 
}}<includeonly>| {{ #if: {{{id|}}} | id="{{{id}}}" }} {{ #if: {{{class|}}} | class="{{{class}}}" }} {{ #if: {{{span|}}} | colspan="{{{span}}}" }} style="background-color: #FCFCFC; border: 1px solid #CCC; vertical-align: top; width: {{{width|33%}}}; {{{style|}}};" |
font-size: 120%;
 
 
{{ #if: {{{header|}}}
background: {{FileUrl|GrassBackground.png}}; {{{headerstyle|}}}">{{
 
  +
| <div class="mcwiki-header" style="margin: 3px; font-weight: bold; text-align: center; color: white; font-size: 120%; background-image: {{FileUrl|GrassBackground.png}}; {{{headerstyle|}}};">{{ #if: {{{image|}}}
#if: {{{image|}}}
 
| <div style="float: right; margin-left: 6px">[[File:{{{image}}}|48px|{{#if: {{{link|}}} | link={{{link}}} }}]]</div>
+
| <div style="float: right; margin-left: 6px;">[[File:{{{image}}}|48px{{ #if: {{{link|}}} | {{!}}link={{{link}}} }}]]</div>
}} {{{header}}}</div>
+
}} {{{header}}}</div>
 
}}
 
}}
<div {{#if: {{{class|}}} | class="{{{class}}}" }} style="margin: 0.5em 0.8em; {{{contentstyle|}}}">
+
<div {{ #if: {{{contentclass|}}} | class="{{{contentclass}}}" }} style="margin: 0.5em 0.8em; {{{contentstyle|}}};">
 
{{{content}}}
 
{{{content}}}
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 
{{documentation|content=
 
{{documentation|content=
Used to create the main content boxes on the [[Minecraft Wiki/editcopy|editcopy]] page.
+
Used to create the main content boxes on the {{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style | [[Minecraft Wiki|main page]] | [[Minecraft Wiki/editcopy|editcopy page]] }}.
   
 
== Parameters ==
 
== Parameters ==
Line 24: Line 24:
 
{{!}}-
 
{{!}}-
 
{{!}} {{p|id}} {{!!}} set the cell's ID
 
{{!}} {{p|id}} {{!!}} set the cell's ID
  +
{{!}}-
  +
{{!}} {{p|class}} {{!!}} set the cell's class
 
{{!}}-
 
{{!}}-
 
{{!}} {{p|span}} {{!!}} set the cell's column span
 
{{!}} {{p|span}} {{!!}} set the cell's column span
Line 41: Line 43:
 
{{!}} {{p|content}} {{!!}} the content in the cell
 
{{!}} {{p|content}} {{!!}} the content in the cell
 
{{!}}-
 
{{!}}-
{{!}} {{p|class}} {{!!}} add a class to the content
+
{{!}} {{p|contentclass}} {{!!}} add a class to the content
 
{{!}}-
 
{{!}}-
 
{{!}} {{p|contentstyle}} {{!!}} add styling to the content
 
{{!}} {{p|contentstyle}} {{!!}} add styling to the content
Line 47: Line 49:
 
}}
 
}}
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
  +
{{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style
  +
| <!-- categories and interwikis for the live page here -->
   
  +
| <!-- categories and interwikis for the editcopy page here -->
 
[[de:Minecraft Wiki/editcopy/style]]
 
[[de:Minecraft Wiki/editcopy/style]]
 
[[fr:Minecraft Wiki/copie de travail/style]]
 
[[fr:Minecraft Wiki/copie de travail/style]]
Line 57: Line 62:
 
[[pt-br:Minecraft Wiki/cópiaparaedição/style]]
 
[[pt-br:Minecraft Wiki/cópiaparaedição/style]]
 
[[ru:Заглавная страница/Копия/style]]
 
[[ru:Заглавная страница/Копия/style]]
  +
  +
}}</noinclude>

Revision as of 05:56, 17 February 2018

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.
[edit | history | purge]Documentation

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

Parameters

Parameter Function
|id= set the cell's ID
|class= set the cell's class
|span= set the cell's column span
|width= adjust the cell's width
|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
|contentclass= add a class to the content
|contentstyle= add styling to the content