User:Veerserif/Sandbox: Difference between revisions

From Vintage Story Wiki
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is my sandbox so I don't catastrophically break the wiki.
This is my sandbox so I don't catastrophically break the wiki.


== Scratchpad ==


=== Food/cooking navbox planning ===
'''Notes to self'''
* Probably can't rely on {{tl|Messagebox}}, will need to copy its source and modify for better collapse toggle alignment
* Should be considered an "in-line" template therefore do not center it


__NOTOC__
Testing spoilers:
<div style="clear:both;"></div>
{| class="wikitable gameplaynavbox" style="text-align: left; margin:0px; width: 90%; font-size:85%;"
|-
! style = "text-align: center;" colspan = "2" | <span style="font-size:120%;">[[Cooking]]</span>
|-
| style="text-align: center;" colspan = "2" | <span style="font-size:100%;">[[Wild food|Foraging]] · [[Farming]] · [[Animal husbandry]]</span>
|-
| style = "width: 9%; white-space: nowrap; padding: 0.2em 0.4em;" | '''Meals''' || Charred food · Cooked meal · Bread · Pie
|-
| '''Food preservation''' || Pickles · Salted meat · Jam · [[Cheese]] · [[Alcohol brewing|Alcohol]] · [[Cellar]]
|-
| '''Cooking tools''' || [[Firepit]] · [[Clay Oven]] · [[Cooking pot]] · [[Quern]]
|-
| '''Utensils''' || [[Bowl]] · [[Crock]] · [[Storage vessel]]
|-
| style="text-align: center;" colspan = "2"|<span style="font-size:100%;">[[Cellar]] · [[Greenhouse]] · [[Satiety]]</span>
|}


=== Using the template ===
<code><nowiki>{{User:Veerserif/Sandbox/Spoiler|This sentence should be hidden until expanded}}</nowiki></code>


{{Navbox
{{User:Veerserif/Sandbox/Spoiler|This sentence should be hidden until expanded}}
|title = Food and Cooking


|group1 = Finding food
<code><nowiki>{{User:Veerserif/Sandbox/Spoiler|Curabitur nulla dolor, fermentum vitae risus sit amet, viverra tincidunt turpis. Ut leo nisl, congue vel commodo consequat, iaculis at nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam fringilla, mauris sed auctor laoreet, nibh purus ultrices sem, non consequat tortor nisl sed lectus. Nunc tempor turpis ut lorem dapibus lobortis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent sit amet pretium tortor. In nec purus consectetur, venenatis felis quis, laoreet enim. Integer feugiat quam non scelerisque finibus. Morbi vel nunc sit amet odio vulputate facilisis. Fusce ultricies mattis velit in viverra.}}</nowiki></code>
|body1 = [[Wild food|Foraging]] • [[Farming]] • [[Animal husbandry]] • [[Cooking]]


|group2 = [[Meal]]s
{{User:Veerserif/Sandbox/Spoiler|Curabitur nulla dolor, fermentum vitae risus sit amet, viverra tincidunt turpis. Ut leo nisl, congue vel commodo consequat, iaculis at nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam fringilla, mauris sed auctor laoreet, nibh purus ultrices sem, non consequat tortor nisl sed lectus. Nunc tempor turpis ut lorem dapibus lobortis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent sit amet pretium tortor. In nec purus consectetur, venenatis felis quis, laoreet enim. Integer feugiat quam non scelerisque finibus. Morbi vel nunc sit amet odio vulputate facilisis. Fusce ultricies mattis velit in viverra.}}
|body2 = Charred food • [[Vegetable stew]] • Meat stew • Soup • Porridge • Bread • Pie


|group3 = Food preservation
== Infobox trials ==
|body3 = Pickles • Salted meat • Jam • [[Cheese]] • [[Alcohol brewing|Alcohol]] • [[Cellar]]


|group4 = Cooking tools
{{User:Veerserif/Sandbox/Infobox
|body4 = [[Firepit]] • [[Clay Oven]] • [[Cooking pot]] • [[Quern]]
| title=Dry grass
 
| image=Grid_Dry_Grass.png
|group5 = Utensils
| stackable=64
|body5 = [[Bowl]] • [[Crock]] • [[Storage vessel]]
| temperature=600
| duration=4
| notes = this is a test
}}


|group6 = Other links
<pre>
|body6 = [[Cellar]] • [[Greenhouse]] • [[Satiety]]
{{User:Veerserif/Sandbox/Infobox
| title=Dry grass
| image=Grid_Dry_Grass.png
| stackable=64
| temperature=600
| duration=4
| notes = this is a test
}}
}}
</pre>


