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
(stöhn...was für ein Monster ^^)
Zeile 12: Zeile 12:
[[Kategorie:Vorlage]] [[Kategorie:Sandkasten]]
[[Kategorie:Vorlage]] [[Kategorie:Sandkasten]]
-------------------------------------------------------------------------------------------</noinclude>
-------------------------------------------------------------------------------------------</noinclude>
{| style="margin: 0 0 0.5em 1em; border:1px solid silver; float:right; font-size:90%; text-align:left;" cellpadding="5" cellspacing="3"
! colspan="2" style="font-size:110%; text-align:center; background-color:#FC6;" | {{{name|{{PAGENAME}}}}}
|-
| colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.png]]}}}
|- valign="top"
! style="background-color:#FC6;" | Type
| <!-- Start:Auto-typing Code -->{{ #if: {{{alclevel|}}}|{{{typ|[[Alcohol]]}}}
| {{ #if: {{{questitem|}}}|{{{typ|[[Quest item]]}}}
| {{ #if: {{{sammler|}}}|{{{typ|[[Trophäe]]}}}
| {{ #if: {{{normal|}}}|{{{typ|[[Salvage item]]}}}
| {{ #if: {{{profi|}}}|{{{typ|[[Salvage item]]}}}
| {{ #if: {{{uses|}}}|{{{typ|[[Kit]]}}}|{{{typ|Not specified}}}
}}}}}}}}}}}}<!-- End:Auto-typing Code -->
{{ #ifeq: {{{bundle|no}}} | no |
{{pipe}}- valign="top"
! style="background-color:#FC6;" {{pipe}} Wert
{{pipe}} {{{wert|Can't be sold}}} |}}
|- valign="top"
! style="background-color:#FC6;" | [[Kampagne]]
| {{{kampagne|[[Basis]]}}}
|- valign="top"
<!-- Start:Optional Sections Code -->{{ #if: {{{sammler|}}} |
    ! style="background-color:#FC6;" {{pipe}} <span style="white-space:nowrap;">[[Sammler|Collector(s)]]</span>
    {{pipe}} {{{sammler|}}}
}}
|- valign="top"
{{ #if: {{{uses|}}} |
    ! style="background-color:#FC6;" {{pipe}} <span style="white-space:nowrap;">[[Uses]]</span>
    {{pipe}} {{{uses|}}}
}}
|- valign="top"
{{ #if: {{{alclevel|}}} |
    ! style="background-color:#FC6;" {{pipe}} <span style="white-space:nowrap;">[[Drunk|Intoxication]] level</span>
    {{pipe}} {{{alclevel}}}
    {{pipe}}- valign="top"
    ! style="background-color:#FC6;" {{pipe}} <span style="white-space:nowrap;">[[Drunk|Intoxication]] duration</span>
    {{pipe}} {{{alcduration|1 min.}}}
}}
|- valign="top"
{{ #if: {{{normal|}}} |
    ! style="background-color:#FC6;" {{pipe}} <span style="white-space:nowrap;">[[Common crafting material|Common salvage]]</span>
    {{pipe}} {{{normal}}}
}}
|- valign="top"
{{ #if: {{{profi|}}} |
    ! style="background-color:#FC6;" {{pipe}} <span style="white-space:nowrap;">[[Rare crafting material|Rare salvage]]</span>
    {{pipe}} {{{profi|}}}
}}
|- valign="top"
{{ #if: {{{questitem|}}} |
    ! style="background-color:#FC6;" {{pipe}} <span style="white-space:nowrap;">[[Quest item]] for</span>
    {{pipe}} {{{questitem|}}}
}}
{{ #if: {{{render|}}} |
    {{ #ifeq: {{{render}}} | default |
      {{pipe}}-
      {{pipe}} colspan="2" align="center" {{pipe}} [[Image:{{PAGENAME}} render.jpg|100px]] |
      {{pipe}}-
      {{pipe}} colspan="2" align="center" {{pipe}} {{{render|}}}
    }}
}}
<!-- End:Optional Sections Code -->|}<noinclude>
{{clear}}
==Usage==
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]]).
<pre>
{{Item infobox
| name =
| image =
| type =
| value =
| campaign =
| uses =
| collector =
| alclevel =
| alcduration =
| commonsalvage =
| raresalvage =
| questitem =
| render =
| bundle =
}}
</pre>
==Parameters==
; name : Defaults to the name of the article (<code><nowiki>{{PAGENAME}}</nowiki></code>).
; image : The image should be .jpg format. This should be the inventory icon for the item. See also the [[Guild Wars Wiki:Policy/Images|image use policy]]. Defaults to the page name (<code><nowiki>{{PAGENAME}}.png</nowiki></code>).
; 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]].
; uses : Optional. List the number of uses, sets [[:Category:Kits]] and type to [[Kit]].
; 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)
; render : Optional. Providing render=default, the image will be set to (<code><nowiki>{{PAGENAME}} render.jpg</nowiki></code>) and 100px wide. Provide the wikified render link. The image should be .jpg format. This should be a render of the item. See also the [[Guild Wars Wiki:Policy/Images|image use policy]].
; bundle : Optional. Setting this removes the value field in the item infobox. For use with [[Bundle]] items.
==Example==
<pre>
{{Item infobox
| name = Spider Web
| value = 5
| campaign = [[Nightfall]]
| commonsalvage = [[Pile of Glittering Dust|Piles of Glittering Dust]]
| raresalvage = [[Bolt of Silk|Bolts of Silk]]
| render= default
}}
</pre>
[[Category:Infobox templates]]
[[Category:Item templates]]
</noinclude>
<includeonly><div style="display:none;"><!-- Start:Categorisation Code -->
<!-- Main Category defined by other parameters, then type -->
{{ #if: {{{questitem|}}}|[[Category:Quest items]]}}
{{ #if: {{{collector|}}}|[[Category:Trophies]]}}
{{ #if: {{{alclevel|}}}|[[Category:Alcohol]]}}
{{ #switch: {{lc: {{{type|}}} }}
| [[bundle]] = [[Kategorie:Bundle items]]
| [[quest item]] = [[Kategorie:Quest items]]
| [[alcohol]] = [[Kategorie:Alcohol]]
| [[salvage item]] = [[Kategorie:Salvage items]]
| [[trophy]] = [[Kategorie:Trophies]]
| [[kit]] = [[Kategorie:Kits]]
| [[scroll]] = [[Kategorie:Scrolls]]
| [[common crafting material]] = [[Kategorie:Common crafting materials]]
| [[rare crafting material]] = [[Kategorie:Rare crafting materials]]
| [[miniature]] = [[Kategorie:Miniatures]]
| [[key]] = [[Kategorie:Keys]]
| salvage item = [[Kategorie:Salvage items]]
| kit = [[Kategorie:Kits]]
| scroll = [[Kategorie:Scrolls]]
| common crafting material = [[Kategorie:Common crafting materials]]
| rare crafting material = [[Kategorie:Rare crafting materials]]
| miniature = [[Kategorie:Miniatures]]
| key = [[Kategorie:Keys]]
}}
<!-- Common Salvage Category defined by contents of commonsalvage parameter, prefers wikified format. -->
<!-- Currently only materials known to be salvageable are listed. Also the system is vulnerable  -->
<!-- to incorrectly typed inputs. -->
{{ #switch: {{lc: {{{commonsalvage|}}} }}
| [[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]]
}}<!-- Rare Salvage Kategorie defined by contents of raresalvage parameter, prefers wikified format. --><!-- Currently only materials known to be salvageable are listed. Also the system is vulnerable  --><!-- to incorrectly typed inputs. -->
{{ #switch: {{lc: {{{raresalvage|}}} }}
| [[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 12. April 2007, 14:07 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
Datei:Sandkasten.png
Type Not specified
Wert Can't be sold
Kampagne Basis

Usage

This template can be used for many items such as Trophäe, Handwerksmaterial, Rare crafting materials, Quest Gegenstand, Wiederverwertbarer Gegenstand, Kits, Scrolls, 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 Parameters).

{{Item infobox
| name = 
| image = 
| type = 
| value = 
| campaign = 
| uses =
| collector =
| alclevel = 
| alcduration =
| commonsalvage =
| raresalvage =
| questitem =
| render = 
| bundle =
}}

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.
uses
Optional. List the number of uses, sets Category:Kits and type to Kit.
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)
render
Optional. Providing render=default, the image will be set to ({{PAGENAME}} render.jpg) and 100px wide. Provide the wikified render link. The image should be .jpg format. This should be a render of the item. See also the image use policy.
bundle
Optional. Setting this removes the value field in the item infobox. For use with Bundle items.

Example

{{Item infobox
| name = Spider Web
| value = 5 
| campaign = [[Nightfall]]
| commonsalvage = [[Pile of Glittering Dust|Piles of Glittering Dust]]
| raresalvage = [[Bolt of Silk|Bolts of Silk]]
| render= default
}}