Strona główna/style: Różnice pomiędzy wersjami

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
[wersja nieprzejrzana][wersja nieprzejrzana]
Ffbot (dyskusja | edycje)
d change pt-br to pt
Frisk (dyskusja | edycje)
aktualizacja, autor: User:MarkusRost
Linia 1: Linia 1:
{{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style |
<includeonly><div id="{{{id|}}}" class="fp-section {{{class|}}}" style="{{{style|}}}" >
<noinclude>{{message box
|bgcol = #F9F9F9
|icon  = 2
|text  = To propose changes to this page, please use the [[Minecraft Wiki/editcopy/style|editcopy page]].
}}</noinclude>
|
<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/editcopy/style}}}} Diff with live page]</div>
}}</noinclude>
}}<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|}}};" |
{{ #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=
Used to create the main content boxes on the {{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style | [[Minecraft Wiki|main page]] | [[Minecraft Wiki/editcopy|editcopy page]] }}.
== Parameters ==
{{{!}} class="wikitable"
{{{!}} class="wikitable"
! Parameter !! Function
! Parameter !! Function
Linia 32: Linia 15:
{{!}}-
{{!}}-
{{!}} {{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
Linia 48: Linia 27:
{{!}}-
{{!}}-
{{!}} {{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
Linia 53: Linia 34:
{{!}} {{p|contentstyle}} {{!!}} add styling to the content
{{!}} {{p|contentstyle}} {{!!}} add styling to the content
{{!}}}
{{!}}}
}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
{{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style
{{ #ifeq: {{FULLPAGENAME}} | Minecraft Wiki/style
Linia 68: Linia 48:
[[pt:Minecraft Wiki/cópiaparaedição/style]]
[[pt:Minecraft Wiki/cópiaparaedição/style]]
[[ru:Заглавная страница/Копия/style]]
[[ru:Заглавная страница/Копия/style]]
</noinclude>

Wersja z 23:29, 3 paź 2019

Parameter Function
Szablon:P set the cell's ID
Szablon:P set the cell's class
Szablon:P add styling to the cell
Szablon:P add a header
Szablon:P add styling to the header
Szablon:P add an image to the header
Szablon:P add a link to the image
Szablon:P the content in the cell
Szablon:P add an id to the content
Szablon:P add a class to the content
Szablon:P add styling to the content

{{ #ifeq: Strona główna/style | Minecraft Wiki/style

 | 
 |