News (06 Aug 2024): Das Wiki läuft jetzt auf einem neuen Server. Aufgrund eines Upgrades von PHP mussten die Wiki-Software und die DPL-Erweiterung aktualisiert werden. Bitte meldet Fehler auf der Hauptseiten-Diskussion.

Vorlage:Sandkasten: Unterschied zwischen den Versionen

Aus GuildWiki
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 18: Zeile 18:
|- valign="top"
|- valign="top"
! style="background-color:lightblue;" | Typ
! style="background-color:lightblue;" | Typ
| <!-- Start:Auto-Typ Code -->{{ #if: {{{alclevel|}}}|{{{typ|[[Alkohol]]}}}
| <!-- Start:Auto-Typ Code -->{{ #if: {{{dauer|}}}|{{{typ|[[Essen]]}}}
| {{ #if: {{{questitem|}}}|{{{typ|[[Quest-Gegenstand]]}}}
| {{ #if: {{{questitem|}}}|{{{typ|[[Quest-Gegenstand]]}}}
| {{ #if: {{{sammler|}}}|{{{typ|[[Trophäe]]}}}
| {{ #if: {{{normal|}}}|{{{typ|[[Wiederverwertbarer Gegenstand]]}}}
| {{ #if: {{{normal|}}}|{{{typ|[[Wiederverwertbarer Gegenstand]]}}}
| {{ #if: {{{profi|}}}|{{{typ|[[Wiederverwertbarer Gegenstand]]}}}
| {{ #if: {{{selten|}}}|{{{typ|[[Wiederverwertbarer Gegenstand]]}}}
| {{ #if: {{{benutzungen|}}}|{{{typ|[[Werkzeug]]}}}|{{{typ|Nicht angegeben}}}
| {{ #if: {{{benutzungen|}}}|{{{typ|[[Werkzeug]]}}}|{{{typ|Nicht angegeben}}}
}}}}}}}}}}}}<!-- End:Auto-typing Code -->
}}}}}}}}}}}}<!-- End:Auto-typing Code -->
{{ #ifeq: {{{bundle|no}}} | no |
{{ #ifeq: {{{bündel|nein}}} | nein |
{{pipe}}- valign="top"
{{pipe}}- valign="top"
! style="background-color:lightblue;" {{pipe}} Wert
! style="background-color:lightblue;" {{pipe}} Wert
Zeile 33: Zeile 32:
| {{{kampagne|[[Basis]]}}}
| {{{kampagne|[[Basis]]}}}
|- valign="top"
|- valign="top"
<!-- Start:Optionale Einträge -->{{ #if: {{{sammler|}}} |
<!-- Start:Optionale Einträge -->{{ #if: {{{benutzungen|}}} |
    ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Sammler]]</span>
    {{pipe}} {{{sammler|}}}
}}
|- valign="top"
{{ #if: {{{benutzungen|}}} |
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Benutzungen]]</span>
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Benutzungen]]</span>
     {{pipe}} {{{benutzungen|}}}
     {{pipe}} {{{benutzungen|}}}
}}
}}
|- valign="top"  
|- valign="top"  
{{ #if: {{{alclevel|}}} |
{{ #if: {{{dauer|}}} |
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Drunk|Intoxication]] level</span>
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">Dauer</span>
     {{pipe}} {{{alclevel}}}
     {{pipe}} {{{dauer}}}
     {{pipe}}- valign="top"
     {{pipe}}- valign="top"
    ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Drunk|Intoxication]] duration</span>
    {{pipe}} {{{alcduration|1 min.}}}
}}
}}
|- valign="top"
|- valign="top"
{{ #if: {{{normal|}}} |
{{ #if: {{{normal|}}} |
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Common crafting material|Normal]]</span>
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Gebräuchliches Handwerksmaterial|Normal]]</span>
     {{pipe}} {{{normal}}}  
     {{pipe}} {{{normal}}}  
}}
}}
|- valign="top"
|- valign="top"
{{ #if: {{{profi|}}} |
{{ #if: {{{selten|}}} |
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Rare crafting material|Profi]]</span>
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Seltenes Handwerksmaterial|Selten]]</span>
     {{pipe}} {{{profi|}}}  
     {{pipe}} {{{selten|}}}  
}}
}}
|- valign="top"
|- valign="top"
{{ #if: {{{questitem|}}} |
{{ #if: {{{questgegenstand|}}} |
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Quest item]] for</span>
     ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Quest-Gegenstand]] for</span>
     {{pipe}} {{{questitem|}}}  
     {{pipe}} {{{questgegenstand|}}}  
}}
}}


