New front page Icon Layout - FAQ 2[ | ]
This gradient should also work nicely:
linear-gradient(to bottom, #802020 0%, #4D1313 100%)
New Witcher 3 experimental icons (fav)[ | ]
Saga |
Comics |
Games |
Quests |
||
The Witcher FAQ |
The Witcher 2 FAQ |
Characters |
Places |
Monsters |
Weapons |
Armor |
Items |
Skills |
New Witcher 3 experimental icons[ | ]
Saga |
Games |
The Witcher FAQ |
The Witcher 2 FAQ |
Characters |
Places |
Quests |
Monsters |
Weapons |
Armor |
Items |
Skills |
Two rows 6&6, full-sized icons[ | ]
Saga |
Games |
The Witcher FAQ |
The Witcher 2 FAQ |
Characters |
Places |
Quests |
Monsters |
Weapons |
Armor |
Items |
Skills |
Three rows 2&4&6, full-sized icons[ | ]
Saga |
Games |
||||
Characters |
The Witcher FAQ |
The Witcher 2 FAQ |
Places |
||
Quests |
Monsters |
Weapons |
Armor |
Items |
Skills |
DLC Code Testing[ | ]
New tests using DPL tables... code from Skyrim page by Game Widow... will be testing this on Witcher 2 data soon.
Armour that ups 'Geralt's maximum load'[ | ]
The Armour elements that increase Geralt's maximum load:
|effects = Resistance to {{Bleed}} +20 - 30%<br>Resistance to {{Poison}} +20 - 30%<br>Geralt's maximum load +15
After some frustrating testing, first note the use of Perl Regular Expressions, adapting the code from there is still a bit of guesswork. And that \s*
only matches (whitespaces), whereas here we need to match any number of any characters and for this use .*
.
{{Infoboxitem2 |name = {{PAGENAME}} |image = Tw2_armor_vicovaro.png |caption = Armor |type = [[The Witcher 2 armor#Armor|Chest]] |effects = Reduction of magic {{damage}} +30 – 50%<br>Resistance to {{Burn}} +50%<br>Resistance to {{Bleed}} +50%<br>Resistance to {{Poison}} +50%<br>Geralt's maximum load +45 |armorslots = 2 |source = [[Renuald aep Matsen]] |buy = 2739 – 3423 |sell = 138 |armor = +24 |weight = 20 |category = {{rare}} }}
Also experimenting with replacing content on the fly. In this case removing the text Resistance to
from effects, to show the effects like burn, bleed, and poison on one line instead.
{{#dplreplace:,,|<br>Resistance to |}}
works! But
{{#dplreplace:{{#dplreplace:,,|<br>Resistance to |}}|%{{Burn}}|%<br>{{Burn}}}}
using the result of a previous replace to then perform another replace does not work.
Cannot get the stupid search code to look for pages that mention "Dark Mode" and only show those :(... includematch=/.*Dark Mode.*/g
. debug=3
is also completely useless!
The '''{{PAGENAME}}''' are part of the Blasphemer's Outfit. They are only available in [[Dark Mode]].
Searching the page directly for matches fails completely, but in the case of armour that is only available in Dark Mode one can filter by links existing on the page, i.e. linksto=Dark Mode
.
uses=Template:Infoboxitem2 includematch=/.*Dark Mode.*/g
... ups load (without Dark Mode, only load effect)[ | ]
Trying to extract the load gain number only, ignoring all the other text under effects
. Example:
|effects = Resistance to {{Bleed}} +20 - 30%<br>Resistance to {{Poison}} +20 - 30%<br>Geralt's maximum load +15
Searching for load, and deleting all of the beginning of the effects line, almost works:
{{#dplreplace:,,|.*Geralt's maximum load |}}
but sometimes there is info behind the load line.
{{#dplreplace:,,|.*Geralt's maximum load \+([0-9][0-9]?).*|+\1}}
To get the number of "load", you need to define a variable "block" denoted by ( and ), that you then access via numbered reference, here \1
. The ([0-9][0-9]?)
block will match a number (1. digit) and a potential 2. digit that can be present or not (denoted by the ?). Note that in the regex search pattern the "+" is a special character, and has to be escaped via \+
.
Name | Info | Effect(s) | Enhancement Slot(s) |
Source | Buy | Sell | Weight |
---|---|---|---|---|---|---|---|
Armor of Vicovaro | Armor Rare |
+24 Load +45 |
2 | Renuald aep Matsen | 2739 – 3423 | 138 | 20 |
Elven armor | Armor Magical |
+8 Load +15 |
1 | Cedric | 1003 | 41 | 12 |
Long robust gauntlets | Robust gauntlets Rare |
+1 Load +5 |
– | Craftable | 684 | 28 | 1 |
Elder Blood gauntlets | Gauntlets Magical |
+2 Load +15 |
– | Craftable | 902 – 1127 | 46 | 2 |
Heavy elven armor | Armor Magical |
+8 Load +20 |
2 | Craftable | 1123 | 46 | 20 |
Elven gauntlets | Gauntlets Epic |
+2 Load +5 |
– | Philippa Eilhart | 1162 | 47 | 0.5 |
Kaedweni falconer's gauntlets | Superb gloves Magical |
+2 Load +5 |
– | Craftable / Falas | 577 | 24 | 2 |
Long studded leather gauntlets | Gauntlets Magical |
+1 Load +5 |
– | Craftable / Loot | 660 | 27 | 1 |
Wild Hunt gauntlets | Gauntlets Rare |
+3 Load +10 |
1 | Craftable | ? | 133 | 2 |
Wild Hunt armor | Armor Epic |
+30 Load +30 |
2 | Craftable | 6912 | 277 | 25 |
Wild Hunt trousers | Trousers Magical |
+3 Load +15 |
– | Craftable | ? | ? | 3 |
Wild Hunt riding boots | Boots Magical |
+2 Load +10 |
– | Craftable | ? | ? | 3 |
Basilisk boots | Boots Magical |
+3 Load +10 |
– | Craftable | ? | ? | 3 |
Gnomish pattern breeches | Trousers Magical |
+3 Load +20 |
1 | Craftable | ? | ? | 6 |
Mongoose gauntlets | Gauntlets Rare |
+3 Load +15 |
1 | Craftable | ? | ? | 2 |
Tir Tochair armor | Armor Epic |
+25 Load +55 |
3 | Craftable / Loot | ? | ? | 22 |
Dark Mode Armour[ | ]
- Blasphemer's armor
- Blasphemer's boots
- Blasphemer's gauntlets
- Oathbreaker's boots
- Oathbreaker's armor
- Oathbreaker's gauntlets
- Oathbreaker's trousers
- Blasphemer's trousers
- Kinslayer's trousers
- Kinslayer's boots
- Kinslayer's gauntlets
- Kinslayer's armor
... ups load (without Dark Mode)[ | ]
Name | Info | Effect(s) | Enhancement Slot(s) |
Source | Price Buy / Sell |
Weight |
---|---|---|---|---|---|---|
Armor of Vicovaro | Armor Rare |
+24 Reduction of magic +30 – 50% +50% +50% +50% Geralt's maximum load +45 |
2 | Renuald aep Matsen | 2739 – 3423 138 |
20 |
Elven armor | Armor Magical |
+8 +20 - 30% +20 - 30% Geralt's maximum load +15 |
1 | Cedric | 1003 41 |
12 |
Long robust gauntlets | Robust gauntlets Rare |
+1 Reduction of magic +4% +7% +7% Geralt's maximum load +5 |
– | Craftable | 684 28 |
1 |
Elder Blood gauntlets | Gauntlets Magical |
+2 Reduction of magic +15% +8% +8% Geralt's maximum load +15 Thrown dagger +5 |
– | Craftable | 902 – 1127 46 |
2 |
Heavy elven armor | Armor Magical |
+8 +10 - 20% +10 - 20% Geralt's maximum load +20 |
2 | Craftable | 1123 46 |
20 |
Elven gauntlets | Gauntlets Epic |
+2 Reduction of magic +5% +8% +8% Geralt's maximum load +5 Thrown dagger +4 |
– | Philippa Eilhart | 1162 47 |
0.5 |
Kaedweni falconer's gauntlets | Superb gloves Magical |
+2 Reduction of magic +5% +8% +8% Geralt's maximum load +5 Trap multiplier +20% |
– | Craftable / Falas | 577 24 |
2 |
Long studded leather gauntlets | Gauntlets Magical |
+1 Reduction of magic +7% +8% +8% Geralt's maximum load +5 |
– | Craftable / Loot | 660 27 |
1 |
Wild Hunt gauntlets | Gauntlets Rare |
+3 +5% +5% +5% bonus on Signs +12 Geralt's maximum load +10 Bomb multiplier +60% |
1 | Craftable | ? 133 |
2 |
Wild Hunt armor | Armor Epic |
+30 +70% +70% +70% bonus on Signs +22 +1 regeneration in combat +60% reduction on block +20 Geralt's maximum load +30 |
2 | Craftable | 6912 277 |
25 |
Wild Hunt trousers | Trousers Magical |
+3 +10% +10% +10% regeneration during combat +30% Reduction of magic +15% Geralt's maximum load +15 |
– | Craftable | ? ? |
3 |
Wild Hunt riding boots | Boots Magical |
+2 +5% +5% +5% reduction on block +3% +1 Geralt's maximum load +10 |
– | Craftable | ? ? |
3 |
Basilisk boots | Boots Magical |
+3 dealt counterattacking +2% +8% regeneration in combat +15% Geralt's maximum load +10 |
– | Craftable | ? ? |
3 |
Gnomish pattern breeches | Trousers Magical |
+3 regeneration +2 Geralt's maximum load +20 Duration of blade oils +2 |
1 | Craftable | ? ? |
6 |
Mongoose gauntlets | Gauntlets Rare |
+3 +10% Geralt's maximum load +15 reduction on block +5 Reduction of from magic +8% |
1 | Craftable | ? ? |
2 |
Tir Tochair armor | Armor Epic |
+25 +85% Trap multiplier +70% Bomb multiplier +70% Thrown dagger +15 Geralt's maximum load +55 Duration of blade oils +6 |
3 | Craftable / Loot | ? ? |
22 |
... ups load (Dark Mode only)[ | ]
Name | Info | Effect(s) | Enhancement Slot(s) |
Source | Price Buy / Sell |
Weight |
---|---|---|---|---|---|---|
Blasphemer's gauntlets | Cursed gauntlets Magical |
+2 +10% Geralt's maximum load +15 |
– | Craftable | 1457 59 |
1 |
Oathbreaker's armor | Cursed armor Epic |
+30 +60 Reduction of magic +33 +50 +50 +50 bonus on Signs +8 Geralt's maximum load +50 |
3 | Craftable | 6282 315 |
22 |
Oathbreaker's gauntlets | Cursed gauntlets Magical |
+3 +15% Geralt's maximum load +20 |
– | Craftable | 1549 78 |
1 |
Kinslayer's gauntlets | Cursed gauntlets Magical |
+4 +20% Geralt's maximum load +25 |
– | Craftable | 98 |
1 |
Overview page of Witcher 2 Oils[ | ]
Changes / Todo:
- Added the icons.
- The tables contain mod_poison, mod_damage and others, these all need to be tracked and the proper icons prefixed... not really that convenient, but doable. All conditional cases added with icons.
- Icon sized upped to standard size used everywhere else, i.e. 32px.
The Table Data[ | ]
name = {{PAGENAME}} | image = Tw2 oil Arachnid.png | caption = Oil. Poisons foes | ingred1 = {{reb2}} | ingred2 = {{que2}} | ingred3 = {{hyd2}} | ingred4 = {{ver2}} | ingred5 = | mod_poison = +30% | duration = 5 minutes | source = [[The Witcher 2 starting equipment|starting equipment]] / [[Formula: Arachnid oil|craftable]] | sell = 6 | buy = 50 – 126 | wt = 0.2 |
The Code[ | ]
<dpl> category=The Witcher 2 oils uses=Template:Infoboxoil2 include= {Infoboxoil2}:image, {Infoboxoil2}:name, {Infoboxoil2}:caption, {Infoboxoil2}:ingred1, {Infoboxoil2}:ingred2, {Infoboxoil2}:ingred3, {Infoboxoil2}:ingred4, {Infoboxoil2}:ingred5, {Infoboxoil2}:mod_poison, {Infoboxoil2}:mod_bleed, {Infoboxoil2}:mod_damage, {Infoboxoil2}:duration, {Infoboxoil2}:source, {Infoboxoil2}:buy, {Infoboxoil2}:sell, {Infoboxoil2}:wt format={| class="wikitable sortable"\n! Name !! Info !! Ingredients !! Effect(s) !! data-sort-type="number"|Duration !! Source !! style="white-space:nowrap;" data-sort-type="number"|Price Buy /<br> Sell !! data-sort-type="number"|Weight secseparators =\n|-\n| style="white-space:nowrap;"|[[File:,,|32px|link=,,]] [[%PAGE%]]\n| '',,''\n| style="white-space:nowrap;"|,, ,, ,, ,, ,,\n| {{IfThenElse|,,|{{Poison}} |}} {{IfThenElse|,,|{{Bleed}} |}} {{IfThenElse|,,|{{Damage}} |}}\n| style="white-space:nowrap;"|,,\n| ,,\n| style="white-space:nowrap; text-align:right;"|,, {{oren2}}<br>,, {{oren2}}\n|{{Weight}} ,, </dpl> {{#dpl:category=food|uses=Template:Infobox item|resultsheader=There are '''%TOTALPAGES%''' food-related items in ''7 Days to Die''|format=,}} and {{#dpl:category=plants|uses=Template:Infobox item|resultsheader=there are '''%TOTALPAGES%''' plant items.|format=,}} <dpl> category=food|plants uses=Template:Infobox item include= {infobox item}:image, {infobox item}:craftable, {infobox item}:hunger, {infobox item}:thirst, {infobox item}:consumption, {infobox item}:used_in format={| class="wikitable sortable" style="width:70%"\n! style="text-align:center"|Name !! style="text-align:center"|Craftable !! style="text-align:center"|Hunger !! style="text-align:center"|Thirst !! style="text-align:center"|Other Effects !! style="text-align:center"|Used in secseparators=\n|-\n|[[File:,,|frameless|x20px|link=%PAGE%]] [[%PAGE%]]\n|{{#ifeq:,,|y|Yes|No}}\n|,,\n|,,\n|,,\n|,, </dpl>
Testing Armour filtering[ | ]
Looking trough the list of armour in Witcher 2, filtering for specific attributes, e.g. magical armour, or those with armour slots, etc.
Issue: The Leather jacket has two Infoboxitem2 templates, thus shows the info for two armours... this is a bit ugly. The good way to resolve things would be to create two separate pages (and crosslink them).
includematch=/\|\s*armorslots\s*=\s*[1-3]/s
ignores all pages with templates that do not use a armorslots parameter, the latter are then checked if the have "1", "2", or "3" (regex number range used here) such slots. The \s* will match any number of chars, thus lets you use as many whitespaces as you light in template parameter formatting.count=20
does not properly work.
Name | Info | Enhancement(s) | Effect(s) | Duration | Source | Price Buy / Sell |
Weight |
---|---|---|---|---|---|---|---|
Raven's armor | Armor | 3 | Imported starting equipment 1039 |
43 | |||
Thyssen's armor | Armor | 2 | Loot 349 |
45 | |||
Zireael's armor | Armor | 3 | Dethmold 2792 – 3490 |
141 | |||
Armor of Vicovaro | Armor | 2 | Renuald aep Matsen 2739 – 3423 |
138 | |||
Kayran carapace armor | Armor | 3 | Craftable 1657 |
84 | |||
Dragon scale armor | Armor | 3 | Mael 3617 |
146 | |||
Astrogarus' armor | Armor | 1 | Loot 1501 |
61 | |||
Kaedweni leather armor | Armor | 2 | Loot 1091 |
45 | |||
Blue Stripes combat jacket | Armor | 3 | Starting equipment 890 |
37 | |||
Shiadhal's armor | Armor | 2 | Loot / Mysterious merchant 961 |
39 | |||
Elven armor | Armor | 1 | Cedric 1003 |
41 |
Here the armour page that do NOT have slots[ | ]
Commented out for now:
<dpl> category=The Witcher 2 armor uses=Template:Infoboxitem2 includenotmatch=/\|\s*armorslots\s*=\s*[1-3]/s include= {Infoboxitem2}:image, {Infoboxitem2}:name, {Infoboxitem2}:caption, {Infoboxitem2}:armorslots, {Infoboxitem2}:duration, {Infoboxitem2}:source, {Infoboxitem2}:buy, {Infoboxitem2}:sell, {Infoboxitem2}:wt format={| class="wikitable sortable"\n! Name !! Info !! Enhancement(s) !! Effect(s) !! data-sort-type="number"|Duration !! Source !! style="white-space:nowrap;" data-sort-type="number"|Price Buy /<br> Sell !! data-sort-type="number"|Weight secseparators =\n|-\n| style="white-space:nowrap;"|[[File:,,|32px|link=,,]] [[%PAGE%]]\n| '',,''\n| style="white-space:nowrap;"|,,\n| ,,\n| style="white-space:nowrap; text-align:right;"|,, {{oren2}}<br>,, {{oren2}}\n|{{Weight}} ,, </dpl>