-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parameterised Patterns #74515
Copy link
Copy link
Open
Labels
[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsyncedA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsyncedA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What problem does this address?
I've found while building themes that I regularly have block patterns where the main difference is a category or a page, and after inserting I then need to change a heading, and a query filter, then a button to link to an archive. Then I have to redo the whole thing again when I insert the next sections pattern, it gets tedious.
Sure after inserting you can click on each block and change things manually, but what if you have to type a name out 5 times, or update a name of a term multiple times? It gets tedious.
E.g. adding this as a block pattern would be frustratingly repetitive, modifying query blocks and titles and links etc
I could create a version of the pattern for every single category but I've seen this problem before.
What is your proposed solution?
In Factorio you can create blueprints for stamping down patterns of buildings quickly, and v2 introduced parameterised blueprints
https://www.factorio.com/blog/post/fff-392
When you create a blueprint you put in some placeholders, and then when the user/player tries to insert the blueprint it asks them what should go in those placeholders and fills in the gaps.
fff-392-parameters-on-the-go.mp4
So why not the same with block patterns?
What if inserting a pattern could generate something like this?