Vorlage:Grid/Available images/entry

Aus Minecraft Gameserver Wiki
< Vorlage:Grid‎ | Available images
Version vom 7. September 2013, 00:39 Uhr von Kato-San (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<includeonly>{{#if: {{{h|}}} | ! colspan="12" style="background: #ccc;" {{!}} {{{h}}} |<!-- -->! [[{{{link|{{{1}}}}}}|{{{name|{{{1}}}}}}]] !! File:Grid {{{1}…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | 1 }}{{#if: | {{#ifeq: entry | doc | |

}} }}

[[File:Template-{{#if: | no | {{#if: 1 | bad }} }}info.png|50px]] Dokumentation
{{#if: | 'Diese Vorlage hat keine Dokumentation. Wenn du dir sicher bist wie diese Vorlage arbeitet, kannst du sie hinzufügen.{{#ifeq: entry | doc | |}} |{{#if: 1 | Die Dokumentation dieser Vorlage ist unzureichend. Wenn du weißt wie diese Vorlage arbeitet, bitte erweitere diese.{{#ifeq: entry | doc | |}}}} }}
{{#if: |
}}{{#if: |
}}{{#if: |
CommentCSS.png
}}{{#if: | [[File:{{{image}}}|{{#if: | {{{imagesize}}} | {{#if: | 16px | 32px }} }}|text-top]]
}}
{{#if:
CommentCSS.png
Hinweis: |
CommentCSS.png
Hinweis:
{{#if: | Diskussion }} }}{{#if: Zum Gebrauch von Vorlagen siehe die Vorlagen-Hilfe | {{#if:
CommentCSS.png
Hinweis: |
Zum Gebrauch von Vorlagen siehe die Vorlagen-Hilfe
| Zum Gebrauch von Vorlagen siehe die Vorlagen-Hilfe }} }}
{{#ifeq: Vorlage | Template | }}

This template is to be used in the cells on the table in the Available images template.

Usage

{{Grid/Available images/entry|Bone}}

Will output

{{#if: | ! colspan="12" style="background: #ccc;" | {{{h}}} |! Bone !! Grid Bone.png }} {{#if: | !! colspan="{{#expr: 12 - ({{{2}}} * 2) }}" {{#if: | rowspan="{{{rowspan}}}" }} | }}

If you don't have 10 entries on a row, put the amount of entries you do have on the last line of the row.
For example:

{{Grid/Available images/entry|Stick}}
{{Grid/Available images/entry|Bone|2}}

Will output:
{{#if: | ! colspan="12" style="background: #ccc;" | {{{h}}} |! Stick !! Grid Stick.png }} {{#if: | !! colspan="{{#expr: 12 - ({{{2}}} * 2) }}" {{#if: | rowspan="{{{rowspan}}}" }} | }} {{#if: | ! colspan="12" style="background: #ccc;" | {{{h}}} |! Bone !! Grid Bone.png }} {{#if: 2 | !! colspan="{{#expr: 12 - (2 * 2) }}" {{#if: | rowspan="{{{rowspan}}}" }} | }}

Other parameters

Code Usage Default
h This should not be used with anything below. The value you put here is what the header will say; including any wikicode. None
{{{1}}} The link and link name will be set to this value. The image name will have it inserted as part of it: [[File:Grid {{{1}}}.png]] None
{{{2}}} Explained above. None
rowspan Used in conjunction with {{{2}}}. Sets the amount of rows that will be filled, starting from the row it's on. None
link Used to modify what the first cell links to. {{{1}}}
name Used to modify what the first cell's text is. {{{1}}}
{{#ifeq: entry | doc |

Dies ist die Dokumentation und wird auf der Vorlagenseite eingebunden.

|

Die obige Dokumentation ist unter Vorlage:Grid/Available images/entry/doc zu finden. (Bearbeiten | Versionsgeschichte)

}}