背疼应该挂什么科| 国防部部长是什么级别| 宝宝睡觉突然大哭是什么原因| 什么的耳朵| 芹菜什么时候种| 提高免疫力吃什么| mcm中文叫什么牌子| 经常头疼是什么原因引起的| 牙膏属于什么类商品| 经典是什么意思| 愚蠢是什么意思| 在什么什么后面| 运费险是什么意思| 重心是什么| 人流前需要检查什么项目| 十的偏旁有什么字| 白癜风是什么病| 社保局是干什么的| 什么生肖名扬四海| 农历八月初一是什么星座| 支原体感染是什么意思| 鸡项是什么鸡| 身上毛发旺盛什么原因| 低烧吃什么药最好| 耳朵老是痒是什么原因| 造影手术是什么意思| 哈戳戳是什么意思| 骨科是什么意思| 阴道炎有些什么症状| 黄金是什么生肖| 钾在人体中起什么作用| 心脏逆钟向转位是什么意思| 子宫癌是什么症状| 补钙吃什么食物最好最快中老年| 孕期能吃什么| 子宫低回声结节是什么意思| 委曲求全是什么生肖| 出cos是什么意思| 喝水有什么好处| 老人说胡话是什么征兆| 人走了说什么安慰的话| 做梦流产了是什么意思| 椎体终板炎是什么病| 大肠杆菌吃什么药| 悟性高是什么意思| 老花眼视力模糊有什么办法解决吗| 豺是什么动物| 清晰是什么意思| 猪肉炖什么好吃| 枕戈待旦什么意思| 吃土豆有什么好处| 33朵玫瑰花代表什么意思| 8月10号什么星座| 三多一少指的是什么| 小孩喜欢趴着睡觉是什么原因| 7号来的月经什么时候是排卵期| 老凤祥银楼和老凤祥有什么区别| 抵抗力差吃什么可以增强抵抗力| 什么的哭声| 什么情况下需要做心脏支架| 湛江有什么好吃的| 卡其色裙子配什么颜色上衣好看| c反应蛋白是查什么的| 九二共识是什么| 什么的夜晚| 牛肉排酸是什么意思| 香鱼又叫什么鱼| 女人更年期什么症状| 支那是什么意思| 幽门螺杆菌抗体阳性什么意思| 属相鸡与什么属相相合| 梦见被狗追是什么意思| 什么是肌无力| 胃字出头念什么| 子宫内膜异位症有什么症状| 阴道有异味买什么药| 吃避孕药对身体有什么影响| 放我一个人生活是什么歌| 脖子粗挂什么科| 鸽子红鼻头喂什么药| 尿潜血弱阳性是什么意思| 侍中是什么官| 脑梗输液用什么药| 胃复安是什么药| 汆是什么意思| 农历五月是什么星座| ku是什么单位| 黄瓜片贴脸上有什么效果| 修心是什么意思| 五石散是什么| 医院属于什么行业| 多吃蔬菜对身体有什么好处| 眩晕看什么科| 胃疼吃什么药好| dep是什么意思| 右肺下叶纤维灶是什么意思| 桥本氏甲状腺炎是什么意思| 为什么会得痛风| 氮肥是什么肥| 血热吃什么药快速见效| 什么样的人容易得脑瘤| 士多店是什么意思| 妈妈是什么意思| 洗衣机启动不了是什么原因| 为什么突然得了荨麻疹| 凤凰单丛茶属于什么茶| 女人纵欲过度会有什么症状| 双肺纤维条索是什么意思| 女人吃山竹有什么好处| 索条影是什么意思| 8月18日什么星座| epa是什么营养物质| 脑出血有什么后遗症| 胰岛素高是什么原因| 舌战群儒是什么意思| 肛周脓肿吃什么消炎药| 杜甫自号什么| 添丁是什么意思| 精神分裂症吃什么药| 主心骨是什么意思| 画地为牢是什么意思| 尿多是什么原因女性| 刚怀孕要吃些什么好| 03年是什么命| 什么是二次元| 梦见死去的朋友是什么意思| 交替是什么意思| 玉如意什么属相不能戴| 盘根是什么| 高胆红素血症是什么病| 喝什么可以减肥瘦肚子| 尿素氮高什么原因| 犯罪心理学属于什么专业| b是什么元素| 什么事的英文| 狗懒子是什么意思| 脑供血不足吃什么中药| 1935年属什么生肖| skll什么牌子| 大腿根部内侧瘙痒用什么药膏| 太原有什么特产| 6月26号是什么日子| 穆斯林是什么| 冷面是什么做的| 今天突然拉稀拉出血什么原因| 便秘喝什么药| 扁桃体发炎吃什么消炎药| uniqlo是什么牌子| 头发软是什么原因| 石榴花是什么季节开的| 屈光不正是什么意思| 鸡配什么生肖最好| 密度增高影是什么意思| 什么是人格分裂| 益生元是什么| 微信密码是什么| 牙疼是什么原因| 痒痒粉在药店叫什么| 结核是什么| 八月十五是什么日子| 结婚35周年是什么婚| 脑内小缺血灶是什么意思| 店铺开业送什么礼物好| 63岁属什么生肖| 治疗肺部气肿有什么方法| 东华帝君是什么神仙| 门户网站是什么| 紫外线是什么意思| 卡点是什么意思| 梦见小狗是什么意思| 龙涎是什么| 什么东西最伤肾| 不以为然什么意思| 脱发严重应该去医院挂什么科| 被蛇咬了挂什么科| 老年人反复发烧是什么原因引起的| 儿童低烧吃什么药| 蓬头垢面是什么意思| 什么的拼音怎么写| top是什么| 异曲同工是什么意思| eagle是什么意思| 一线炎是什么病严重吗| 狼吞虎咽是什么意思| 肚脐的左边疼是什么原因| 黑豆有什么作用| 一什么露珠| 血小板偏低有什么危害| 为什么经常刷牙还牙黄| 维生素b2是什么颜色| 淘米水洗脸有什么作用与功效| 私募是什么意思| 小狗不能吃什么| 卤米松软膏主治什么| 耳石症是什么原因| 夏吃姜有什么好处| 咕咕咕咕叫是什么鸟| 烦躁是什么意思| 火车头是什么意思| 什么油适合炒菜| 牛子是什么意思| 正骨有什么好处和坏处| 十二生肖里为什么没有猫| 寿者相什么意思| npc是什么| 吃阿胶对女人有什么好处| 非分之想是什么意思| 十年婚姻是什么婚| zuczug是什么牌子| 经常出汗是什么原因| 耳朵真菌感染用什么药最好| 什么粥最养胃健脾| 治疗梅毒用什么药最好| 浅表性胃炎吃什么药好使| 周易和易经有什么区别| 足下生辉是什么意思| 6月20是什么星座| 铁锈用什么能洗掉| 吐槽是什么意思| 微信什么时候开始的| 科目三考什么内容| 孩子第一次来月经要注意什么| 11月16是什么星座| 火龙果有什么功效| 11月2号什么星座| 为什么叫北洋政府| 9527是什么梗| 柠檬吃多了有什么坏处| 荷花象征着什么| 1.28什么星座| 壁虎的尾巴有什么用| 92年属猴是什么命| 善存片什么时候吃最好| 窦性心动过缓伴不齐是什么意思| 支原体感染用什么药| 梦见捞鱼是什么意思| 单纯性苔藓是什么病| 左附件囊肿注意什么| 今天是什么日子啊| 老卵上海话什么意思| 四月二十八什么星座| 肌酐500多属于什么期怎么治疗| 婴儿口水多是什么原因| 太傅是什么官| 文旦是什么| 人不出汗是什么原因| 小狗感冒症状是什么样的| 红花油和活络油有什么区别| 什么牌子的点读机好| 梦见好多蛇是什么意思| 低压偏低是什么原因| 尿管型偏高是什么原因| 月经时间过长是什么原因引起的| 军士长是什么级别| 依非韦伦片治什么病的| 学什么设计最赚钱| 彩色相片什么时候出现| 小弟一阵阵的疼什么原因| 什么是磁共振| 忘忧草是什么意思| 妈妈的堂哥叫什么| 戴黄金对身体有什么好处| 脸上有痣去医院挂什么科| 在干什么| 百度
Page MenuHomePhabricator

