Difference between revisions of "User:Valento/Sandbox"
Jump to navigation
Jump to search
(21 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 == | == Rewards format == | ||
Line 14: | Line 32: | ||
{{#pos:{{#explode:{{#var:BLOB}}| |3}}}} | {{#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 42: | Line 67: | ||
* partial max: {{#vardefineecho:item_max_qty|}} | * partial max: {{#vardefineecho:item_max_qty|}} | ||
* {{#replace:{{#replace:{{#var:the5}}|{{#var:item_min_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 == | == Check subobjects == | ||
Line 55: | Line 114: | ||
! {{Paladin|name=y}} !! {{Dark Knight|name=y}} | ! {{Paladin|name=y}} !! {{Dark Knight|name=y}} | ||
|- | |- | ||
| style="vertical-align:top;" | {{vendor table header| showRarity = false| location=The Forbidden Land, Eureka Anemos}} | | 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 = 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 = Evalach | cost = 1 Antiquated Galatyn+1 Antiquated Evalach+100 Protean Crystal}} | ||
Line 83: | Line 142: | ||
{{vendor table row | item = Anemos Chivalrous Sollerets | cost = 1 Chivalrous Sollerets 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}} | | 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 = 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 Burgeonet | cost = 1 Antiquated Abyss Burgeonet+50 Protean Crystal}} | ||
Line 153: | 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 231: | 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
|