|
|
Zeile 33: |
Zeile 33: |
| :::Wir könnten auch noch eine Infobox für die Minipets einführen, denn es sieht mit einer Box schöner aus, als wenn einfach nur ein Bild lieblos in der Ecke steht. LG --[[Benutzer:Nancy Skogen|Nancy Skogen]] 11:25, 6. Mai. 2007 (CEST) | | :::Wir könnten auch noch eine Infobox für die Minipets einführen, denn es sieht mit einer Box schöner aus, als wenn einfach nur ein Bild lieblos in der Ecke steht. LG --[[Benutzer:Nancy Skogen|Nancy Skogen]] 11:25, 6. Mai. 2007 (CEST) |
| :Gab es nich schon einen Vorschlag für diese Boxen mit den "runden ecken"? Fällt mir grad ein das ich die noch hübscher fand :) --[[Benutzer:Mogul|Mogul]] 11:45, 6. Mai. 2007 (CEST) | | :Gab es nich schon einen Vorschlag für diese Boxen mit den "runden ecken"? Fällt mir grad ein das ich die noch hübscher fand :) --[[Benutzer:Mogul|Mogul]] 11:45, 6. Mai. 2007 (CEST) |
| | | ::Runde Ecken ist nicht W3C-konform sondern eine spezieller CSS-Selector den nur mozilla anzeigen kann...kommt also nicht in Frage. Ich habe jetzt die Vorlage realisiert. Mal sehen was für Kritiken kommen. --[[Benutzer:Flece|Flece]] 16:40, 7. Mai. 2007 (CEST) |
| | |
| {| 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:lightblue;" | {{{name|{{PAGENAME}}}}}
| |
| |-
| |
| | colspan="2" align="center" | {{{bild|[[Bild:{{PAGENAME}}.jpg|800x200px]]}}}
| |
| |- valign="top"
| |
| ! style="background-color:lightblue;" | Typ
| |
| | <!-- Start:Auto-Typ Code -->{{ #if: {{{alclevel|}}}|{{{typ|[[Alkohol]]}}}
| |
| | {{ #if: {{{questitem|}}}|{{{typ|[[Quest-Gegenstand]]}}}
| |
| | {{ #if: {{{sammler|}}}|{{{typ|[[Trophäe]]}}}
| |
| | {{ #if: {{{normal|}}}|{{{typ|[[Wiederverwertbarer Gegenstand]]}}}
| |
| | {{ #if: {{{profi|}}}|{{{typ|[[Wiederverwertbarer Gegenstand]]}}}
| |
| | {{ #if: {{{benutzungen|}}}|{{{typ|[[Werkzeug]]}}}|{{{typ|Nicht angegeben}}}
| |
| }}}}}}}}}}}}<!-- End:Auto-typing Code -->
| |
| {{ #ifeq: {{{bundle|no}}} | no |
| |
| {{pipe}}- valign="top"
| |
| ! style="background-color:lightblue;" {{pipe}} Wert
| |
| {{pipe}} {{{wert|Nicht verkaufbar}}} |}}
| |
| |- valign="top"
| |
| ! style="background-color:lightblue;" | [[Kampagne]]
| |
| | {{{kampagne|[[Basis]]}}}
| |
| |- valign="top"
| |
| <!-- Start:Optionale Einträge -->{{ #if: {{{sammler|}}} |
| |
| ! 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>
| |
| {{pipe}} {{{benutzungen|}}}
| |
| }}
| |
| |- valign="top"
| |
| {{ #if: {{{alclevel|}}} |
| |
| ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Drunk|Intoxication]] level</span>
| |
| {{pipe}} {{{alclevel}}}
| |
| {{pipe}}- valign="top"
| |
| ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Drunk|Intoxication]] duration</span>
| |
| {{pipe}} {{{alcduration|1 min.}}}
| |
| }}
| |
| |- valign="top"
| |
| {{ #if: {{{normal|}}} |
| |
| ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Common crafting material|Normal]]</span>
| |
| {{pipe}} {{{normal}}}
| |
| }}
| |
| |- valign="top"
| |
| {{ #if: {{{profi|}}} |
| |
| ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Rare crafting material|Profi]]</span>
| |
| {{pipe}} {{{profi|}}}
| |
| }}
| |
| |- valign="top"
| |
| {{ #if: {{{questitem|}}} |
| |
| ! style="background-color:lightblue;" {{pipe}} <span style="white-space:nowrap;">[[Quest item]] for</span>
| |
| {{pipe}} {{{questitem|}}}
| |
| }}
| |
| | |
| <!-- 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>
| |
| {{Infobox Gegenstand
| |
| | name =
| |
| | bild =
| |
| | typ =
| |
| | wert =
| |
| | kampagne =
| |
| | benutzungen =
| |
| | sammler =
| |
| | alclevel =
| |
| | alcduration =
| |
| | normal =
| |
| | profi =
| |
| | questitem =
| |
| | 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]].
| |
| ; 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==
| |
| <pre>
| |
| {{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]]
| |
| | 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|}}}|[[Kategorie:Quest items]]}}
| |
| {{ #if: {{{sammler|}}}|[[Kategorie:Trophäe]]}}
| |
| {{ #if: {{{alclevel|}}}|[[Kategorie:Alcohol]]}}
| |
| {{ #switch: {{lc: {{{typ|}}} }}
| |
| | [[bundle]] = [[Kategorie:Bundle items]]
| |
| | [[quest item]] = [[Kategorie:Quest items]]
| |
| | [[alcohol]] = [[Kategorie:Alcohol]]
| |
| | [[salvage item]] = [[Kategorie:Salvage items]]
| |
| | [[trophy]] = [[Kategorie:Trophies]]
| |
| | [[kit]] = [[Kategorie:Kits]]
| |
| | [[schriftrolle]] = [[Kategorie:Schriftrolle]]
| |
| | [[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]]
| |
| | schriftrolle= [[Kategorie:Schriftrolle]]
| |
| | common crafting material = [[Kategorie:Common crafting materials]]
| |
| | rare crafting material = [[Kategorie:Rare crafting materials]]
| |
| | miniature = [[Kategorie:Miniatures]]
| |
| | key = [[Kategorie:Keys]]
| |
| }}
| |
| {{ #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|}}} }}
| |
| | [[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>
| |