Szablon:Grid/opis: Różnice pomiędzy wersjami

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
[wersja nieprzejrzana][wersja nieprzejrzana]
Slawko97 (dyskusja | edycje)
zobacz też
Slawko97 (dyskusja | edycje)
tłumaczenie
Linia 1: Linia 1:
{{doc/start}}
{{doc/start}}
The grid template is a singular grid cell, which has the ability to display any image (usually a block or item) that is uploaded as Grid {{{1}}}.png, within it.
The grid template is a singular grid cell, which has the ability to display any image (usually a block or item) that is uploaded as Grid {{{1}}}.png, within it.
== Usage ==
==Zastosowanie==
Umieść <code><nowiki>{{Grid|Name}}}</nowiki></code> gdzie chcesz grafikę.
Umieść <code><nowiki>{{Grid|Name}}}</nowiki></code> gdzie chcesz grafikę.


Linia 7: Linia 7:
<code><nowiki>{{Grid|Name|Vertical Alignment|link=Optional link override|title=Optional title, is overridden by link titles}}</nowiki></code>
<code><nowiki>{{Grid|Name|Vertical Alignment|link=Optional link override|title=Optional title, is overridden by link titles}}</nowiki></code>


== Examples ==
==Wzór==
Można uzyskać taki efekt [[File:Grid Schab.png]] poprzez: <code><nowiki>{{Grid|Schab}}</nowiki></code>
Można uzyskać taki efekt [[File:Grid Schab.png]] poprzez: <code><nowiki>{{Grid|Schab}}</nowiki></code>
;co da:
;co da:
Linia 48: Linia 48:
{{Grid/Available images}}
{{Grid/Available images}}


== Other templates ==
==Inne szablony==
These templates implement the grid template into a GUI screen which mimics how it would look in Minecraft with CSS.
These templates implement the grid template into a GUI screen which mimics how it would look in Minecraft with CSS.
{{Grid/Zobacz też}}
{{Grid/Zobacz też}}


{{doc/end}}
{{doc/end}}

Wersja z 16:46, 29 paź 2011

Szablon:Doc/start The grid template is a singular grid cell, which has the ability to display any image (usually a block or item) that is uploaded as Grid {{{1}}}.png, within it.

Zastosowanie

Umieść {{Grid|Name}}} gdzie chcesz grafikę.

You can also specify the vertical alignment of the text with the image. {{Grid|Name|Vertical Alignment|link=Optional link override|title=Optional title, is overridden by link titles}}

Wzór

Można uzyskać taki efekt Plik:Grid Schab.png poprzez: {{Grid|Schab}}

co da

Schab


If no image is specified, the background will be added on its own, allowing you to do layouts like so:

{{Grid|TNT}}{{Grid|TNT}}{{Grid}}{{Grid}}{{Grid|TNT}}{{Grid|TNT}}<br />
{{Grid|TNT}}{{Grid|TNT}}{{Grid}}{{Grid}}{{Grid|TNT}}{{Grid|TNT}}<br />
{{Grid}}{{Grid}}{{Grid|TNT}}{{Grid|TNT}}{{Grid}}{{Grid}}<br />
{{Grid}}{{Grid|TNT}}{{Grid|TNT}}{{Grid|TNT}}{{Grid|TNT}}{{Grid}}<br />
{{Grid}}{{Grid|TNT}}{{Grid|TNT}}{{Grid|TNT}}{{Grid|TNT}}{{Grid}}<br />
{{Grid}}{{Grid|TNT}}{{Grid}}{{Grid}}{{Grid|TNT}}{{Grid}}
which will result in











































To align text to the middle on the same line as the image you would put: Smells like {{Grid|Raw Porkchop|middle}} in here!

which will result in

Smells like Schab in here!


To change the link from the image name put: {{Grid|Charcoal (Item)|link=Coal#Charcoal}}

which will result in



If |link= is left blank, the link will be removed which in turn removes the title automatically added by links.
To re-add the title, put: {{Grid|Raw Porkchop|link=|title=Smelly Pork}}

which will result in

Schab

Note that if a link is present, its title will override whatever title is specified.

Szablon:Grid/Available images

Inne szablony

These templates implement the grid template into a GUI screen which mimics how it would look in Minecraft with CSS.

Szablon:Doc/end