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)
Utworzył nową stronę „{{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, with...”
 
Slawko97 (dyskusja | edycje)
Nie podano opisu zmian
Linia 8: Linia 8:


== Examples ==
== Examples ==
To display this image [[File:Grid Raw Porkchop.png]] you would put: <code><nowiki>{{Grid|Raw Porkchop}}</nowiki></code>
To display this image [[File:Grid Schab.png]] you would put: <code><nowiki>{{Grid|Schab}}</nowiki></code>
;which will result in:
;which will result in:
{{Grid|Raw Porkchop}}
{{Grid|Schab}}




Linia 31: Linia 31:
To align text to the middle on the same line as the image you would put: <code><nowiki>Smells like {{Grid|Raw Porkchop|middle}} in here!</nowiki></code>
To align text to the middle on the same line as the image you would put: <code><nowiki>Smells like {{Grid|Raw Porkchop|middle}} in here!</nowiki></code>
;which will result in:
;which will result in:
Smells like {{Grid|Raw Porkchop|middle}} in here!
Smells like {{Grid|Schab|middle}} in here!




To change the link from the image name put: <code><nowiki>{{Grid|Charcoal (Item)|link=Coal#Charcoal}}</nowiki></code>
To change the link from the image name put: <code><nowiki>{{Grid|Charcoal (Item)|link=Coal#Charcoal}}</nowiki></code>
;which will result in:
;which will result in:
{{Grid|Charcoal (Item)|link=Coal (Item)#Charcoal}}
{{Grid|Węgiel|link=Węgiel}}




Linia 42: Linia 42:
To re-add the title, put: <code><nowiki>{{Grid|Raw Porkchop|link=|title=Smelly Pork}}</nowiki></code>
To re-add the title, put: <code><nowiki>{{Grid|Raw Porkchop|link=|title=Smelly Pork}}</nowiki></code>
;which will result in:
;which will result in:
{{Grid|Raw Porkchop|link=|title=Smelly Porkchop}}
{{Grid|Schab|link=|title=Schab}}


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

Wersja z 22:01, 25 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.

Usage

Put {{Grid|Name}}} where you want the image.

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}}

Examples

To display this image Plik:Grid Schab.png you would put: {{Grid|Schab}}

which will result in

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

Other templates

These templates implement the grid template into a GUI screen which mimics how it would look in Minecraft with CSS. Szablon:Grid/See also

Szablon:Doc/end