(Add width param) |
Dinoguy1000 (talk | contribs) (misc updates) |
||
Line 1: | Line 1: | ||
+ | {{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style || |
||
⚫ | |||
+ | <noinclude>{{message box |
||
⚫ | |||
+ | |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; |
||
⚫ | |||
− | font-size: 120%; |
||
⚫ | |||
− | 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> |
|
− | + | }} {{{header}}}</div> |
|
}} |
}} |
||
− | <div {{#if: {{{ |
+ | <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]] |
+ | 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| |
+ | {{!}} {{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.
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 |