Difference between revisions of "User:Valento/Sandbox"
Jump to navigation
Jump to search
(36 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
Hey, this is my sandbox. I'm going to toy around some css here and there to see if I can come up with pretty things. Please, don't mind me, just keep on writing and contributing. <3 | Hey, this is my sandbox. I'm going to toy around some css here and there to see if I can come up with pretty things. Please, don't mind me, just keep on writing and contributing. <3 | ||
== iferror & expr == | |||
{{#vardefine:test1|1}} | |||
{{#vardefine:test2|Homura}} | |||
{{#vardefine:test3|98h}} | |||
* {{#iferror: {{#expr:{{#var:test1}}}}|ERR|NO ERR}} - {{#expr:{{#var:test1}}}} | |||
* {{#iferror: {{#expr:{{#var:test2}}}}|ERR|NO ERR}} - {{#expr:{{#var:test2}}}} | |||
* {{#iferror: {{#expr:{{#var:test3}}}}|ERR|NO ERR}} - {{#expr:{{#var:test3}}}} | |||
== Len+Count == | |||
{{#vardefine:base|Fire Shard}} | |||
{{#len:{{#vardefineecho:item_qty_data|{{#explode:{{#var:base}}| |0}}}}}} | |||
== Normalize rec == | |||
<pre><normalizerec>AAA (12, ?, 65,989, false)</normalizerec></pre> | |||
Result: <normalizerec>AAA (12, ?, 65,989, false)</normalizerec> | |||
I intended to use with hashtag: <pre>{{#normalizerec:AAA (12, ?, 65,989, false)}}</pre> | |||
== Rewards format == | |||
{{#arraymap:1 (13, 0, Wind Shard, Item, false), 2 (1, 0, Hi-Potion, Item, false),|),|@@@|"{{#sub:{{#explode:@@@| |1}}|1|-1}}"<br>"{{#sub:{{#explode:@@@| |2}}|0|-1}}"<br>"{{#explode:@@@| |3}}"<br>{{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|1|-1}}}}{{Item reward|{{#sub:{{#explode:@@@| |1}}|1|-1}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}|{{#sub:{{#explode:@@@| |3}}|1|-1}}|no-smw=y}}|<br>}} | |||
{{#vardefineecho:BLOB|1 (13, 0, Wind Shard, Item, false),}} | |||
"{{#sub:{{#explode:{{#var:BLOB}}| |1}}|1|-1}}"<br> | |||
"{{#sub:{{#explode:{{#var:BLOB}}| |2}}|0|-1}}"<br> | |||
"{{trim|{{#explode:{{#var:BLOB}}|, |2}}}}"<br> | |||
{{#pos:{{#explode:{{#var:BLOB}}| |3}}}} | |||
== HQ == | |||
<pre>filter: sepia() drop-shadow(1px 1px 1px rgba(180,180,0,1)) | |||
-webkit-filter: sepia() drop-shadow(1px 1px 1px rgba(180,180,0,1)) | |||
</pre> | |||
== [[:Template:STFI|STFI]] == | |||
== Table within infobox == | == Table within infobox == | ||
Line 17: | Line 54: | ||
|600 | |600 | ||
|} | |} | ||
|} | |||
{| | |||
| | |||
{{{!}} | |||
| | |||
== Split multi-valued fiels == | |||
* 5: {{#vardefineecho:the5|1 (2)}} | |||
* min: {{#vardefineecho:item_min_qty|{{#explode:{{#var:the5}}|(|0}}}} | |||
* partial max: {{#vardefineecho:item_max_qty|}} | |||
* {{#replace:{{#replace:{{#var:the5}}|{{#var:item_min_qty}} (|}}|)|}} | |||
== Search map template idea (map with flags, etc) == | |||
; Structure idea | |||
<pre>{{Search map | |||
| {{{1|}}} = <pagename> | |||
| image = <optional image instead of preset pagename> | |||
| label = <optional default label> | |||
| icon = <optional default icon image> | |||
| coordinates = coordinates in the form: <x1,y1,z1>|label1|icon1; <x2,y2,z2>|label2|icon2; <x3,y3,z3>|label3|icon3 | |||
}}</pre> | |||
; Example | |||
<pre>{{Search map | |||
| North Shroud | |||
| label = Elite Mark | |||
| icon = Flag.png | |||
| coordinates = 12.5,7.8,-0.4|Elite Mark|Elite Mark Flag.png;5.3,10.4 | |||
}}</pre> | |||
Important evaluations: | |||
* Use <code>label</code> and <code>icon</code> as default label/icon for map flags. | |||
* Arraymap will cross semi-colons (<code>;</code>), splitting tokens with these values: <code><coordinates>|<optional label>|<optional icon></code> | |||
** Optional label and icon aren't mandatory, so explode three times (<code>|</code>) and besides 0, check for 1 and 2. | |||
** In the total absence of value, omit the flag. | |||
** Define explode 0 as coordinates, always. | |||
=== Test === | |||
{{#vardefine:size|big}} | |||
{{#arraymap:normal,medium,big|,|@@@|<div class="search-map @@@"> | |||
<div class="map"><div class="inner-border">[[File:Ruby Sea HQ Map.jpg|{{#switch:@@@|big=1000|medium=750|#default=500}}px|link=]]</div></div> | |||
<div class="legend">This is the legend</div> | |||
</div> A small text beside the map.|<br><br>}} | |||
{{#explode:aaaa{{!}}gsdgfsdf{{!}}lllll|{{!}}|2}} | |||
== Check subobjects == | |||
{{#arraymap:{{#ask:[[Has item cost::?;Protean Crystal]]|sep=$$$|link=none|limit=400}}|$$$|@@@|{{#vardefine:this_item|{{#show:@@@|?Sells item|link=none}}}}{{#if:{{#pos:{{#var:this_item}}|Brutal}}{{#pos:{{#var:this_item}}|Farsha}}|* '''{{#var:this_item}}''' - [https://ffxiv.consolegameswiki.com/wiki/Special:Browse/:{{#replace:{{#replace:{{#replace:@@@| |-20}}|#|-23}}|/|-2F}}?action=purge @@@]}} |\n}} | |||
== Nested selling lists == | |||
=== Eureka Gear === | |||
{| class="mw-collapsible mw-collapsed" | |||
! colspan="2" | Disciples of War | |||
|- | |||
! {{Paladin|name=y}} !! {{Dark Knight|name=y}} | |||
|- | |||
| style="vertical-align:top;" | {{vendor table header| showRarity = false| location=The Forbidden Land, Eureka Anemos|hideUnspecifiedCategory=true}} | |||
{{vendor table row | item = Galatyn | cost = 1 Antiquated Galatyn+1 Antiquated Evalach+100 Protean Crystal}} | |||
{{vendor table row | item = Evalach | cost = 1 Antiquated Galatyn+1 Antiquated Evalach+100 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Circlet | cost = 1 Antiquated Chivalrous Circlet+50 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Surcoat | cost = 1 Antiquated Chivalrous Surcoat+50 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Gauntlets | cost = 1 Antiquated Chivalrous Gauntlets+50 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Cuisses | cost = 1 Antiquated Chivalrous Cuisses+50 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Sollerets | cost = 1 Antiquated Chivalrous Sollerets+50 Protean Crystal}} | |||
{{vendor table row | item = Galatyn +1 | cost = 1 Galatyn+1 Evalach+400 Protean Crystal}} | |||
{{vendor table row | item = Evalach +1 | cost = 1 Galatyn+1 Evalach+400 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Circlet +1 | cost = 1 Chivalrous Circlet+150 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Surcoat +1 | cost = 1 Chivalrous Surcoat+150 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Gauntlets +1 | cost = 1 Chivalrous Gauntlets+150 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Cuisses +1 | cost = 1 Chivalrous Cuisses+150 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Sollerets +1 | cost = 1 Chivalrous Sollerets+150 Protean Crystal}} | |||
{{vendor table row | item = Galatyn +2 | cost = 1 Galatyn 1+1 Evalach 1+800 Protean Crystal}} | |||
{{vendor table row | item = Evalach +2 | cost = 1 Galatyn 1+1 Evalach 1+800 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Circlet +2 | cost = 1 Chivalrous Circlet 1+400 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Surcoat +2 | cost = 1 Chivalrous Surcoat 1+400 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Gauntlets +2 | cost = 1 Chivalrous Gauntlets 1+400 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Cuisses +2 | cost = 1 Chivalrous Cuisses 1+400 Protean Crystal}} | |||
{{vendor table row | item = Chivalrous Sollerets +2 | cost = 1 Chivalrous Sollerets 1+400 Protean Crystal}} | |||
{{vendor table row | item = Anemos Chivalrous Circlet | cost = 1 Chivalrous Circlet 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Chivalrous Surcoat | cost = 1 Chivalrous Surcoat 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Chivalrous Gauntlets | cost = 1 Chivalrous Gauntlets 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Chivalrous Cuisses | cost = 1 Chivalrous Cuisses 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Chivalrous Sollerets | cost = 1 Chivalrous Sollerets 2+150 Anemos Crystal}} | |||
{{!}}} | |||
| style="vertical-align:top; padding-left: 1em;" | {{vendor table header| showRarity = false|hideUnspecifiedCategory=true}} | |||
{{vendor table row | item = Caladbolg | cost = 1 Antiquated Caladbolg+100 Protean Crystal}} | |||
{{vendor table row | item = Abyss Burgeonet | cost = 1 Antiquated Abyss Burgeonet+50 Protean Crystal}} | |||
{{vendor table row | item = Abyss Cuirass | cost = 1 Antiquated Abyss Cuirass+50 Protean Crystal}} | |||
{{vendor table row | item = Abyss Gauntlets | cost = 1 Antiquated Abyss Gauntlets+50 Protean Crystal}} | |||
{{vendor table row | item = Abyss Flanchard | cost = 1 Antiquated Abyss Flanchard+50 Protean Crystal}} | |||
{{vendor table row | item = Abyss Sollerets | cost = 1 Antiquated Abyss Sollerets+50 Protean Crystal}} | |||
{{vendor table row | item = Caladbolg +1 | cost = 1 Caladbolg+400 Protean Crystal}} | |||
{{vendor table row | item = Abyss Burgeonet +1 | cost = 1 Abyss Burgeonet+150 Protean Crystal}} | |||
{{vendor table row | item = Abyss Cuirass +1 | cost = 1 Abyss Cuirass+150 Protean Crystal}} | |||
{{vendor table row | item = Abyss Gauntlets +1 | cost = 1 Abyss Gauntlets+150 Protean Crystal}} | |||
{{vendor table row | item = Abyss Flanchard +1 | cost = 1 Abyss Flanchard+150 Protean Crystal}} | |||
{{vendor table row | item = Abyss Sollerets +1 | cost = 1 Abyss Sollerets+150 Protean Crystal}} | |||
{{vendor table row | item = Caladbolg +2 | cost = 1 Caladbolg 1+800 Protean Crystal}} | |||
{{vendor table row | item = Abyss Burgeonet +2 | cost = 1 Abyss Burgeonet 1+400 Protean Crystal}} | |||
{{vendor table row | item = Abyss Cuirass +2 | cost = 1 Abyss Cuirass 1+400 Protean Crystal}} | |||
{{vendor table row | item = Abyss Gauntlets +2 | cost = 1 Abyss Gauntlets 1+400 Protean Crystal}} | |||
{{vendor table row | item = Abyss Flanchard +2 | cost = 1 Abyss Flanchard 1+400 Protean Crystal}} | |||
{{vendor table row | item = Abyss Sollerets +2 | cost = 1 Abyss Sollerets 1+400 Protean Crystal}} | |||
{{vendor table row | item = Anemos Abyss Burgeonet | cost = 1 Abyss Burgeonet 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Abyss Cuirass | cost = 1 Abyss Cuirass 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Abyss Gauntlets | cost = 1 Abyss Gauntlets 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Abyss Flanchard | cost = 1 Abyss Flanchard 2+150 Anemos Crystal}} | |||
{{vendor table row | item = Anemos Abyss Sollerets | cost = 1 Abyss Sollerets 2+150 Anemos Crystal}} | |||
{{!}}} | |||
|} | |} | ||
== Concatenated params which can be null == | == Concatenated params which can be null == | ||
{{#arraymap:X,one,X,three|,|@@@|* {{#ifeq:@@@|X|Invalid|Valid: @@@}}|\n}} | {{#arraymap:X,one,X,three|,|@@@|* {{#ifeq:@@@|X|Invalid|Valid: @@@}}|\n}} | ||
== Pos offset == | |||
"{{#pos:{{#vardefineecho:TERM|1 (99, Crystal Shard}}| |2}}" | |||
{{#sub:{{#var:TERM}}|{{#expr:{{#pos:{{#var:TERM}}| |2}} + 1}}}} | |||
== Concatenated arraymaps == | |||
{{#arraymap:Race1,Race2,Race3|,|@@@|{{#vardefine:race-count|{{#expr: {{#var:race-count|-1}}+1}}}}{{#switch: {{lc:@@@}} | |||
| au ra | aura = Au Ra | |||
| miqo'te | miqote = Miqo'te | |||
| various = ''Various'' | |||
| #default = {{ucfirst:@@@}} | |||
}}{{#if:{{#vardefineecho:curr-clan|{{#explode:Clan1,Clan2,Clan3|,|{{#var:race-count}}}}}}| <small>({{#switch: {{lc:{{#var:curr-clan}}}} | |||
| plainsfolk | dunesfolk | raen | xaela | wildwood | duskwight = {{ucfirst:{{#var:curr-clan}}}} <!-- No change --> | |||
| seeker of the sun = Seekers of the Sun | |||
| keeper of the moon = Keepers of the Moon | |||
| sea wolf = Sea Wolves | |||
| #default = {{ucfirst:{{#var:curr-clan}}}}s | |||
}})</small>}}|<br>}} | |||
== Absolute filepath == | == Absolute filepath == | ||
Line 43: | Line 212: | ||
** "{{#replace:Aetherpact (scholar) (PvP)|(PvP)|}}" | ** "{{#replace:Aetherpact (scholar) (PvP)|(PvP)|}}" | ||
*** "{{Trim|{{#replace:Aetherpact (scholar) (PvP)|(PvP)|}}}}" | *** "{{Trim|{{#replace:Aetherpact (scholar) (PvP)|(PvP)|}}}}" | ||
{{#vardefine:TTT|HI}} | |||
* {{{1|OI}}} | |||
* {{#var:TTX|HELLO}} | |||
* {{#var:TTT|NOICE}} | |||
== Infobox == | == Infobox == | ||
Line 121: | Line 296: | ||
[[:Category:Vulture]] | [[:Category:Vulture]] | ||
[[:Category:Zu]] | [[:Category:Zu]] | ||
[[:Category: | [[:Category:Elementals]] | ||
[[:Category:Allagan Automata]] | [[:Category:Allagan Automata]] | ||
[[:Category:Autoknight]] | [[:Category:Autoknight]] |
Latest revision as of 23:04, 25 November 2023
Valento's Sexy Sandbox
Hey, this is my sandbox. I'm going to toy around some css here and there to see if I can come up with pretty things. Please, don't mind me, just keep on writing and contributing. <3
iferror & expr
- NO ERR - 1
- ERR - Expression error: Unrecognized word "homura".
- ERR - Expression error: Unrecognized word "h".
Len+Count
4
Normalize rec
<normalizerec>AAA (12, ?, 65,989, false)</normalizerec>
Result: <normalizerec>AAA (12, ?, 65,989, false)</normalizerec>
I intended to use with hashtag:
{{#normalizerec:AAA (12, ?, 65,989, false)}}
Rewards format
"13"
"0"
"Wind"
13- in
"1"
"0"
"Hi-Potion,"
1- i-Potion
1 (13, 0, Wind Shard, Item, false),
"13"
"0"
"Wind Shard"
HQ
filter: sepia() drop-shadow(1px 1px 1px rgba(180,180,0,1)) -webkit-filter: sepia() drop-shadow(1px 1px 1px rgba(180,180,0,1))
STFI
Table within infobox
- MP Cost
- 102~700
|