<!-- End:Optional Sections Code -->|}<noinclude>
<!-- End:Optional Sections Code -->|}<noinclude>
{{clear}}
{{clear}}
==Usage==
==Benutzung==


This template can be used for many [[item]]s such as [[Trophäe]], [[Handwerksmaterial]], [[Rare crafting material]]s, [[Quest Gegenstand]], [[Wiederverwertbarer Gegenstand]], [[Kit]]s, [[Scroll]]s, and [[Alkohol]]. The template can also be used for [[Bundle]] items.  The template has been modified from the original [[Template:Item infobox]] to include salvage info if specified. This template auto-types and auto-categorises items dependent on the parameters supplied (see [[Template:Item infobox#Parameters|Parameters]]).
Diese Vorlage kann für viele [[Gegenstand|Gegenstände]] benutzt werden. z.b.
*[[Trophäe]]
*[[Gebräuchliches Handwerksmaterial]]
*[[Seltenes Handwerksmaterial]]
*[[Quest-Gegenstand]]
*[[Wiederverwertbarer Gegenstand]]
*[[Werkzeug]]
*[[Schriftrolle]]
*[[Alkohol]]
*[[Essen]]
 
The template can also be used for [[Bundle]] items.  The template has been modified from the original [[Template:Item infobox]] to include salvage info if specified. This template auto-types and auto-categorises items dependent on the parameters supplied (see [[Template:Item infobox#Parameters|Parameters]]).
<pre>
<pre>
{{Infobox Gegenstand
{{Infobox Gegenstand
Zeile 80: Zeile 83:
| benutzungen =
| benutzungen =
| sammler =
| sammler =
| alclevel =
| dauer =  
| alcduration =
| normal =
| normal =
| profi =
| selten =
| questitem =
| questgegenstand =
| bundle =
| bündel =
}}
}}
</pre>
</pre>
Zeile 112: Zeile 114:
| normal = [[Pile of Glittering Dust|Piles of Glittering Dust]]
| normal = [[Pile of Glittering Dust|Piles of Glittering Dust]]
| profi = [[Bolt of Silk|Bolts of Silk]]
| profi = [[Bolt of Silk|Bolts of Silk]]
| render= default
}}
}}
</pre>
</pre>


[[Category:Infobox templates]]
[[Kategorie:Vorlage Infobox]]
[[Category:Item templates]]
</noinclude>
</noinclude>
<includeonly><div style="display:none;"><!-- Start:Categorisation Code -->
<includeonly><div style="display:none;"><!-- Start:Categorisation Code -->
<!-- Main Category defined by other parameters, then type -->
<!-- Main Category defined by other parameters, then type -->
Zeile 127: Zeile 128:
| [[bundle]] = [[Kategorie:Bundle items]]
| [[bundle]] = [[Kategorie:Bundle items]]
| [[quest item]] = [[Kategorie:Quest items]]
| [[quest item]] = [[Kategorie:Quest items]]
| [[alcohol]] = [[Kategorie:Alcohol]]
| [[Alkohol]] = [[Kategorie:Alkohol]]
| [[salvage item]] = [[Kategorie:Salvage items]]
| [[salvage item]] = [[Kategorie:Salvage items]]
| [[trophy]] = [[Kategorie:Trophies]]
| [[Trophäe]] = [[Kategorie:Trophäe]]
| [[kit]] = [[Kategorie:Kits]]
| [[Werkzeug]] = [[Kategorie:Werkzeug]]
| [[schriftrolle]] = [[Kategorie:Schriftrolle]]
| [[Schriftrolle]] = [[Kategorie:Schriftrolle]]
| [[common crafting material]] = [[Kategorie:Common crafting materials]]
| [[Gebräuchliches Handwerksmaterial]] = [[Kategorie:Gebräuchliches Handwerksmaterial]]
| [[rare crafting material]] = [[Kategorie:Rare crafting materials]]
| [[Seltenes Handwerksmaterial]] = [[Kategorie:Seltenes Handwerksmaterial]]
| [[miniature]] = [[Kategorie:Miniatures]]
| [[miniature]] = [[Kategorie:Miniatures]]
| [[key]] = [[Kategorie:Keys]]
| [[Schlüssel]] = [[Kategorie:Schlüssel]]
| salvage item = [[Kategorie:Salvage items]]
| salvage item = [[Kategorie:Salvage items]]
| kit = [[Kategorie:Kits]]
| kit = [[Kategorie:Kits]]
| schriftrolle= [[Kategorie:Schriftrolle]]
| schriftrolle= [[Kategorie:Schriftrolle]]
| common crafting material = [[Kategorie:Common crafting materials]]
| common crafting material = [[Kategorie:Gebräuchliches Handwerksmaterial]]
| rare crafting material = [[Kategorie:Rare crafting materials]]
| rare crafting material = [[Kategorie:Seltenes Handwerksmaterial]]
| miniature = [[Kategorie:Miniatures]]
| miniature = [[Kategorie:Miniatures]]
| key = [[Kategorie:Keys]]
| Schlüssel = [[Kategorie:Schlüssel]]
}}
{{ #switch: {{lc: {{{normal|}}} }}
| [[iron ingot]]s = [[Kategorie:Contains iron]]
| [[bolt of cloth|bolts of cloth]] = [[Kategorie:Contains cloth]]
| [[wood plank]]s = [[Kategorie:Contains wood]]
| [[pile of glittering dust|piles of glittering dust]] = [[Kategorie:Contains dust]]
| [[tanned hide square]]s = [[Kategorie:Contains hide]]
| [[scale]]s = [[Kategorie:Contains scale]]
| [[bone]]s = [[Kategorie:Contains bone]]
| [[chitin fragment]]s = [[Kategorie:Contains chitin]]
| [[feather]]s = [[Kategorie:Contains feathers]]
| [[granite slab]]s = [[Kategorie:Contains granite]]
| [[plant fiber]]s = [[Kategorie:Contains fibers]]
| iron ingots = [[Kategorie:Contains iron]]
| bolts of cloth = [[Kategorie:Contains cloth]]
| wood planks = [[Kategorie:Contains wood]]
| piles of glittering dust = [[Kategorie:Contains dust]]
| tanned hide squares = [[Kategorie:Contains hide]]
| scales = [[Kategorie:Contains scale]]
| bones = [[Kategorie:Contains bone]]
| chitin fragments = [[Kategorie:Contains chitin]]
| feathers = [[Kategorie:Contains feathers]]
| granite slabs = [[Kategorie:Contains granite]]
| plant fibers = [[Kategorie:Contains fibers]]
}}
}}
{{ #switch: {{lc: {{{profi|}}} }}
<!--Ende der Kategoriesierung --></div></includeonly>
| [[steel ingot]]s = [[Kategorie:Contains steel]]
| [[leather square]]s = [[Kategorie:Contains leather]]
| [[bolt of linen|bolts of linen]] = [[Kategorie:Contains linen]]
| [[bolt of silk|bolts of silk]] = [[Kategorie:Contains silk]]
| [[fur square]]s = [[Kategorie:Contains fur]]
| [[roll of parchment|rolls of parchment]] = [[Kategorie:Contains parchment]]
| [[amber chunk]]s = [[Kategorie:Contains amber]]
| [[jadeite shard]]s = [[Kategorie:Contains jadeite]]
| [[spiritwood plank]]s = [[Kategorie:Contains spiritwood]]
| [[tempered glass vial]]s = [[Kategorie:Contains glass vial]]
| [[vial of ink|vials of ink]] = [[Kategorie:Contains ink]]
| [[lump of charcoal|lumps of charcoal]] = [[Kategorie:Contains charcoal]]
| [[monstrous fang]]s = [[Kategorie:Contains fangs]]
| [[ruby|rubies]] = [[Kategorie:Contains ruby]]
| [[sapphire]]s = [[Kategorie:Contains sapphire]]
| [[diamond]]s = [[Kategorie:Contains diamond]]
| steel ingots = [[Kategorie:Contains steel]]
| leather squares = [[Kategorie:Contains leather]]
| bolts of linen = [[Kategorie:Contains linen]]
| bolts of silk = [[Kategorie:Contains silk]]
| fur squares = [[Kategorie:Contains fur]]
| rolls of parchment = [[Kategorie:Contains parchment]]
| amber chunks = [[Kategorie:Contains amber]]
| jadeite shards = [[Kategorie:Contains jadeite]]
| spiritwood planks = [[Kategorie:Contains spiritwood]]
| tempered glass vials = [[Kategorie:Contains glass vial]]
| vials of ink = [[Kategorie:Contains ink]]
| lumps of charcoal = [[Kategorie:Contains charcoal]]
| monstrous fangs = [[Kategorie:Contains fangs]]
| rubies = [[Kategorie:Contains ruby]]
| sapphires = [[Kategorie:Contains sapphire]]
| diamonds = [[Kategorie:Contains diamond]]
}}<!--Ende der Kategoriesierung --></div></includeonly>

