Community Wishlist Survey 2022/Citations/Cite extension enhancement
Cite extension enhancement
- Problem: I would need a way to control the visibility of text depending on whether the <reference group=… /> yields an empty list or some references are in the buffer.
On Wikisource the typical pages in the main space are rather very short themselves however they transclude a huge chunk of text.
Some information about the
title,
author etc.
<pages index=… from=… to=… />
==References==
<references/>
==References== ⏎ <references/> (or a simillar template) is however desirable if and only if the there is some output. On the other hand a bare references list does not look neatly without a proceeding headline.
Changes in the trancluded pages can make the references section necessary or superfluous. On the other hand due to the work flow it is not always clear in advance whether the section will be required or not. The third reason is when preparing a series of pages (chapters of a book), it is desirable to make them automatically only adjusting the page numbers in the <pages ...> tag.
- Proposed solution: an additional parser hook for the cite extension. Let us call it <refEmpty>.
so
<refEmpty group=ABC >==References== ⏎ <references/></refEmpty>
would hide the content when the references buffer is empty or show it if required.
- Who would benefit: All wikis. Most important for Wikisource
- More comments:
- Phabricator tickets:
- Proposer: Draco flavus (talk) 14:35, 17 January 2022 (UTC)
Discussion
Voting
- Support * Pppery * it has begun 18:37, 28 January 2022 (UTC)
- Support Wieralee (talk) 23:50, 28 January 2022 (UTC)
- Support 𝑇𝑚𝑣 (𝑡𝑎𝑙𝑘) 01:15, 29 January 2022 (UTC)
- Support Peter Bowman (talk) 09:34, 29 January 2022 (UTC)
- Support Czupirek (talk) 13:56, 29 January 2022 (UTC)
- Support Electron (talk) 19:57, 29 January 2022 (UTC)
- Support Wydarty (talk) 21:10, 29 January 2022 (UTC)
- Support Douglasfugazi (talk) 21:15, 29 January 2022 (UTC)
- Support Terwa (talk) 21:18, 29 January 2022 (UTC)
- Support Seboloidus (talk) 13:36, 30 January 2022 (UTC)
- Support Thingofme (talk) 13:56, 30 January 2022 (UTC)
- Support Wolan (talk) 20:57, 30 January 2022 (UTC)
- Support Mahnka (talk) 04:46, 31 January 2022 (UTC)
- Support Joanna Le (talk) 18:34, 31 January 2022 (UTC)
- Support Alenutka (talk) 20:05, 31 January 2022 (UTC)
- Support Anwar2 (talk)--37.225.1.131 19:09, 31 January 2022 (UTC)
- Support Himiltruda (talk) 22:11, 31 January 2022 (UTC)
- Support Cafemoloko (talk) 13:52, 1 February 2022 (UTC)
- Support PMG (talk) 18:14, 1 February 2022 (UTC)
- Support Nux (talk) 01:10, 2 February 2022 (UTC)
- Support Fallaner (talk) 17:04, 2 February 2022 (UTC)
- Support Ankry (talk) 04:20, 3 February 2022 (UTC)
- Support Nawider (talk) 07:46, 3 February 2022 (UTC)
- Support Matěj Suchánek (talk) 12:23, 4 February 2022 (UTC)
- Support - Darwin Ahoy! 19:39, 4 February 2022 (UTC)
- Support —— Eric Liu(Talk) 05:11, 5 February 2022 (UTC)
- Support Dzakuza21 (talk) 08:22, 5 February 2022 (UTC)
- Support — DaxServer (t · c) 18:33, 5 February 2022 (UTC)
- Support Ayumu Ozaki (talk) 05:32, 6 February 2022 (UTC)
- Support Pavel Malakhov (talk) 04:14, 7 February 2022 (UTC)
- Support Krzysiek 123456789 (talk) 15:43, 7 February 2022 (UTC)
- Support ~Cybularny Speak? 20:19, 7 February 2022 (UTC)
- Support ~~~~
User:1234qwer1234qwer4 (talk) 17:50, 8 February 2022 (UTC) - Support — Bilorv (talk) 11:25, 9 February 2022 (UTC)
- Support Konrobonro (talk) 07:42, 10 February 2022 (UTC)
- Support Jonathan5566(talk) 14:45, 11 February 2022 (UTC)