西路军女战士蒙难记 女红军遭强暴凌辱历史真相

Description

百度 今晚(3月24日)20:30,东方卫视全新代际相亲交友节目金伯利钻石《中国新相亲》第八期即将浪漫来袭。

For talk pages, it would be useful to have an id attribute on each list item (talk page comments using : are <dd> list items) so that individual comments can be referenced. Perhaps other lists would benefit from being able to be referenced by default (as headings are).

Strawman proposal is to automatically assign hierarchical ids (so that adding new subitems---which are replies, in a talk page context---does not shift existing ids), something like:

wikitext:

== Thread 1 ==
: This is comment 1
:: This is a reply to comment 1
: This is comment 2

which turns into the following output (note that this is also valid wikitext for this list, but the point of this task is that authors are *not required* to write this; instead the IDs are automatically generated):

<h2 id="thread_1">Thread 1</h2>
<dl><dd id="thread_1-1">This is comment 1
  <dl><dd id="thread_1-1-1">This is a reply to comment 1</dd></dl>
</dd><dd id="thread_1-2">This is comment 2
</dd></dl>

Alternatively/in addition, a "permanent" or "more readable" id could be manually assigned, which would override (or supplement?) the automatically-assigned id. This would get expressed either using explicit <dd id="..."> syntax (sigh), with new cleaner syntax (for example, as proposed in T230658: Syntax for list item attributes), or via some other mechanism (see the note at the bottom of this task).

