- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Difference between revisions of "Template talk:V50 workshop"
(Created page with "== Toggle-able Pictures for workshops == I'm working on updating this template in order to show both the new graphics for workshops, as well as an option to see the original...") |
m (→Name) |
||
(18 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
I'm working on updating this template in order to show both the new graphics for workshops, as well as an option to see the original ASCII. If anyone has any ideas on how to best do that, please let me know, or feel free to take the initiative. —[[User:Velskadi|<span style="color:#074">Velskadi</span>]] ([[User talk:Velskadi|<span style="color:#092">talk</span>]]) 18:00, 24 December 2022 (UTC) | I'm working on updating this template in order to show both the new graphics for workshops, as well as an option to see the original ASCII. If anyone has any ideas on how to best do that, please let me know, or feel free to take the initiative. —[[User:Velskadi|<span style="color:#074">Velskadi</span>]] ([[User talk:Velskadi|<span style="color:#092">talk</span>]]) 18:00, 24 December 2022 (UTC) | ||
+ | |||
+ | I hope Letshor can get a tab extension to work, but in the mean time you can try something like this: | ||
+ | {| | ||
+ | |- valign=top | ||
+ | | | ||
+ | ;Minimal change option | ||
+ | {| style="width:200px; background-color:#eaecf0;" | ||
+ | |rowspan=2|[[File:Carpenter's workshop.png|150px]] | ||
+ | |{{Template:Floor Plan Carpenter's workshop}} | ||
+ | |- | ||
+ | |{{Template:Picture Carpenter's workshop}} | ||
+ | |} | ||
+ | | | ||
+ | ;"Tab" option without tabs | ||
+ | {| style="width:200px; background-color:#eaecf0;" | ||
+ | |<span class="mw-customtoggle-infoboxtab mw-ui-button mw-ui-progressive">Change view</span> | ||
+ | <div class="mw-collapsible" id="mw-customcollapsible-infoboxtab">[[File:Carpenter's workshop.png]]</div> | ||
+ | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-infoboxtab">{{Template:Picture Carpenter's workshop}}{{Template:Floor Plan Carpenter's workshop}}</div> | ||
+ | |} | ||
+ | |} | ||
+ | Obviously this is rough draft, I didn't tried to make it look pretty with the right size and arrangement --[[User:Jan|Jan]] ([[User talk:Jan|talk]]) 18:30, 24 December 2022 (UTC) | ||
+ | |||
+ | :Awesome! I will play with these and see what I can get to work. I think the one on the right would be best, if only to keep the infocell from blowing up horizontally. | ||
+ | —[[User:Velskadi|<span style="color:#074">Velskadi</span>]] ([[User talk:Velskadi|<span style="color:#092">talk</span>]]) 18:32, 24 December 2022 (UTC) | ||
+ | ::My advice is to ignore the infocell, just make it work. Once it works and everyone is happy we can make the code pretty and easy to use. --[[User:Jan|Jan]] ([[User talk:Jan|talk]]) 18:34, 24 December 2022 (UTC) | ||
+ | :::Good to know. I'm also realizing that we may need to create new templates for each of the Building Sub-menus (Clothing and Leather, Farming, Furnaces). If there is a clever way of handling these without creating a bunch of templates I'd love to know. I don't want to make a mess of things. —[[User:Velskadi|<span style="color:#074">Velskadi</span>]] ([[User talk:Velskadi|<span style="color:#092">talk</span>]]) 18:38, 24 December 2022 (UTC) | ||
+ | :::: I am not sure what exactly you are referring to.--[[User:Jan|Jan]] ([[User talk:Jan|talk]]) 19:38, 24 December 2022 (UTC) | ||
+ | |||
+ | This is pretty cool! I had no idea MediaWiki had built-in toggle buttons like that. —[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 19:03, 24 December 2022 (UTC) | ||
+ | |||
+ | == Name == | ||
+ | |||
+ | I would encourage renaming this to {{tl|v50 workshop}}. I'd rather avoid inventing year-based names again after what happened with "DF2014". —[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 19:02, 24 December 2022 (UTC) | ||
+ | : Sounds good! Will I need to delete this page? If so, is that done by just removing the text from it? —[[User:Velskadi|<span style="color:#074">Velskadi</span>]] ([[User talk:Velskadi|<span style="color:#092">talk</span>]]) 18:00, 24 December 2022 (UTC) | ||
+ | ::What I had in mind was moving the page, to keep its edit history, rather than copying it. I just performed the move (since the "v50" page existed, it required admin access to overwrite, but ordinarily you can move pages without admin access). I left a redirect behind, which should allow existing pages to continue to use the "DF2022" name, but if they are updated to use "v50", you can tag [[:template:DF2022 workshop]] with {{tl|delete}} and I can clean it up. —[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 19:42, 24 December 2022 (UTC) | ||
+ | :::All pages using DF2022 have been updated. --[[User:Halavus|Halavus]] ([[User talk:Halavus|talk]]) 00:43, 2 January 2023 (UTC) | ||
+ | |||
+ | == Building keyboard shortcuts don't work for workshops in subcategories (or isn't documented) == | ||
+ | |||
+ | I tried with key1=xx|key2=yy but without luck. Can't add the fourth shortcut in {{k|b}}-{{k|o}}-{{k|f}}-{{k|b}} for the [[Butcher's shop]], for example. --[[User:Halavus|Halavus]] ([[User talk:Halavus|talk]]) 23:54, 1 January 2023 (UTC) | ||
+ | : Should work now. --[[User:Jan|Jan]] ([[User talk:Jan|talk]]) 00:12, 2 January 2023 (UTC) | ||
+ | :: Indeed, thank you. --[[User:Halavus|Halavus]] ([[User talk:Halavus|talk]]) 00:31, 2 January 2023 (UTC) |
Latest revision as of 00:44, 2 January 2023
Toggle-able Pictures for workshops[edit]
I'm working on updating this template in order to show both the new graphics for workshops, as well as an option to see the original ASCII. If anyone has any ideas on how to best do that, please let me know, or feel free to take the initiative. —Velskadi (talk) 18:00, 24 December 2022 (UTC)
I hope Letshor can get a tab extension to work, but in the mean time you can try something like this:
|
|
Obviously this is rough draft, I didn't tried to make it look pretty with the right size and arrangement --Jan (talk) 18:30, 24 December 2022 (UTC)
- Awesome! I will play with these and see what I can get to work. I think the one on the right would be best, if only to keep the infocell from blowing up horizontally.
—Velskadi (talk) 18:32, 24 December 2022 (UTC)
- My advice is to ignore the infocell, just make it work. Once it works and everyone is happy we can make the code pretty and easy to use. --Jan (talk) 18:34, 24 December 2022 (UTC)
- Good to know. I'm also realizing that we may need to create new templates for each of the Building Sub-menus (Clothing and Leather, Farming, Furnaces). If there is a clever way of handling these without creating a bunch of templates I'd love to know. I don't want to make a mess of things. —Velskadi (talk) 18:38, 24 December 2022 (UTC)
- My advice is to ignore the infocell, just make it work. Once it works and everyone is happy we can make the code pretty and easy to use. --Jan (talk) 18:34, 24 December 2022 (UTC)
This is pretty cool! I had no idea MediaWiki had built-in toggle buttons like that. —Lethosor (talk) 19:03, 24 December 2022 (UTC)
Name[edit]
I would encourage renaming this to {{v50 workshop}}. I'd rather avoid inventing year-based names again after what happened with "DF2014". —Lethosor (talk) 19:02, 24 December 2022 (UTC)
- Sounds good! Will I need to delete this page? If so, is that done by just removing the text from it? —Velskadi (talk) 18:00, 24 December 2022 (UTC)
- What I had in mind was moving the page, to keep its edit history, rather than copying it. I just performed the move (since the "v50" page existed, it required admin access to overwrite, but ordinarily you can move pages without admin access). I left a redirect behind, which should allow existing pages to continue to use the "DF2022" name, but if they are updated to use "v50", you can tag template:DF2022 workshop with {{delete}} and I can clean it up. —Lethosor (talk) 19:42, 24 December 2022 (UTC)
Building keyboard shortcuts don't work for workshops in subcategories (or isn't documented)[edit]
I tried with key1=xx|key2=yy but without luck. Can't add the fourth shortcut in b-o-f-b for the Butcher's shop, for example. --Halavus (talk) 23:54, 1 January 2023 (UTC)