Jump to content

Wikibooks:Reading room/Technical Assistance

Add topic
This project page is move-protected.
From Wikibooks, open books for an open world
(Redirected from Wikibooks:TECH)
Latest comment: 1 month ago by PeterEasthope in topic Styling
ArchivesWikibooks Discussion Rooms
Discussions Assistance Requests Announcements
General | Proposals | Projects | Featured books General | Technical | Administrative Deletion | Undeletion | Import | Upload | Permissions Bulletin Board

Welcome to the Technical Assistance reading room. Get assistance on questions related to MediaWiki markup, CSS, JavaScript, and such as they relate to Wikibooks. This is not a general-purpose technical support room.

To submit a bug notice or feature request for the MediaWiki software, visit Phabricator.

To get more information about the MediaWiki software, or to download your own copy, visit MediaWiki

There are also two IRC channels for technical help: #mediawikiconnect for issues about the software, and #mediawiki-coreconnect for WMF server or configuration issues.

Duplicate identifiers?

[edit source]

Hi, On the Oberon/Text page, lintHint reports 4 instances of duplication of identifiers. Can someone spot a duplication? Thx, ... PeterEasthope (discusscontribs) 15:39, 9 February 2025 (UTC)Reply

The problem comes from transcluding other pages. E.g. on Oberon/ETH Oberon/TextType, you can find <div id="Piece"></div>. If you changed that name to something else, it could fix the problem. I'm not sure why there is an empty div in the first place. —Justin (koavf)TCM 15:49, 9 February 2025 (UTC)Reply
The div is empty but provides a fragment identifier to link to; but the identifier should be in the table tag. Thanks, ... PeterEasthope (discusscontribs) 17:32, 9 February 2025 (UTC)Reply
Okay, but why not use Template:Anchor or a span? Why include a blockline element? —Justin (koavf)TCM 17:50, 9 February 2025 (UTC)Reply
Was unaware of Template:Anchor. The problem seemed to be resolved after some fumbling. Thx, ... PeterEasthope (discusscontribs) 22:23, 13 February 2025 (UTC)Reply

Suppressing a redundant link.

[edit source]

Hi
How can the link at the left, surrounded in red, be suppressed? Thx, ... PeterEasthope (discusscontribs) 22:27, 13 February 2025 (UTC)Reply

To hide these links for yourself, add this to Special:MyPage/common.css:
#mw-content-subtitle {
	display: none;
}
If you want to only hide it on that page, add this:
.page-Oberon_System_Variants #mw-content-subtitle {
	display: none;
}
JJPMaster (she/they) 22:45, 13 February 2025 (UTC)Reply
I've added a statement per page but commas in two page headings are problematical. How can the syntax accommodate a comma? Thx, ... PeterEasthope (discusscontribs) 16:21, 14 February 2025 (UTC)Reply
@PeterEasthope: Commas aren't included in the IDs. You can just remove them. JJPMaster (she/they) 02:39, 20 February 2025 (UTC)Reply
Thanks. Omission of a character seems an arbitrary syntactical detail but works. =8~)
Can omission of the "back link" be declared within the page? Enclosing the page content in <style mw-content-subtitle="display: none;"> ... </style> is conceptual but doesn't work. Thx, ... PeterEasthope (discusscontribs) 17:42, 20 February 2025 (UTC)Reply

Linking a cell in a table

[edit source]

Hi, Another question about hyperlinking. In this case linking a cell in table. The introductory paragraph in Wikipedia Help:Table states "Tables can be created on Wikipedia pages using special wikitext syntax, or HTML syntax, and many different styles and tricks can be used to customise them." Applies in Wikibooks also? Not for the example in my sandbox. Ideas? Thx, ... P. PeterEasthope (discusscontribs) 21:12, 21 February 2025 (UTC)Reply

Now another means of navigation is attempted in my sandbox. It should work better on a narrow display; but the wiki doesn't accept the style declaration. How can the style be specified without inclusion in each div and a tag? Thanks, ... PeterEasthope (discusscontribs) 20:14, 25 February 2025 (UTC)Reply

Styling

[edit source]

Hi,
Styling doesn't work as attempted in my sandbox. How should the styling be included? Thx, ... PeterEasthope (discusscontribs) 23:42, 26 February 2025 (UTC)Reply