These assigned list IDs are scoped to an individual article or talk page, so they don't need to be globally unique, which should greatly help make then human-friendly.

In fact, instead of hierarchically-assigned IDs, we could generate them based on the list item/comment content, like we do for section ids. We'd want to truncate to a certain length, and we'd probably want a manual override to preserve the original ID if/when the list item/comment is edited.

As a strawman, using the timestamp as a ID prefix helps ensure that a bunch of comments which all start with "approved" don't need a lot of automatic deduplication:

== Thread 1 ==
: This is comment 1 {{#~|UserA|20190818 10:23:45}}
:: This is a reply to comment 1 {{#~|UserB|20190818 10:23:45.1}}
: This is comment 2 {{#~|UserC|20190818 10:23:45.15}}

<h2 id="thread_1">Thread 1</h2>
<dl><dd id="20190818T1213-this_is">This is comment 1
  <dl><dd id="20190818T1214-this_is">This is a reply to comment 1</dd></dl>
</dd><dd id="20190818T1215-this_originally_said">This is comment 2
</dd></dl>

(That last item might serialize to wikitext as: : id=20190818T1215-this_originally_said <<< This is comment 2 >>>.)

However, this can look ugly if it appears in wikitext -- even as a link: [[Talk:Foo#20190818T1214-this-is]]. Readability needs to be traded off against being 'unique by default' (as opposed to requiring a postprocessing pass to make IDs unique, as section headings currently do).

As a point of comparison, phabricator discussions currently include an opaque numeric tag, but one which is substantially shorter than a full human-readable timestamp. Since [[phab:T230659#5431727]] is considered acceptable, that could be considered a reasonable proxy for the acceptable length of an opaque comment identifier. Note that, unlike in some previous comment-linking proposals, we are still preserving the context of the discussion -- in the phab case via the T230659 prefix, although as an opaque number itself that's not great and phab itself will expand that with hovertext in most UX. In the proposed Talk page context the prefix would be the title of the task page: [[Talk:Foo#5431727]] or something like that.

As a special case of lists, talk pages aren't as often edited (we try to leave existing comments alone!), but they are usually archived after a period of time, which could break existing links. We'd need some way to update references to point to the archived page instead. You could either do this with a bot that could just comb through looking for old references, or more "cleverly" with something like:

[[Special:Talk/PageName#comment-id]]

where that special page would redirect to the appropriate archive page for the given comment id.

Note: '''This task is just for automatically-assigning default list item ids.''' If you want to make list item ids persistent across edits to the wikitext, then make a proposal in a separate task for how to do so. T230658: Syntax for list item attributes is one such proposal, where the comment ID would appear as an explicit ID attribute in wikitext. You could also imagine persisting list items IDs by using a separate database table of some sort that would record assigned IDs and perhaps update this table when wikitext is edited. I don't have a good idea for how to do that, but feel free to make a proposal.

Event Timeline

This presupposes that we want to continue using wikitext list markup for talk pages. Ideally we'd do T230683: New syntax for multiline list items / talk page comments instead.

(That last item might serialize to wikitext as: : id=20190818T1215-this_originally_said <<< This is comment 2 >>>.)

That's awful. To the point that I forsee a conspiracy theory about making the wikitext so ugly to try to force everyone to not use wikitext anymore.

where that special page would redirect to the appropriate archive page for the given comment id.

Interesting idea, but I wonder about the performance of it having to check potentially hundreds of archive pages looking for the ID, plus that it probably requires a specific archive naming format.

If you do new syntax, then you still have to figure out how to add attributes (at least outdent information, and ideally an I'd as well) to that new syntax.

Note that the timestamps in the IDs were a partial addition that Ed and I were working on and they were left in a weird in-between state. I think the id is likely to be much more compact, which would make the explicit I'd version a little prettier:

: id=short-string <<< long comment here >>>

And of course I'd expect editors would appreciate the abilities to add class, id, and data attributes to list items outside the talk page context.

If you do new syntax, then you still have to figure out how to add attributes (at least outdent information, and ideally an I'd as well) to that new syntax.

Ideally outdenting in the wikitext should go away entirely. The wikitest should represent the semantic nesting of the comments and any visual outdenting should be applied by MediaWiki itself.

It would probably also help if the comment-nesting didn't use as much whitespace as the existing colon/asterisk indenting does.

Note that the timestamps in the IDs were a partial addition that Ed and I were working on and they were left in a weird in-between state. I think the id is likely to be much more compact, which would make the explicit I'd version a little prettier:

: id=short-string <<< long comment here >>>

Not enough prettier, IMO. I'm skeptical that use cases for all this (maybe highlighting the targeted item like the reflist does?) are enough to be worth the added complexity to wikitext, versus those few use cases just using HTML-style markup.

And of course I'd expect editors would appreciate the abilities to add class, id, and data attributes to list items outside the talk page context.

In my experience IDs are typically added wherever needed using templates that produce <span id="..."></span>, as the first thing inside the list item if the ID is needed to point to a list item.

As for the rest, the only thing I recall seeing anyone actually ask for is the ability to do <li value="N"> to affect the numbering generated by a # list.

If I understand this correctly, it appears to be a non-starter. One of the clear outcomes of the Talk Page Consultation was not to disrupt normal editing of talk pages, and that any new tools be optional. It appears either impossible or unreasonable for experienced editors to type these IDs, and surely you don't expect a new users to look at the wikipage and figure out how to comment like this.

Edit to clarify: If this were expected for all or most comments I would consider it a non-starter. If this is some rare special purpose feature, equivalent to how on rare occasion we put an anchor link on a section, then I withdraw that concern.

Without getting into the specifics of this task, a point of clarification at a meta level. All these are really preliminary ideas for exploration and @cscott put them out on Phabricator for that purpose. Whether any of these will see the light of day in terms of implementation depends on whether they make sense and fit into the broader picture (for wikitext as a markup language and for the talk pages project). With that clarification in mind, please continue the conversation.

Edit to clarify: If this were expected for all or most comments I would consider it a non-starter. If this is some rare special purpose feature, equivalent to how on rare occasion we put an anchor link on a section, then I withdraw that concern.

This is the case. I edited the task description to attempt to clarify this, since I realized belatedly that the *output HTML* I used in my example could be misinterpreted as a proposal for *input wikitext*. Ambiguous because HTML tags are acceptable wikitext, and in fact are the only current way to express ID attributes on list items. I apologize for the misunderstanding.

The proposal is that list items would get automatically assigned IDs like heading tags do. This task is mostly for discussion (a) whether that's a good idea, (b) what its use cases would be (not just on talk pages), and (c) what format the automatically assigned IDs should have. The "rare special purpose feature" would be where you'd want to override these automatically-assigned IDs, for example if the automatically-assigned ID is computed based on content and you wanted to preserve the original ID after editing the content. But the question of how that "rare special purpose" use would appear in wikitext isn't actually what this task is about. The "status quo" mechanism would be to require explicit HTML tags in the wikitext, either <dd id=...> or : <span id=....>. An alternative mechanism is proposed in T230658: Syntax for list item attributes, but that's largely orthogonal to this task.

(And for the record, Parsoid in fact already assigns unique IDs to every HTML element in the output, but not in a persistent way that would allow users to reliably link to a given element. So it's the "reliable/repeatable" IDs part which is actually novel/worth discussing.)

Anyway, I've attempted to clarify the task description; let me know if this helps.

cscott renamed this task from id attributes for list items to Automatically-assigned id attributes for list items.Aug 22 2019, 6:10 PM

For completeness, another proposal is to automatically scan for a trailing signature (perhaps using the {{#~|user|date}} syntax from T230653) and using the timestamp from this as part of the automatically-generated ID. I'm not a huge fan of this proposal because (a) requires non-local effects on list item markup, and (b) seems to be too talk-page specific, but it's certainly worth mentioning for discussion that automatic ID generation based on content doesn't have to quite as simplistic as the ID generation for headings is.

In T230683#5432585 @Anomie proposes using the revision ID of the edit that creates the comment as its persistent identifier.

In T230683#5432585 @Anomie proposes using the revision ID of the edit that creates the comment as its persistent identifier.

I observed that links to individual talk page comments today often use diffs, which has the advantage of showing exactly what was added, when it was added, and who added it without relying on the (editable) wikitext.

I doubt that using the revision ID would make sense for list items, which is what this task is supposed to be about. It would be convenient for talk page comments, but as I said originally I think we'd do far better by not continuing to conflate the two.

In T230683#5432585 @Anomie proposes using the revision ID of the edit that creates the comment as its persistent identifier.

I'm not sure how this would be evaluated at parse time, unless it was injected into the wikitext with the edit.

In researching the existing gadgets, convenient-discussions generates IDs for each comment that are a concatenation of timestamp and username, which in conjunction with parser-function signatures would be very easy to extract.

As a concrete proposal, I'd like to tie this in with the strawman in T230658#5786980 and propose that the magic parser function {{#~}} (see T230653: Use a parser function to encapsulate signatures) "conceptually" include {{#attr|id=<something>}} in its expansion. (See the discussion there about p-wrapping and how unclosed tags could affect {{#attr}} placed in tail position.)

This would re-use the semantics/implementation of "attach an attribute to the containing node" needed to implement {{#attr}}. Unsigned comments wouldn't have permalinks, but the signature bot could take care of that.

石骨症是什么病 特点是什么意思 殿试是什么意思 5月21号是什么星座 神气活现是什么意思
一什么眼睛 狗怀孕有什么症状 硫酸对人体有什么危害 什么伤肝 脑瘫是什么原因引起的
排休是什么意思 6月出生是什么星座 常务副省长是什么级别 指甲上有竖条纹是什么原因 眼震电图能查什么病
鼻咽癌有什么症状 喘是什么原因造成的 喝啤酒有什么好处 北极为什么没有企鹅 8月10日什么星座
咽喉炎吃什么药hcv8jop8ns9r.cn 现在最火的歌是什么hcv7jop9ns0r.cn 梦见进监狱是什么兆头hcv7jop5ns6r.cn 看正月初一是什么生肖hcv7jop9ns3r.cn 孩子气是什么意思dayuxmw.com
针眼长什么样子图片hcv9jop4ns3r.cn 恋足癖是什么意思clwhiglsz.com 老子叫什么hcv7jop7ns0r.cn 为什么会有肾结石hcv9jop2ns6r.cn 眩晕症挂什么科hcv8jop9ns3r.cn
被蜈蚣咬了有什么症状hcv9jop5ns9r.cn 口干咽干是什么原因hcv7jop5ns3r.cn 11月17是什么星座hcv8jop1ns0r.cn 买手机上什么网cl108k.com 夏天用什么带饭不馊hcv9jop2ns9r.cn
连连支付是什么hcv7jop5ns5r.cn 湿疹是什么样的图片hcv7jop9ns1r.cn 身体老是出汗是什么原因hcv9jop4ns0r.cn 苏菲是什么意思hcv9jop4ns1r.cn 暗的反义词是什么hcv9jop2ns5r.cn
百度