Minecraft Wiki
(Add colspan and simplify)
(sync responsive main page layout)
Line 12: Line 12:
 
<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 live page]</div>
 
<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 live page]</div>
 
}}</noinclude>
 
}}</noinclude>
}}<includeonly>| id="{{{id|}}}" class="{{{class|}}}" colspan="{{{span|}}}" rowspan="{{{rowspan|}}}" style="background-color: #FCFCFC; border: 1px solid #ccc; vertical-align: top; width: {{{width|33%}}};{{{style|}}};" |
+
}}<includeonly><div id="{{{id|}}}" class="fp-section {{{class|}}}" style="{{{style|}}}">
 
{{ #if: {{{header|}}}
 
{{ #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|}}};">{{ #if: {{{image|}}}
+
| <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|}}}
 
| <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: {{{contentclass|}}} | class="{{{contentclass}}}" }} 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|content=
Line 32: Line 33:
 
{{!}}-
 
{{!}}-
 
{{!}} {{p|class}} {{!!}} set the cell's class
 
{{!}} {{p|class}} {{!!}} set the cell's class
{{!}}-
 
{{!}} {{p|span}} {{!!}} set the cell's column span
 
{{!}}-
 
{{!}} {{p|width}} {{!!}} adjust the cell's width
 
 
{{!}}-
 
{{!}}-
 
{{!}} {{p|style}} {{!!}} add styling to the cell
 
{{!}} {{p|style}} {{!!}} add styling to the cell
Line 48: Line 45:
 
{{!}}-
 
{{!}}-
 
{{!}} {{p|content}} {{!!}} the content in the cell
 
{{!}} {{p|content}} {{!!}} the content in the cell
 
{{!}}-
 
{{!}} {{p|contentid}} {{!!}} add an id to the content
 
{{!}}-
 
{{!}}-
 
{{!}} {{p|contentclass}} {{!!}} add a class to the content
 
{{!}} {{p|contentclass}} {{!!}} add a class to the content

Revision as of 21:16, 6 November 2019

To propose changes to this page, please use the editcopy page.
[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