== DisplayTitle removal test ==
Dry grass is an item that is harvested from the world, using a knife, or more efficiently using a scythe. It is used for crafting, or as a source of food for large animals. See animal husbandry for more information.


Redir of Iron ores:


* [[Hematite]], [[Iron|Hematite]], [[Hematite|Iron]] was <code><nowiki>[[Hematite]], [[Iron|Hematite]], [[Hematite|Iron]]</nowiki></code>
{{User:Veerserif/Sandbox/Infobox
| title=Beeswax
| image=
| stackable=32
}}


== Link capitalization demonstration ==
<pre>
{{User:Veerserif/Sandbox/Infobox
| title=Beeswax
| image=
| stackable=32
}}
</pre>
Images default to <code><nowiki>$title.png</nowiki></code>, and if that doesn't exist, a "no image" placeholder is used instead.


Just as an example.
===Food infobox===


<code><nowiki>Lorem ipsum [[clay forming]] dolor sit amet. [[Clay forming]]s vel laoreet massa eleifend. Suspendisse malesuada, [[Clay forming]] sem eu sagittis posuere.</nowiki></code> produces:
It just made sense to me to split off item subtypes into their own infoboxes, seeing as we already do that. And this way I don't need twelve million optional lines that make the infobox slow to load.


Lorem ipsum [[clay forming]] dolor sit amet. [[Clay forming]]s vel laoreet massa eleifend. Suspendisse malesuada, [[Clay forming]] sem eu sagittis posuere.
{{User:Veerserif/Sandbox/Food infobox
 
| title=Turnip
'''n.b.''' All of those links will go to the same page, titled "Clay forming". Initial capitalization ''does not matter'' in Mediawiki - however, the link <code><nowiki>[[clay Forming]]</nowiki></code> or <code><nowiki>[[Clay Forming]]</nowiki></code> WILL break, since MediaWiki is looking for a page with the exact title and capitalization "Clay Forming", which no longer exists.
| image=
 
| stackable=64
== Cooking grid template test ==
| edible=Yes, raw or cooked
| satiety=100
| category=Vegetable
| ingredient=meals, pies
| FreshTime=21 days
| TransitionTime=4 days
| TransitionRatio=0.5
}}


{{User:Veerserif/Sandbox/CookingGrid
<pre>
|1=Carrot
{{User:Veerserif/Sandbox/Food infobox
|1-image=Grid_Carrot.png
| title=Turnip
|2=Meat
| image=
|2-link=Wild_food
| stackable=64
|2-image=Redmeat-raw.png
| edible=Yes, raw or cooked
|3=Grain
| satiety=100
|3-image=Grain-rye.png
| category=Vegetable
|3N=4
| ingredient=meals, pies
|4=Berry
| FreshTime=21 days
|4-image=Fruit-redcurrant.png
| TransitionTime=4 days
|Output=Meal
| TransitionRatio=0.5
|Output-image=Claypot-raw.png
}}
}}
 
</pre>
Jam can be made in a cooking pot, by using two pieces of fruit and two pieces of honey with a minimum amount of 0.2L.
 
{{User:Veerserif/Sandbox/CookingGrid
|1=Honey
|1-image=Honey-blob.png
|1N=0.2L
|2=Honey
|2-image=Honey-blob.png
|2N=0.2L
|3=Berry
|3-image=Fruit-redcurrant.png
|4=Berry
|4-image=Fruit-redcurrant.png
|Output=Jam
|Output-image=Claypot-burned.png
}}</div><!--typo in template, fixed in release-->
{{-}}
 
== Grid tests ==
 
<pre>{{User:Veerserif/Sandbox/Grid|Fruit-redcurrant}}</pre> gives
 
{{User:Veerserif/Sandbox/Grid|Fruit-redcurrant}}
 
<pre>{{User:Veerserif/Sandbox/Grid|Fruit-redcurrant,10}}</pre> gives
 
