14,277
editsMore actions
→Templates float on the right side of text
Cattlesquat (talk | contribs) |
|||
(19 intermediate revisions by 4 users not shown) | |||
Line 111: | Line 111: | ||
:::Actually I'm not so sure now if I've correctly understood what you were trying to achieve. Can you give me a concrete example of a page? I've given you maintainer permission so you should be able to edit all the templates. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 16:44, 13 April 2024 (CEST) | :::Actually I'm not so sure now if I've correctly understood what you were trying to achieve. Can you give me a concrete example of a page? I've given you maintainer permission so you should be able to edit all the templates. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 16:44, 13 April 2024 (CEST) | ||
::::In [[Overgrown Tunnel]], the 3rd paragraph of the Entrance Gallery, I wanted the "consequences" to link to [[Whispering Mask#Notes]] and go to the notes section. [[User:Cattlesquat|Cattlesquat]] ([[User talk:Cattlesquat|talk]]) 16:55, 13 April 2024 (CEST) | ::::In [[Overgrown Tunnel]], the 3rd paragraph of the Entrance Gallery, I wanted the "consequences" to link to [[Whispering Mask#Notes]] and go to the notes section. [[User:Cattlesquat|Cattlesquat]] ([[User talk:Cattlesquat|talk]]) 16:55, 13 April 2024 (CEST) | ||
:::::Ahh I see. Technically that's not an "infobox" (on the Whispering Mask page). The term [https://en.wikipedia.org/wiki/Help:Infobox infobox] refers to the kind of thing we have on the right side of character pages. I thought maybe we have some type of infobox with its own little Notes section, but I understand now that you meant the Notes section of pages generated with one of the whole-page-generating templates (in this case the EquipmentPage template). | |||
:::::I've just checked the HTML of the Whispering Mask page, and interestingly it does already have an <code>id</code> attribute on the Notes header. I guess MediaWiki adds it even if one uses h2 tags directly. So, the link [[Whispering Mask#Notes]] already works. (It's not so noticeable on desktop, because the page isn't very long, so one doesn't notice that the browser tries to scroll down to the Notes. Would be more noticeable on mobile.) | |||
:::::TL;DR: Looks like no change is necessary and you can already use that link in the Overgrown Tunnel page. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 17:05, 13 April 2024 (CEST) | |||
::::::Yeah I was the one who added the little id attribute yesterday (on the page itself rather than the template) to try to get it to work, haha, and then reached out to you when it didn't seem to -- I guess your explanation that I just didn't "notice" it was already working is probably the right one, haha :) Anyway thanks for the help! I guess we could put ids or straight section headers into some of those templates against future need, but will maybe wait for the need to actually arise haha. [[User:Cattlesquat|Cattlesquat]] ([[User talk:Cattlesquat|talk]]) 17:13, 13 April 2024 (CEST) | |||
:::::::I hadn't noticed that you added one as well, but it's not necessary. MediaWiki really seems to add an id attribute to every header, so the explicit span tag with the id attribute can be removed. You can use your browser's Inspect tool to see the automatically added id attributes on each header. (It's also on a span tag, inside the h2.) [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 17:24, 13 April 2024 (CEST) | |||
::::::::Cool - removed the explicit tag. Yay learning :) [[User:Cattlesquat|Cattlesquat]] ([[User talk:Cattlesquat|talk]]) 17:39, 13 April 2024 (CEST) | |||
== Broken Main Page == | |||
<s>It would appear you broke the [https://bg3.wiki/| Main Page] [[User:Phentos|Phentos]] ([[User talk:Phentos|talk]]) 22:52, 17 April 2024 (CEST)</s> | |||
:Hm. For me the main page still works. But maybe it's been fixed now. [[User:Hawkeye|Hawkeye]] ([[User talk:Hawkeye|talk]]) 23:27, 17 April 2024 (CEST) | |||
::Very strangely, I was able to correct it by clearing my cache. The bug persisted for the last ~15 versions in the page history; I wonder if it had to do with the template adjustment --[[User:Phentos|Phentos]] ([[User talk:Phentos|talk]]) 02:12, 18 April 2024 (CEST) | |||
:::What exactly was the issue with the main page? The URL you posted above has a superfluous character at the end which causes a 404, but not sure if that was all or if the actual main page had an issue. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 11:39, 18 April 2024 (CEST) | |||
== Templates float on the right side of text == | |||
Is it possible to make the templates "Relative location" and "Party interactions" floating on the right side of the text like the images or the "Infobox character"? This would help to get rid those empty spaces at the beginning of the articles, the templates are used in. | |||
Some examples | |||
* https://bg3.wiki/wiki/Minthara/approval | |||
* https://bg3.wiki/wiki/Grymforge#History | |||
* https://bg3.wiki/wiki/Gauntlet_of_Shar | |||
* https://bg3.wiki/wiki/Arcane_Tower | |||
* https://bg3.wiki/wiki/The_Waning_Moon#Dialogue_walkthrough | |||
* https://bg3.wiki/w/index.php?title=Reithwin_Town | |||
* https://bg3.wiki/wiki/Wyrm%27s_Rock_Fortress | |||
[[User:Hawkeye|Hawkeye]] ([[User talk:Hawkeye|talk]]) 23:41, 17 April 2024 (CEST) | |||
:They already seem to be floating on the right. (The CSS incantation for this is <code>float: right</code> which you can confirm them to have via the browser's inspection tools. In case of [[Template:Relative location]] it's added directly to the table via the <code>style</code> attribute; in case of [[Template:Party interactions]] it seems to come from [[Module:Sidebar/styles.css]].) | |||
:On some pages, like [[The Waning Moon]], there's an explicit <code><nowiki>{{clear}}</nowiki></code> in the page source that causes blank space to be added until the end of all floating elements before the clear, but the other pages look OK to me. | |||
:Do the pages look different for you? Feel free to share screenshots on Discord, or you can upload a screenshot to the wiki if you don't like to use Discord. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 11:56, 18 April 2024 (CEST) | |||
::Thank you for the info. I think the reason for the blank spaces is the 'Citizen' user interface I use(d). It looks pretty cool except the blank spaces. It's wider (I mean the width of the sites) than the other interfaces and has a dark mode, which the new 'Vector' user interface hasn't (or at least I didn't find any). So I'll stick to the old 'Vector' user interface for now. With the old and new 'Vector' there a no blank spaces. [[User:Hawkeye|Hawkeye]] ([[User talk:Hawkeye|talk]]) 18:28, 18 April 2024 (CEST) | |||
:::Hm, now the dark and light modes of the old 'Vector' user interface seem to be gone for me. [[User:Hawkeye|Hawkeye]] ([[User talk:Hawkeye|talk]]) 18:35, 18 April 2024 (CEST) | |||
::::The "Themes" extension that provides the light and dark-grey themes for Vector (old) has a bug where sometimes they disappear from the selection. See if switching back and forth between skins helps. | |||
::::Re. Citizen: I see, thanks for notifying. It's difficult to support many different skins, so I'm inclined to say that we "officially" only support Vector (old) on desktop, and Citizen on mobile. Citizen on desktop should look mostly fine I guess (unlike Vector on mobile which is completely broken) but it's non-standard and may have issues here and there, like the one you've noticed. | |||
::::Vector 2022 is shipped by default with MediaWiki, so we have that one available too, but we don't have theming for it (yet), and just like the old Vector, it doesn't work on mobile at all unfortunately. So, modifying the dark-grey theme to support Vector 2022 is a low-priority issue right now. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 18:38, 18 April 2024 (CEST) | |||
:::::Ok, after restarting the browser I got back the dark and light modes for old Vector. Thumbs up. | |||
:::::The light mode is nice too, but a little to wide for me. And the dark mode is not wide enough. :-) As I use(d) Citizen on desktop now for a while, I can say, at least for me, it looks fine (except the blank spaces). For me it's the best mode on desktop. | |||
:::::Thank you. Good job! [[User:Hawkeye|Hawkeye]] ([[User talk:Hawkeye|talk]]) 19:11, 18 April 2024 (CEST) | |||
::::::Thank you for the feedback. :-) | |||
::::::You may want to look into the User-CSS feature of MediaWiki, which lets you modify the site's CSS for when you're logged in with your account. You can put any CSS code you want into [[Special:MyPage/vector.css]] (this link should redirect you to a page for your account) and it should take effect as soon as you save the page. For example, to increase the width from 1280 to 1600, this should work: | |||
::::::<pre>html body { max-width: 1600px; }</pre> [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 19:19, 18 April 2024 (CEST) | |||
:::::::Great! Many thanks! [[User:Hawkeye|Hawkeye]] ([[User talk:Hawkeye|talk]]) 21:21, 18 April 2024 (CEST) |