Version vom 7. Mai 2007, 15:05 Uhr

Dies ist der GuildWiki-Sandkasten für Vorlagen. Hier kannst du neue Vorlagen testen.

Bitte bedenke, dass jeder deine Änderungen überschreiben kann und der Sandkasten regelmäßig geleert wird.

  • Bitte diese Notiz so stehen lassen.
  • Diese Seite nicht verschieben.

Viel Spaß beim ausprobieren!

Sandkasten
Sandkasten.jpg
Typ Nicht angegeben}}
Wert Nicht verkaufbar
Kampagne Basis

Benutzung

Diese Vorlage kann für viele Gegenstände benutzt werden. z.b.

The template can also be used for Bundle items. The template has been modified from the original Template:Item infobox to include salvage info if specified. This template auto-types and auto-categorises items dependent on the parameters supplied (see Parameters).

{{Infobox Gegenstand
| name = 
| bild = 
| typ = 
| wert = 
| kampagne = 
| benutzungen =
| sammler =
| dauer = 
| normal =
| selten =
| questgegenstand =
| bündel =
}}

Parameters

name
Defaults to the name of the article ({{PAGENAME}}).
image
The image should be .jpg format. This should be the inventory icon for the item. See also the image use policy. Defaults to the page name ({{PAGENAME}}.png).
type
Currently this will auto-type in the following order: Alcohol (alclevel is non-blank), Quest item (questitem is non-blank), Trophy (collector is non-blank), Salvage Item (commonsalvage or raresalvage is non-blank), Kit (uses is non-blank) and then Not Specified. Auto-typing is exclusive, meaning that an item can not be typed as two of the categories (e.g. Alcohol and Quest item). If an item fulfills two sets of criteria, only the first criteria will be used. This field can also be manually set.
value
How much you would get for this item if sold to a Merchant. Defaults to "Can't be sold" for Quest items, etc. Omit if the item is a Bundle.
campaign
The campaign this item is available in. Defaults to Core.
benutzungen
Optional. List the number of uses, sets Kategorie:Werkzeug and type to Werkzeug.
collector
Optional. List item collectors, sets Category:Trophies and type to Trophy (provided that alclevel and questitem are not specified).
alclevel
Optional. List the intoxication level, sets Category:Alcohol and type to Alcohol.
alcduration
Optional. List the intoxication duration, defaults to 1 minute.
commonsalvage
Optional. List common salvage materials, sets type to Salvage item and Category:Salvage items if another type has not already been set. This field autocategorises to Category:Contains (common salvage), for single terms only. If you list multiple salvage items, please manually adjust the resulting categories.
raresalvage
Optional. List rare salvage materials, sets type to Salvage item and Category:Salvage items if another type has not already been set. This field autocategorises to Category:Contains (rare salvage), for single terms only. If you list multiple salvage items, please manually adjust the resulting categories.
questitem
Optional. List quests item is involved in, sets Category:Quest items and type to Quest item (provided that alclevel is not specified)
bundle
Optional. Setting this removes the value field in the item infobox. For use with Bundle items.

Beispiel

{{Infobox Gegenstand
| name = Spider Web
| wert = 5 
| kampagne = [[Nightfall]]
| normal = [[Pile of Glittering Dust|Piles of Glittering Dust]]
| profi = [[Bolt of Silk|Bolts of Silk]]
}}