{{User:Veerserif/Sandbox/Grid|Fruit-redcurrant,10}}
 
{|
|+ '''User interface controls'''
|-
| {{Keypress|Tab}} || Show/Hide chat overlay
|-
| {{Keypress|T}} || Begin typing in the chat overlay
|-
| {{Keypress|F4}} || Show/Hide user interfaces
|-
| {{Keypress|F6}} || Show/Hide user minimap
|-
| {{Keypress|B}} || Show/Hide block info
|-
| {{Keypress|H}} || Survival Handbook - can also be used while hovering over an item in the inventory
|-
| {{Keypress|Shift}} + {{Keypress|H}} || Survival Handbook while looking at a block or item in the world
|-
| {{Keypress|M}} || Show/Hide [[worldmap]]
|-
| {{Keypress|N}} || Show/Hide block interaction help
|-
| {{Keypress|V}} || Show/Hide coordinates
|-
| {{Keypress|F12}} || Take a screenshot
|-
| {{Keypress|Esc}} || Exit/close any interface
|}

Latest revision as of 13:31, 16 August 2024

This is my sandbox so I don't catastrophically break the wiki.

Scratchpad

Notes to self

  • Probably can't rely on {{Messagebox}}, will need to copy its source and modify for better collapse toggle alignment
  • Should be considered an "in-line" template therefore do not center it

Testing spoilers:

{{User:Veerserif/Sandbox/Spoiler|This sentence should be hidden until expanded}}

Book-normal-brickred.png
Spoilers hidden here!

This sentence should be hidden until expanded

{{User:Veerserif/Sandbox/Spoiler|Curabitur nulla dolor, fermentum vitae risus sit amet, viverra tincidunt turpis. Ut leo nisl, congue vel commodo consequat, iaculis at nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam fringilla, mauris sed auctor laoreet, nibh purus ultrices sem, non consequat tortor nisl sed lectus. Nunc tempor turpis ut lorem dapibus lobortis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent sit amet pretium tortor. In nec purus consectetur, venenatis felis quis, laoreet enim. Integer feugiat quam non scelerisque finibus. Morbi vel nunc sit amet odio vulputate facilisis. Fusce ultricies mattis velit in viverra.}}

Book-normal-brickred.png
Spoilers hidden here!

Curabitur nulla dolor, fermentum vitae risus sit amet, viverra tincidunt turpis. Ut leo nisl, congue vel commodo consequat, iaculis at nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam fringilla, mauris sed auctor laoreet, nibh purus ultrices sem, non consequat tortor nisl sed lectus. Nunc tempor turpis ut lorem dapibus lobortis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent sit amet pretium tortor. In nec purus consectetur, venenatis felis quis, laoreet enim. Integer feugiat quam non scelerisque finibus. Morbi vel nunc sit amet odio vulputate facilisis. Fusce ultricies mattis velit in viverra.

Infobox trials

Dry grass
Grid Dry Grass.png
Stackable

64

Fuel

600°C, 4 seconds

{{User:Veerserif/Sandbox/Infobox
| title=Dry grass
| image=Grid_Dry_Grass.png
| stackable=64
| temperature=600
| duration=4
| notes = this is a test
}}

Dry grass is an item that is harvested from the world, using a knife, or more efficiently using a scythe. It is used for crafting, or as a source of food for large animals. See animal husbandry for more information.


Beeswax
Beeswax.png
Stackable

32

{{User:Veerserif/Sandbox/Infobox
| title=Beeswax
| image=
| stackable=32
}}

Images default to $title.png, and if that doesn't exist, a "no image" placeholder is used instead.

Food infobox

It just made sense to me to split off item subtypes into their own infoboxes, seeing as we already do that. And this way I don't need twelve million optional lines that make the infobox slow to load.

Turnip
No image.png
Stackable

64

Edible

Yes, raw or cooked

Satiety

100 vegetable

Ingredient

Yes (meals, pies)

Fresh for

21 days, turns into 0.5x rot over 4 days

{{User:Veerserif/Sandbox/Food infobox
| title=Turnip
| image=
| stackable=64
| edible=Yes, raw or cooked
| satiety=100
| category=Vegetable
| ingredient=meals, pies
| FreshTime=21 days
| TransitionTime=4 days
| TransitionRatio=0.5
}}