Wikibooks zhwikibooks https://zh.wikibooks.org/wiki/Wikibooks:%E9%A6%96%E9%A1%B5 MediaWiki 1.39.0-wmf.23 first-letter Media Special Talk User User talk Wikibooks Wikibooks talk File File talk MediaWiki MediaWiki talk Template Template talk Help Help talk Category Category talk Transwiki Transwiki talk Wikijunior Wikijunior talk Subject Subject talk TimedText TimedText talk Module Module talk Gadget Gadget talk Gadget definition Gadget definition talk Wikibooks:互助客棧 4 107 168495 168484 2022-08-16T08:53:22Z VChang (WMF) 58775 /* 2022年維基媒體基金會理事會選舉延期 */ 新章节 wikitext text/x-wiki {{/header}}{{Easy Archive|to=Wikibooks:互助客栈/存档/二零二二年}} ==[[中國歷史/皇帝全表]]的多個問題== # 除部分章節外,大部分章節直接就是謚號+姓名,編排過於簡陋。 #* 個人建議合理使用表格,或者建立貼合對應本頁面的表格。 # 內容中許多“皇帝”僅僅是自稱皇帝,包括農民起義軍、叛軍領袖,乃至20世紀一些秘密結社組織的頭目,都列入進來作為了“皇帝”,並造成現在頁面一共有'''338個章節''',使本列表與主頁面[[中國歷史]]的關係減小很多,因為主頁面基本很少會提這些所謂“皇帝”(可能漢末、元末、明末的部分除外)。 #* 個人建議起義軍、叛軍、秘密結社組織的相關章節應當{{刪除}}。 # 近日有IP用戶持續加入'''大量的加粗文字''',文字內容是有關部分列出皇帝的生平經歷,但內容'''實在過多,造成喧賓奪主''',生平加粗使皇帝本身的姓名謚號反倒看不清楚,而且造成頁面'''體積擴大嚴重''',目前甚至'''超過500,000字節''',對部分設備極不友好,不知道添加者有無好好考慮,頁面應當是能要'''讓人正常閱讀'''的。 #* 作為一個列表,只要有一般基本信息,再加上些不多的文字注釋就好。如果再堆積各個皇帝的生平,那不如開新頁來做二十四史閱讀。個人建議這些內容應當全部{{刪除}}。--[[User:Sayonzei|Sayonzei]] ([[User talk:Sayonzei|留言]]) 2020年7月10日 (五) 10:18 (UTC) :支持{{删除}}。该页面主要由[[w:vi:User:Kinh nghiệm - bán không ai mua, mua không ai bán]]创建,在[https://xtools.wmflabs.org/ec/vi.wikipedia.org/Kinh%20nghiệm%20-%20bán%20không%20ai%20mua,%20mua%20không%20ai%20bán]上可以看到该用户目前在越南语维基百科仍然活跃,所以我顺便@一下正主{{ping|User:Kinh nghiệm - bán không ai mua, mua không ai bán}}。 * 意見同上。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]].[[:w:zh:User:Ericliu1912|百科用戶頁]]''')</sub> 2020年12月1日 (二) 08:55 (UTC) ---- 已經送交刪除請求。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]].[[:w:zh:User:Ericliu1912|百科用戶頁]]''')</sub> 2021年11月2日 (二) 03:03 (UTC) == 贵站有无收录游戏攻略的意向? == 大家好。我是中文维基百科电子游戏专题的参与者。近闻英文维基专题开始[[:en:Wikibooks:What_is_Wikibooks#Wikibooks_includes_video_game_strategy_guides|收录游戏攻略]]。故问中文维基教科书是否也有收录攻略的意向?谢谢。<small>([[:w:WikiProject_talk:电子游戏#英文维基教科书收录游戏攻略了|中文维基百科讨论]])</small>-- [[User:Lopullinen|Lopullinen]] ([[User talk:Lopullinen|留言]]) 2021年7月10日 (六) 09:57 (UTC) *{{反对}}这种行为涉嫌游戏维基规则,不宜提倡,建议另设项目解决。--[[User:Liuxinyu970226|Liuxinyu970226]] ([[User talk:Liuxinyu970226|留言]]) 2021年8月14日 (六) 08:26 (UTC) *: {{ping2|Liuxinyu970226}}:這與遊戲維基規則無甚關係吧……貴站的收錄範圍取决與貴站自己,我也祇是詢問貴站社群有無意向。若貴站有意收錄遊戲教程,我願意協助討論制定格式規範,以及維基百科攻略向内容的遷移方案。此後維基百科清理攻略時,維基百科即可推薦編輯來教科書站(而不祇是Wikia等外站)撰寫攻略。如若貴站無意納入該等内容,維基百科照舊不提及教科書站便是。--[[User:Lopullinen|Lopullinen]] ([[User talk:Lopullinen|留言]]) 2021年8月27日 (五) 14:00 (UTC) *{{支持}}或许这是能让wikibooks重生的救命稻草了。--[[User:SugaryMegmin|<span style="font-family:宋体;font-size:18px;color:green">'''酥糖'''</span>]] [[User_talk:SugaryMegmin|<span style="font-family:Times New Roman;font-size:18px;color:grey">''Megmin''</span>]] 2021年8月24日 (二) 00:15 (UTC) *:@[[User:Lopullinen|Lopullinen]]@[[User:SugaryMegmin|SugaryMegmin]] [[m:Wikigames (2)]]了解一下 [[User:Liuxinyu970226|Liuxinyu970226]] ([[User talk:Liuxinyu970226|留言]]) 2021年8月27日 (五) 23:56 (UTC) *:: {{ping|Liuxinyu970226}} 我知道這個提案,支持的第三个人就是我。我明白贵站'''現行'''政策拒絕游戏攻略;英文教科書半年前的說法也一樣。現在英文教科書給出新的理由,認為「遊戲攻略可以寫成教科書」,而舊規則的理據不再合適。所以我的意思是,貴站現在拒絕游戏攻略的背後,是明確認為英文區的新理由不適合本地,還是單純沒有考慮過這個問題?<s style="color: #CCC;">所以「在中文维基教科书站詢問『中文维基教科书是否有收录攻略的意向』」這種行為,都需要專程另設新項目才能解決嗎?</s>--[[User:Lopullinen|Lopullinen]] ([[User talk:Lopullinen|留言]]) 2021年8月28日 (六) 01:42 (UTC) *:::{{ping|Lopullinen}}实际上,现在最大的问题不是能不能收录,而是活跃人数过少,导致共识难以形成。 [[User:SugaryMegmin|<span style="font-family:宋体;font-size:18px;color:green">'''酥糖'''</span>]] [[User_talk:SugaryMegmin|<span style="font-family:Times New Roman;font-size:18px;color:grey">''Megmin''</span>]] 2021年8月28日 (六) 01:52 (UTC) *::::实际上这根本不是最大的问题,最大的问题还是一旦“开闸放水”,直接本站收录游戏手册,很容易基于游戏维基规则被滥用。 [[User:Liuxinyu970226|Liuxinyu970226]] ([[User talk:Liuxinyu970226|留言]]) 2021年9月25日 (六) 09:12 (UTC) *::{{ping|Liuxinyu970226}}您可能理解错了,两个项目的侧重各不相同,而且现在关于游戏攻略也并没有社群共识,更无阁下所说的:“the Chinese Wikibooks community recently rejected allowing game guides inclusio”。您自己的反对并不能代表社群的意见,不是吗? [[User:SugaryMegmin|<span style="font-family:宋体;font-size:18px;color:green">'''酥糖'''</span>]] [[User_talk:SugaryMegmin|<span style="font-family:Times New Roman;font-size:18px;color:grey">''Megmin''</span>]] 2021年8月28日 (六) 01:56 (UTC) *:::那么看来英语世界的books和中文世界的教科书看来是不同的了,反正攻略就是攻略,教科书就是教科书,我虽然对伊斯兰沙里亚法啥的不感兴趣,但是前者正规证据程度至少可以堪比“万物非主唯有真主...”那句了吧,后者写作风格的随意性较大。--[[User:Liuxinyu970226|Liuxinyu970226]] ([[User talk:Liuxinyu970226|留言]]) 2021年8月28日 (六) 12:09 (UTC) *建议此讨论以无共识为由尽快关闭。--[[User:Liuxinyu970226|Liuxinyu970226]] ([[User talk:Liuxinyu970226|留言]]) 2021年9月25日 (六) 09:12 (UTC) * {{支持}}收錄。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]].[[:w:zh:User:Ericliu1912|百科用戶頁]]''')</sub> 2021年11月2日 (二) 02:58 (UTC) :支持收录 [[User:Dr.Element|Dr.Element]] ([[User talk:Dr.Element|留言]]) 2021年11月13日 (六) 03:09 (UTC) *{{支持}}收錄攻略,也算教材。--[[User:Jusjih|Jusjih]] ([[User talk:Jusjih|留言]]) 2021年12月7日 (二) 02:28 (UTC) **若沒有更多意見,就作爲同意收錄攻略結案。--[[User:Jusjih|Jusjih]] ([[User talk:Jusjih|留言]]) 2022年1月4日 (二) 21:16 (UTC) 搬运了[[Wikibooks:攻略本]]。--[[User:Lopullinen|Lopullinen]] ([[User talk:Lopullinen|留言]]) 2022年1月13日 (四) 10:43 (UTC) :或者建議收在[{{fullurl:v:Wikiversity:%E9%A6%96%E9%A1%B5}} 維基學院]而非維基教科書?——[[Special:Contributions/220.135.64.212|220.135.64.212]] ([[User talk:220.135.64.212|留言]]) 2022年1月14日 (五) 04:18 (UTC) {{補充}}[{{fullurl:Wikibooks:互助客栈/存档/二零二零年#我覺得遊戲的操作跟攻略也可以放到維基教科書裡面,各位的看法如何?}}][{{fullurl:v:Wikiversity:互助客栈|oldid=198058}}]——[[Special:Contributions/220.135.64.212|220.135.64.212]] ([[User talk:220.135.64.212|留言]]) 2022年1月14日 (五) 04:19 (UTC) :而且建議電子遊戲歸在體育,因為我也同意電競是一種運動,精神跟籃球棒球等運動以及西洋棋,幾乎相同,見[[Subject:體育]]。——[[Special:Contributions/220.135.64.212|220.135.64.212]] ([[User talk:220.135.64.212|留言]]) 2022年1月14日 (五) 04:29 (UTC) :: <small>(抱歉调整了您的链接格式。我用的镜像站,回复时会修改URL地址。)</small>攻略也分两类。一类是基本流程攻略,就像[[Solaris 10/安裝|安装Solaris 10系统]]一样,虽然具体实现步骤有一定的自由度,但总体操作流程还是没有争议的。极端例子如《[[w:逆转裁判|逆转裁判]]》,玩家几乎只有确定的操作,如在指定的地方「威慑」、选择指定的回答,否则游戏失败。另一种是极限攻略。比如极速或无伤通关,或者能四名角色同时战斗但挑战全程单角色出阵。后者极限破关维基学院可能欢迎,而[[Wikibooks:攻略本]]说也是嫌原创且有争议不要。前者基本属于照本宣科,有条件甚至可以改述官方攻略本,这种就还怕学院不会收。--[[User:Lopullinen|Lopullinen]] ([[User talk:Lopullinen|留言]]) 2022年1月14日 (五) 06:48 (UTC) {{反對}}Wikibooks 的中文名為維基教科書,而依我看來遊戲攻略的本質於教科書不同,而一般外面賣的遊戲攻略一般屬於雜誌,英語books 確實包含,而教科書則不包含。故此作出反對。-[[User:夏瑾凉安|夏瑾凉安]] ([[User talk:夏瑾凉安|留言]]) 2022年1月23日 (日) 07:13 (UTC) == 关于新logo的提议 == 维基教科书现使用的中文logo为近十年前制作,已明显脱离时代,我暂时制作了以下的方案,望诸君提出意见。另:暂时只制作了简化字版,繁体版有待重置。 [[User:SugaryMegmin|<span style="font-family:宋体;font-size:18px;color:green">'''酥糖'''</span>]] [[User_talk:SugaryMegmin|<span style="font-family:Times New Roman;font-size:18px;color:grey">''Megmin''</span>]] 2021年8月28日 (六) 14:02 (UTC) :个人意见:"自由世界 自由读本" 这句不太好看,可以试试 '''加粗''' 或使用旧 logo 的字体。 :[[User:Jason bowen zheng|<b>Jason</b>]] ([[User_talk:Jason bowen zheng|留言]]) 2021年8月28日 (六) 23:48 (UTC) ::{{ping|Jason bowen zheng}}感谢建议,已经上传了增加字重后的版本,和其他版本一并列在下方。--[[User:SugaryMegmin|<span style="font-family:宋体;font-size:18px;color:green">'''酥糖'''</span>]] [[User_talk:SugaryMegmin|<span style="font-family:Times New Roman;font-size:18px;color:grey">''Megmin''</span>]] 2021年8月31日 (二) 10:21 (UTC) :::@[[User:SugaryMegmin|SugaryMegmin]] 活跃的管理员可是少之又少,这个提议可能一时半会过不了;或许可能还要加以修正(另:“自由世界 自由读本”的标语大家都认为不错,就不要改它了)。 [[User:Jason bowen zheng|<b>Jason</b>]] ([[User_talk:Jason bowen zheng|留言]]) 2021年8月31日 (二) 12:17 (UTC) :::几个月后,我无聊逛互助客栈,重新看到这两张图像,并用Inkscape打开,发现SVG内的对象<code>Main_logo</code>下的<code>g3299</code>下的<code>layer2</code>下的所有Path都有'''那么一丢丢'''小瑕疵:您放大一点可以发现:那三页书的图像中,黄色区域总是和蓝色区域差了那么一丢丢。希望阁下可以微调图像。-- <span style="text-shadow: 1px 1px 2px">[[User:Zhengxyz|<b>Jason</b>]]</span> ([[User_talk:Zhengxyz|留言]]) 2021年10月5日 (二) 09:42 (UTC) {|- |[[File:Wikibooks-logo(ali-new).svg]] |[[文件:Wikibooks-logo(ali).svg]] |- |加粗版本 |通常版本 |} --[[User:SugaryMegmin|<span style="font-family:宋体;font-size:18px;color:green">'''酥糖'''</span>]] [[User_talk:SugaryMegmin|<span style="font-family:Times New Roman;font-size:18px;color:grey">''Megmin''</span>]] 2021年8月31日 (二) 10:32 (UTC) :通常版本的標語太細(其實目前版本也有此問題)難以看清。加粗版本好一些。-[[User:Cangjie6|Cangjie6]] ([[User talk:Cangjie6|留言]]) 2021年9月4日 (六) 05:31 (UTC) :如果製作繁體版本時,建議使用「源樣黑體」和「源樣明體」。-[[User:Cangjie6|Cangjie6]] ([[User talk:Cangjie6|留言]]) 2021年9月4日 (六) 05:33 (UTC) 感谢各位提议,在时间允许的条件下,我会修改它。--[[User:SugaryMegmin|<span style="font-family:宋体;font-size:18px;color:green">'''酥糖'''</span>]] [[User_talk:SugaryMegmin|<span style="font-family:Times New Roman;font-size:18px;color:grey">''Megmin''</span>]] 2021年10月16日 (六) 11:15 (UTC) == 為互助客棧引入topic list == 如題,這樣可以更好的追蹤討論,不知大家意見如何。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]].[[:w:zh:User:Ericliu1912|百科用戶頁]]''')</sub> 2021年9月26日 (日) 11:35 (UTC) : 不妨部署看看?—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]]''')</sub> 2022年3月25日 (五) 17:14 (UTC) :: 傾向{{支持}}。--[[User:Sayonzei|Sayonzei]] ([[User talk:Sayonzei|留言]]) 2022年3月25日 (五) 17:17 (UTC) ::: 那我就去請Kanashimi君協助部署機器人了。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]]''')</sub> 2022年4月20日 (三) 12:42 (UTC) :::# 我在維基教科書的權限不夠,編輯cewbot的子頁面被視為明顯的破壞者了。不曉得是否能先改改權限,並且添加cewbot的機器人權限。 :::# 除了目錄列表外,需不需要再引入補簽名、存檔、修正錯誤錨點、清理沙盒之類的功能? [[User:Kanashimi|Kanashimi]] ([[User talk:Kanashimi|留言]]) 2022年4月23日 (六) 23:49 (UTC) ::::: 功能的話我覺得應該都可以。閣下可給Cewbot[[维基教科书:机器人#机器人提议|申請機器人權限]],我會附議支持。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]]''')</sub> 2022年5月1日 (日) 02:25 (UTC) ::::::好的。已經申請。 [[User:Kanashimi|Kanashimi]] ([[User talk:Kanashimi|留言]]) 2022年5月13日 (五) 03:24 (UTC) == [[MediaWiki:Viewinguserrights]] == 建議增加至元維基本地權限日誌之連結,[[:w:特殊:固定链接/56678027|範例在此]]。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]].[[:w:zh:User:Ericliu1912|百科用戶頁]]''')</sub> 2021年11月6日 (六) 16:39 (UTC) : 此外還需要建立語言變體,可以使用[[:w:User:Xiplus/js/TranslateVariants|這個js]]。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]].[[:w:zh:User:Ericliu1912|百科用戶頁]]''')</sub> 2021年11月15日 (一) 13:14 (UTC) == 是否可以增加过滤器 == 是否可以增加页面建立者不能移除快速删除模板的过滤器? --[[User:桐生ここ|桐生ここ]] ([[User talk:桐生ここ|留言]]) 2021年12月27日 (一) 09:29 (UTC) : {{ping|桐生ここ}}百科有這種防濫用過濾器嗎?—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]]''')</sub> 2022年8月14日 (日) 12:42 (UTC) ::{{Ping|Ericliu1912}}百科的16号过滤器。--[[User:桐生ここ|桐生ここ]] ([[User talk:桐生ここ|留言]]) 2022年8月15日 (一) 00:59 (UTC) == 邀請您與維基媒體基金會執行長Maryana Iskander一同討論基金會的年度計劃 == 大家好! [[m:Special:MyLanguage/Movement Communications|運動通訊]]和[[m:Special:MyLanguage/Movement Strategy and Governance|運動策略與治理]]團隊邀請您參與討論'''[[m:Special:MyLanguage/Wikimedia Foundation Annual Plan/2022-2023/draft|2022-23維基媒體基金會年度計畫]]'''。 這些對話接續[[m:User:MIskander-WMF|Maryana Iskander]]身為[[m:Special:MyLanguage/Wikimedia Foundation Chief Executive Officer/Maryana’s Listening Tour|維基媒體基金會執行長的聆聽之旅]]。 本次討論旨在了解社群與自治體對下列問題的看法: * [[m:Special:MyLanguage/Wikimedia 2030|2030維基媒體運動策略]]為「知識即服務」和「知識平權」設定了方向。維基媒體基金會希望根據這兩個目標進行規劃。您認為維基媒體基金會應該如何將這兩個目標應用到工作中? * 維基媒體基金會將繼續探索在區域層級上更好的工作方式。我們在補助金、新功能和社群對話等方面加強區域聚焦。您覺得什麼部分運作良好?又有什麼部分需要改進,以及如何改進? * 任何人都可以為運動策略的進程做出貢獻。邀請您分享您的活動、想法、請求以及經驗傳承。您認為維基媒體基金會應如何能更好地支援從事運動策略活動的志願者和自治體? 下星期日4月24日[https://zonestamp.toolforge.org/1650783620 07:00 UTC]的對話場次將提供'''同步中文口譯''',更多相關資訊下週儘快與您分享。 運動策略與治理[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年4月14日 (四) 19:16 (UTC) '''更新:4月24日的對話邀請您透過此[https://wikimedia.zoom.us/j/84441831690 Zoom會議連結]參與。''' 基金會將透過此年度計畫更明確的聚焦運動策略,並想了解社群目前已有什麼工作以進行雙向規劃。內容主要為基金會年度計畫簡介、執行長Maryana開場和開放提問討論。提問部分以上列三個問題做引導,不過對話將保持彈性開放社群成員自由地提問、分享對基金會年度計畫的想法以及已經在進行的相關工作等。如果您對此活動有任何疑問,歡迎與我聯繫,謝謝![[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年4月21日 (四) 16:58 (UTC) == 2022年維基媒體基金會理事會選舉:徵求候選人 == 大家好,維基媒體基金會理事會正為[[m:Wikimedia_Foundation_elections/2022|2022年的選舉]]尋找候選人。理事會負責監督基金會的運作,且由社群和自治體遴選的理事和理事會直接任命的理事組成;每位理事的任期為三年。在2022年,維基媒體社群將對[[m:Wikimedia_Foundation_Board_noticeboard/April_2022_Board_Election_process_in_2022/zh|社群和自治體遴選的兩個理事席位進行投票]],這會是增進理事會代表性、多樣性和專業性的機會。更多關於2022年理事會席次相關資訊請見此[[m:Wikimedia_Foundation_Board_noticeboard/April_2022_-_Board_seats_in_2022_and_2023/zh|公告]]。 邀請有意願參選的各位至[[m:Wikimedia_Foundation_elections/2022/Announcement/Call_for_Candidates/zh|此頁面了解更多資訊]],或您心目中有覺得合適的人選也請您鼓勵他們[[ m:Wikimedia_Foundation_elections/2022/Apply_to_be_a_Candidate|提交申請參選]]。如果您有任何疑問,煩請您與我們聯繫,謝謝! 運動策略與治理團隊謹代表選舉委員會和理事會 [[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年4月25日 (一) 17:33 (UTC) == 通用行為準則執行規範投票結束後的進展 == 大家好!簡要的跟大家分享一下[[m:Universal_Code_of_Conduct/Enforcement_guidelines/zh|通用行為準則執行規範]]投票結束後的進展。儘管[[m:Universal_Code_of_Conduct/Enforcement_guidelines/Voting/Results/zh|投票結果]]顯示,最終總票數2283票中有1338票(佔總票數58.6%)為贊成票,但考量也有945票(佔41.4%)為反對票的情形下,維基媒體基金會理事會的[[m:Wikimedia_Foundation_Community_Affairs_Committee|社群事務委員會]]決定要求基金會協助進行新一輪的社群諮詢、重新召集起草委員會根據投票評論欄所提出的意見(主要可分為四大主題)完善執行規範,而後再次進行社群投票,以確保執行規範能有社群強力支持後再進行理事會的正式批准。先前大家在投票時所留下的評論,信任與安全團隊尚在做最後整理中,希望能儘快公布。關於社群事務委員會先前的公告請[[m:Wikimedia_Foundation_Board_noticeboard/April_2022_-_Board_of_Trustees_on_Next_steps:_Universal_Code_of_Conduct_(UCoC)_and_UCoC_Enforcement_Guidelines/zh|見此]]。如果您有任何疑慮或問題,請與我們聯繫,謝謝!運動策略與治理[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年4月26日 (二) 09:01 (UTC) == [[m:Requests for comment/Global de-adminship for Jusjih]] == 现有用户认为Jusjih在多个其作为管理员的维基项目([[Special:用户权限/Jusjih|包括本站]])上做出违反管理员方针的行为,并打算全域解除其管理员职务,如有兴趣欢迎前往讨论。 [[User:Liuxinyu970226|Liuxinyu970226]] ([[User talk:Liuxinyu970226|留言]]) 2022年4月29日 (五) 09:58 (UTC) == Coming soon: Improvements for templates == <div class="plainlinks mw-content-ltr" lang="en" dir="ltr"> <!--T:11--> [[File:Overview of changes in the VisualEditor template dialog by WMDE Technical Wishes.webm|thumb|Fundamental changes in the template dialog.]] Hello, more changes around templates are coming to your wiki soon: The [[mw:Special:MyLanguage/Help:VisualEditor/User guide#Editing templates|'''template dialog''' in VisualEditor]] and in the [[mw:Special:MyLanguage/2017 wikitext editor|2017 Wikitext Editor]] (beta) will be '''improved fundamentally''': This should help users understand better what the template expects, how to navigate the template, and how to add parameters. * [[metawiki:WMDE Technical Wishes/VisualEditor template dialog improvements|project page]], [[metawiki:Talk:WMDE Technical Wishes/VisualEditor template dialog improvements|talk page]] In '''syntax highlighting''' ([[mw:Special:MyLanguage/Extension:CodeMirror|CodeMirror]] extension), you can activate a '''colorblind-friendly''' color scheme with a user setting. * [[metawiki:WMDE Technical Wishes/Improved Color Scheme of Syntax Highlighting#Color-blind_mode|project page]], [[metawiki:Talk:WMDE Technical Wishes/Improved Color Scheme of Syntax Highlighting|talk page]] Deployment is planned for May 10. This is the last set of improvements from [[m:WMDE Technical Wishes|WMDE Technical Wishes']] focus area “[[m:WMDE Technical Wishes/Templates|Templates]]”. We would love to hear your feedback on our talk pages! </div> -- [[m:User:Johanna Strodt (WMDE)|Johanna Strodt (WMDE)]] 2022年4月29日 (五) 11:14 (UTC) <!-- 信息由 User:Johanna Strodt (WMDE)@metawiki 发送,使用的列表为 https://meta.wikimedia.org/w/index.php?title=WMDE_Technical_Wishes/Technical_Wishes_News_list_all_village_pumps&oldid=23222263 --> == Editing news 2022 #1 == <section begin="message"/><i>[[metawiki:VisualEditor/Newsletter/2022/April|閱讀這份電子報的其他語言版本]] • [[m:VisualEditor/Newsletter|訂閱這份多種語言的電子報]]</i> [[File:Junior Contributor New Topic Tool Completion Rate.png|thumb|<span lang="en" dir="ltr" class="mw-content-ltr">New editors were more successful with this new tool.</span>]] <span lang="en" dir="ltr" class="mw-content-ltr">The [[mw:Special:MyLanguage/Help:DiscussionTools#New discussion tool|New topic tool]] helps editors create new ==Sections== on discussion pages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">New editors are more successful with this new tool.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can [[mw:Talk pages project/New topic#21 April 2022|read the report]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">Soon, the Editing team will offer this to all editors at the 20 Wikipedias that participated in the test.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You will be able to turn it off at [[Special:Preferences#mw-prefsection-editing-discussion]].</span><section end="message"/> [[User:Whatamidoing (WMF)|Whatamidoing (WMF)]] 2022年5月2日 (一) 18:55 (UTC) <!-- 信息由 User:Quiddity (WMF)@metawiki 发送,使用的列表为 https://meta.wikimedia.org/w/index.php?title=Global_message_delivery/Targets/VisualEditor/Newsletter/Wikis_with_VE&oldid=22019984 --> == 2022年維基媒體基金會理事會選舉:徵求選舉志願者和候選人 == 大家好! 為了即將到來的理事會選舉,團隊正在[[m:Movement_Strategy_and_Governance/Election_Volunteers/2022/Call_for_Election_Volunteers/zh|徵求選舉志願者]](主要協助簡短翻譯工作及分享選舉流程相關資訊)。如果您有興趣成為選舉志願者,請[mailto:vchang-ctr@wikimedia.org 與我]聯繫。 另外,理事會候選人申請期限延長至'''5月16日'''。邀請有意願參選者[[m:Wikimedia_Foundation_elections/2022/Apply_to_be_a_Candidate/zh|儘快提交申請]],也請大家多多鼓勵身邊覺得合適的人參選。若您有任何疑問或尚在考慮也歡迎您與我聯繫,或者您想跟當前或之前的理事一對一聊聊再決定也歡迎您至[[m:Wikimedia_Foundation_elections/2022/Peer_support_for_potential_candidates|此頁面]]表達意願。 運動策略與治理[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年5月6日 (五) 17:36 (UTC) == 有关本站的logo == 本站的logo长期以来是[[:File:Wiki.png]](简体)和[[:File:Wikibooks-logo-zh.png]](繁体),在其他站点[[:phab:T150618|已经提供HIDPI支持]]的情况下相比而言显得很模糊。尝试在共享资源搜索了一波找到了[[:File:Wikibooks-logo-zh.svg|这个SVG文件]],不过只有繁体版本。如果哪位可以比照着制作一个简体版本的SVG文件,那么非常感激。[[User_talk:Stang|'''<span style="font-family:Cursive; color:#F50" lang="en">Stang</span>''']] 2022年5月18日 (三) 23:17 (UTC) :咱的想法是按照那个繁体版本的SVG文件生成三种大小的繁体logo,然后把简体的版本(只有一个135px的尺寸)用css切换。本站[[MediaWiki:Common.js#L-300|现在用js切换繁简logo]]着实不太行;最理想的办法是把这个逻辑写到<code>InitialiseSettings.php</code>里(不过这样会让配置文件非常臃肿),其次是写到css里面。希望看看各位的意见。[[User_talk:Stang|'''<span style="font-family:Cursive; color:#F50" lang="en">Stang</span>''']] 2022年5月18日 (三) 23:41 (UTC) == ns!=0的淡蓝色背景 == 算是[[Project:互助客栈/存档/二零二一年#请求管理员改变网站外观|这个讨论串]]的后续,漏掉了[[MediaWiki:Vector.css#L-25|Vector自己的定义]]。{{ping|WhitePhosphorus}} [[User_talk:Stang|'''<span style="font-family:Cursive; color:#F50" lang="en">Stang</span>''']] 2022年5月18日 (三) 23:29 (UTC) : {{done}} [[special:diff/167737]] --书中自有'''[[User:WhitePhosphorus|白磷]]'''[[User talk:WhitePhosphorus|屋]]<sub>[[Special:用户贡献/WhitePhosphorus|查水表]]</sub> 2022年5月31日 (二) 14:42 (UTC) == 運動策略論壇:邀請您使用並分享意見 == 跟各位分享一個訊息,團隊建立了一個[https://forum.movement-strategy.org 新的運動策略論壇],支援多語言([https://forum.movement-strategy.org/t/how-to-use-this-forum-in-your-language/58 有自動翻譯]),希望能有益[[m:Movement_Strategy/zh|運動策略]]的討論和跨社群交流;未來大家都能用中文回應其他語言使用者的討論。邀請您一同參與此論壇的測試與討論,[https://forum.movement-strategy.org/t/movement-strategy-forum-community-review/46 社群評論期]從今天開始至7月24日。您可以來[https://forum.movement-strategy.org/t/say-hello/79 打招呼],我也開了[https://forum.movement-strategy.org/t/topic/97 一個跟通用行為準則(UCoC)執行規範的討論],邀請中文社群來參與和留言。社群反饋如果良好,我們會在今年八月[[m:Wikimania_2022|Wikimania]]前讓論壇正式使用;如果反應不佳,我們會照收到的反饋修改或關閉。您可以透過維基媒體的帳號直接登入論壇,更多訊息也在[[m:Movement_Strategy/Forum/Proposal|元維基頁面]]上。 運動策略與治理[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年5月24日 (二) 10:19 (UTC) == 希望本地可以有[[foundation:EDP|合理使用内容]]相关方针 == 目前本地拥有[[Special:MediaStatistics|相当一部分数量]]的本地文件,且大部分不能迁移至共享资源。在[[Wikibooks:上传|侧边栏的“上传”链接]]内内容也准备的非常充分,但就非常可惜的缺少“合理使用内容”这一重要方针页面。鉴于本地开放长期上传且有继续开放的必要(例如操作非自由软件的截图),在此提议设立相关页面并升格为方针。内容可以参考[[voy:Wikivoyage:合理使用|导游]]和[[w:Wikipedia:合理使用|百科]]的内容。[[User_talk:Stang|'''<span style="font-family:Cursive; color:#F50" lang="en">Stang</span>''']] 2022年5月29日 (日) 20:51 (UTC) :当我没说,这里[[WB:EDP|算是有]](另见[[m:Non-free_content]])。这个讨论可以关掉了。[[User_talk:Stang|'''<span style="font-family:Cursive; color:#F50" lang="en">Stang</span>''']] 2022年6月30日 (四) 20:24 (UTC) == 通用行為準則執行規範投票的選民反饋報告以及執行規範的修訂討論 == 通用行為準則項目團隊已經對通用行為準則[[m:Universal_Code_of_Conduct/Enforcement_guidelines/zh|執行規範]]批准投票的選民反饋完成分析。2022年3月,通用行為準則執行規範草案進行了社群投票。儘管[[m:Universal_Code_of_Conduct/Enforcement_guidelines/Voting/Results/zh|投票結果]]顯示,最終總票數中有1338票為贊成票,但考量也有945票為反對票的情形下,維基媒體基金會理事會的[[m:Wikimedia_Foundation_Community_Affairs_Committee/zh|社群事務委員會]]決定要求基金會協助進行新一輪的社群諮詢、重新召集起草委員會根據投票評論欄所提出的意見完善執行規範,而後再次進行社群投票,以確保執行規範能有社群強力支持後再進行理事會的正式批准。 今年的投票一共有137個社群的選民參與投票,最多人參與的九個社群為:英語、德語、法語、俄語、波蘭語、西班牙語、中文、日語、義大利語維基百科,還有元維基。選民在投票時有機會就草案的內容做評論。一共有658名選民留下了評論。77%的評論以英語書寫。有來自24種語言的評論,數量最多的為英語(508),其次為德語(34)、日語(28)、法語(25)和俄語(12)。通用行為準則項目團隊將此報告提交給修訂起草委員會,委員會將根據這些社群反饋來完善執行規範。您可以在[[m:Universal_Code_of_Conduct/Enforcement_guidelines/Voting/Report/zh|元維基上]]閱讀此報告。 為協助修訂委員會識別通用行為準則執行規範應改進的部分,團隊正在徵求社群對幾個問題的意見,以提供委員會審查。您覺得通用行為準則執行規範要涵蓋哪些層面、如何實際運作,才能對中文社群有最大效益?要如何實施才能解決中文社群面臨的問題?邀請您閱讀元維基上的頁面([[m:Universal_Code_of_Conduct/Enforcement_guidelines/Revision_discussions/zh|執行規範修訂討論]]、[[m:Universal_Code_of_Conduct/Policy text/Revision_discussions/zh|政策文本修訂討論]])並參與新一輪的社群討論,我們會將您的想法提交給委員會。通用行為準則項目團隊也正與理事會一同制定接下來工作的時間表,並會在下個月公布。 運動策略與治理[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年5月30日 (一) 16:43 (UTC) == 通用行為準則執行規範:修訂討論進行中 == [[m:Universal_Code_of_Conduct/Enforcement_guidelines/zh|通用行為準則執行規範草案]]的修訂期仍在進行中,邀請各位參與[https://forum.movement-strategy.org/t/topic/97 運動策略論壇上的討論],發表您對[[m:Universal_Code_of_Conduct/Enforcement_guidelines/Revision_discussions/zh#培訓|培訓]]、對通用行為準則表達[[m:Universal_Code_of_Conduct/Enforcement_guidelines/Revision_discussions/zh#肯定|肯定]]、[[m:Universal_Code_of_Conduct/Enforcement_guidelines/Revision_discussions/zh#平衡隱私及正當程序|平衡隱私及正當程序]]這幾個部分的看法。當然您若對其他部分有任何看法,也歡迎您提出,以供修訂委員會修改草案。謝謝各位! 運動策略與治理[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年6月16日 (四) 13:05 (UTC) == User:蛇守护的苹果堆大规模侵权 == [[User:蛇守护的苹果堆]]所创建的页面中已有大量页面被怀疑侵权。是否应将该用户创建的页面全部删除?--[[User:沈澄心|沈澄心]] ([[User talk:沈澄心|留言]]) 2022年6月17日 (五) 15:37 (UTC) == Results of Wiki Loves Folklore 2022 is out! == <div lang="en" dir="ltr" class="mw-content-ltr"> {{int:please-translate}} [[File:Wiki Loves Folklore Logo.svg|right|150px|frameless]] Hi, Greetings The winners for '''[[c:Commons:Wiki Loves Folklore 2022|Wiki Loves Folklore 2022]]''' is announced! We are happy to share with you winning images for this year's edition. This year saw over 8,584 images represented on commons in over 92 countries. Kindly see images '''[[:c:Commons:Wiki Loves Folklore 2022/Winners|here]]''' Our profound gratitude to all the people who participated and organized local contests and photo walks for this project. We hope to have you contribute to the campaign next year. '''Thank you,''' '''Wiki Loves Folklore International Team''' --[[User:MediaWiki message delivery|MediaWiki message delivery]] ([[User talk:MediaWiki message delivery|留言]]) 2022年7月4日 (一) 16:13 (UTC) </div> <!-- 信息由 User:Tiven2240@metawiki 发送,使用的列表为 https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=23454230 --> == 提出能用於2022年選舉指南針的聲明 == 各位好, 邀請有意願參加[[m:Special:MyLanguage/Wikimedia Foundation elections/2022|2022年理事會選舉]]的各位[[m:Special:MyLanguage/Wikimedia_Foundation_elections/2022/Community_Voting/Election_Compass|提議能用於選舉指南針的聲明]]。 選舉指南針是幫助投票者選擇最符合他們信念與觀點的候選人的工具。社群成員將提出供候選人使用李克特量表(同意/中立/不同意)回答的聲明。候選人對聲明的回答將被加載到選舉指南針工具中。投票者將通過輸入他們對聲明的答案(同意/不同意/中立)來使用該工具。結果將顯示最符合投票者信念和觀點的候選人們。 以下是關於選舉指南針的時間表: 7月8至20日:志願者提議能用於選舉指南針的聲明。 7月21至22日:選舉委員會審閱這些聲明來確保明確性,並刪除偏離主題的聲明。 7月23日至8月1日:志願者對提出的聲明進行投票。 8月2日至4日:選舉委員會選出排名前15名的聲明。 8月5日至12日:候選人就這些聲明表達其立場。 8月15日:選舉指南針開放提供投票者使用,以協助他們做出投票決定。 在八月初,選舉委員會將選出排名前15名的聲明。選舉委員會將負責監督此流程,並由運動策略與治理團隊支援。運動策略與治理團隊將檢查問題是否清晰、重複,是否有錯別字等。 運動策略與治理團隊[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年7月8日 (五) 17:02 (UTC) ''此訊息代表理事會遴選工作小組和選舉委員會發送'' == 关于跨维基导入者(transwiki)的建议 == 中文系列的小维基项目可以将中文维基百科等站点的页面跨维基导入到Transwiki空间。似乎是历史遗留的原因,跨维基导入者这一用户组在一些历史比较悠久的项目上只能由监管员授予,而某些较新的项目就允许管理员授予;因此在本站提议允许管理员授予跨维基导入者这一权限,以减少不便。受影响的项目包括维基词典、维基教科书(本站)、维基语录、维基文库。 [[User_talk:Stang|'''<span style="font-family:Cursive; color:#F50" lang="en">Stang</span>''']] 2022年7月16日 (六) 14:37 (UTC) : {{支持}}。—— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|留言]]''')</sub> 2022年8月14日 (日) 12:42 (UTC) == 公布進入社群投票階段的六名理事會候選人 == 各位好, '''自治體代表已經完成投票。'''自治體代表透過閱讀候選人聲明、候選人對提問的回答以及考慮分析委員會的評級來了解候選人。被選出進行下階段投票的2022年理事會候選人為: * Tobechukwu Precious Friday ([[m:User:Tochiprecious|Tochiprecious]]) * Farah Jack Mustaklem ([[m:User:Fjmustak|Fjmustak]]) * Shani Evenstein Sigalov ([[m:User:Esh77|Esh77]]) * Kunal Mehta ([[User:Legoktm|Legoktm]]) * Michał Buczyński ([[m:User:Aegis Maelstrom|Aegis Maelstrom]]) * Mike Peel ([[m:User:Mike Peel|Mike Peel]]) 您可以閱讀更多有關這次理事會選舉的[[m:Special:MyLanguage/Wikimedia Foundation elections/2022/Results|結果]]與[[m:Special:MyLanguage/Wikimedia Foundation elections/2022/Stats|統計數據]]。 再次感謝自治體代表以及分析委員會成員參與此流程,並協助增強理事會的能力與多元性。 '''接下來則為社群投票期。'''[[m:Special:MyLanguage/Wikimedia Foundation elections/2022#Timeline|相關時間表在此]]。準備社群投票期的參與,社群成員可以透過下列方式: * [[m:Special:MyLanguage/Wikimedia Foundation elections/2022/Candidates|閱讀候選人聲明]]以及[[m:Special:MyLanguage/Wikimedia_Foundation_elections/2022/Affiliate_Organization_Participation/Candidate_Questions|候選人對自治體代表提問的回答]]。 * <span lang="en" dir="ltr" class="mw-content-ltr">[[m:Special:MyLanguage/Wikimedia_Foundation_elections/2022/Community_Voting/Questions_for_Candidates|提出並選擇六個問題供候選人在影片問答中回答]].</span> * 查看[[m:Special:MyLanguage/Wikimedia Foundation elections/2022/Candidates|分析委員會對各候選人聲明的評級]]。 * [[m:Special:MyLanguage/Wikimedia_Foundation_elections/2022/Community_Voting/Election_Compass/Statements|為選舉指南針提議聲明]](提醒大家今天是最後一天),投票人能用此工具找到最符合他們原則的候選人。 * 鼓勵您社群其他成員參與投票。 祝好, 運動策略與治理團隊[[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年7月20日 (三) 10:57 (UTC) ''此訊息代表理事會遴選工作小組和選舉委員會發送'' == 投票選出用於選舉指南針的聲明 == <section begin="announcement-content" /> :''[[m:Special:MyLanguage/Wikimedia Foundation elections/2022/Announcement/Vote for Election Compass Statements| 您可以在元維基上找到這則訊息其他語言的翻譯。]]'' :''<div class="plainlinks">[[m:Special:MyLanguage/Wikimedia Foundation elections/2022/Announcement/Vote for Election Compass Statements|{{int:interlanguage-link-mul}}]] • [https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-{{urlencode:Wikimedia Foundation elections/2022/Announcement/Vote for Election Compass Statements}}&language=&action=page&filter= {{int:please-translate}}]</div>'' 大家好, 邀請您參與[[m:Special:MyLanguage/Wikimedia Foundation elections/2022|2022年理事會選舉]][[m:Special:MyLanguage/Wikimedia_Foundation_elections/2022/Community_Voting/Election_Compass/Statements|使用於選舉指南針聲明的投票]]。您可以在元維基上投票給您想在選舉指南針裡看到的聲明。 選舉指南針是幫助投票人選擇最符合他們信念與觀點的候選人的工具。社群成員將提出供候選人使用李克特量表(同意/中立/不同意)回答的聲明。候選人對聲明的回答將被加載到選舉指南針工具中。投票人將通過輸入他們對聲明的答案(同意/中立/不同意)來使用該工具。結果將顯示最符合投票者信念和觀點的候選人們。 以下是關於選舉指南針的時間表: *<s>7月8至20日:志願者提議能用於選舉指南針的聲明。</s> *<s>7月21至22日:選舉委員會審閱這些聲明來確保明確性,並刪除偏離主題的聲明。</s> *7月23日至8月1日:志願者對提出的聲明進行投票。 *8月2日至4日:選舉委員會選出排名前15名的聲明。 *8月5日至12日:候選人就這些聲明表達其立場。 *8月15日:選舉指南針開放提供投票者使用,以協助他們做出投票決定。 選舉委員會將在8月初選出前15名的聲明 祝好, 運動策略與治理團隊敬上 ''此訊息代表理事會遴選工作小組和選舉委員會發送'' <section end="announcement-content" /> [[User:VChang (WMF)|VChang (WMF)]] 2022年7月26日 (二) 17:38 (UTC) <!-- 信息由 User:VChang (WMF)@metawiki 发送,使用的列表为 https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery/zh&oldid=22008825 --> == 運動策略與治理通訊第七期 == <section begin="msg-newsletter"/> <div style = "line-height: 1.2"> <span style="font-size:200%;">'''運動策略與治理通訊'''</span><br> <span style="font-size:120%; color:#404040;">'''第七期,2022年七月至九月'''</span><span style="font-size:120%; float:right;">[[m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7|'''閱讀完整的通訊報''']]</span> ---- 歡迎閱讀第七期《運動策略與治理通訊報》!此通訊報發布有關維基媒體[[:m:Special:MyLanguage/Movement Strategy/Initiatives|運動策略建議]]執行的新聞與活動、與運動治理有關的主題,以及由基金會運動策略與治理團隊支援的不同項目與活動的消息。 《運動策略與治理通訊報》每季度發布一次,團隊也提供更頻繁的[[:m:Special:MyLanguage/Movement Strategy/Updates|運動策略每週更新]]。如果您想要定期收到通訊報,請[[m:Special:MyLanguage/Global message delivery/Targets/MSG Newsletter Subscription|在此]]訂閱。 </div><div style="margin-top:3px; padding:10px 10px 10px 20px; background:#fffff; border:2px solid #808080; border-radius:4px; font-size:100%;"> * '''運動的永續性''': 維基媒體基金會年度永續報告已經發佈。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A1|繼續閱讀]]) * '''改善使用者體驗''': 維基媒體項目桌面版界面的最新改進。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A2|繼續閱讀]]) * '''安全性和包容性''': 通用行為準則執行規範修訂流程的更新。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A3|繼續閱讀]]) * '''決策過程的公正性''': 中樞試點對話的報告、運動憲章起草委員會的最新進展以及未來參與維基媒體運動的新白皮書。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A4|繼續閱讀]]) * '''利益關係人之間的協調''': 為致力於內容合作的自治體和志願者社群推出服務台。 ([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A5|繼續閱讀]]) * '''領導力開發''': 維基媒體運動組織者在巴西和維德角的領導力項目最新消息。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A6|繼續閱讀]]) * '''管理內部知識''': 推出一個針對技術文檔和社群資源的新門戶。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A7|繼續閱讀]]) * '''在自由知識中創新''': 用於科學實驗的高品質視聽資源和記錄口述轉錄的新工具組。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A8|繼續閱讀]]) * '''評估、疊代與調適''': 公平樣貌(Equity Landscape)項目試點的結果。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A9|繼續閱讀]]) * '''其他消息及更新''': 一個用來討論運動策略執行的新論壇、即將舉行的維基媒體基金會理事會選舉、一個討論運動策略的新播客(podcast),以及基金會運動策略與治理團隊的人事變動。([[:m:Special:MyLanguage/Movement Strategy and Governance/Newsletter/7#A10|繼續閱讀]]) </div><section end="msg-newsletter"/> 運動策略與治理團隊 [[User:VChang (WMF)|VChang (WMF)]] 2022年7月28日 (四) 15:38 (UTC) <!-- 信息由 User:VChang (WMF)@metawiki 发送,使用的列表为 https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery/zh&oldid=22008825 --> ==民國臺灣國立編譯舘曾主編的課本版權== 雖然台灣曾有很多私有出版者利用那些課本印行自修、參考書、講義,但此二篇若可信[https://topic.tipo.gov.tw/copyright-tw/cp-407-850626-379d6-301.html][http://blog.udn.com/2010hsiao/12343277],就是不能任意利用那些課本在本站建立頁面。--[[User:Jusjih|Jusjih]] ([[User talk:Jusjih|留言]]) 2022年8月15日 (一) 01:30 (UTC) == 2022年維基媒體基金會理事會選舉延期 == 今天要告知大家關於理事會選舉時間的最新消息。 您也許已經注意到,我們今年將提供[[m:Special:MyLanguage/Wikimedia_Foundation_elections/2022/Community_Voting/Election_Compass|選舉指南針]]協助投票者識別與他們在關鍵議題上有一致想法的候選人。有幾位候選人提出延長回答其立場的時間,而選舉委員會也認為這個要求與公平公正選舉程序的目標一致。 為了確保較長聲明的翻譯能即時完成,選舉委員會和理事會遴選小組決定延後一星期開始選舉的時間。 儘管並不是每個人都將使用選舉指南針來協助其做決定,選舉委員會認為在必要的翻譯完成後再開始投票會是比較適當的。這樣一來不同語言的社群成員也可以考慮是否使用此工具協助他們做這個重要的決定。 投票將在8月23日00時00分UTC開始,9月6日23時59分UTC結束。 Matantya代表選舉委員會敬上 -- [[User:VChang (WMF)|VChang (WMF)]] ([[User talk:VChang (WMF)|留言]]) 2022年8月16日 (二) 08:53 (UTC) hjrq6m1ni5tqy8r8p2c0tt5budoymcg C Sharp/The .NET Framework/Marshalling 0 25356 168489 133945 2022-08-16T00:51:41Z Paho.mqtt 60409 wikitext text/x-wiki .NET Framework当前支持调用非受管的函数,使用非受管的数据,该过程叫做''marshalling''。这常用于调用Windows API函数或数据结构,也可用于定制的库。 关键字ref用于传送地址: [DllImport("DllFilePath")] extern static int FunctionName(ref byte param1[1], ref byte param2) DLL需传出char *类型时,应该用C#的StringBuilder类型。 ==例1: GetSystemTimes == 一个简单例子是C#调用Windows API函数GetSystemTimes。声明为: <syntaxhighlight lang="c"> BOOL WINAPI GetSystemTimes( __out_opt LPFILETIME lpIdleTime, __out_opt LPFILETIME lpKernelTime, __out_opt LPFILETIME lpUserTime ); </syntaxhighlight> LPFILETIME是指向FILETIME结构的指针,额可以简化为64比特的整数。C#通过long类型支持64比特整数。因此可以声明这个函数为: <syntaxhighlight lang=CSharp> using System; using System.Runtime.InteropServices; public class Program { [DllImport("kernel32.dll")] static extern bool GetSystemTimes(out long idleTime, out long kernelTime, out long userTime); public static void Main() { long idleTime, kernelTime, userTime; GetSystemTimes(out idleTime, out kernelTime, out userTime); Console.WriteLine("Your CPU(s) have been idle for: " + (new TimeSpan(idleTime)).ToString()); Console.ReadKey(); } } </syntaxhighlight> 注意在参数中使用关键字out与ref,自动使它成为指向未受管数据的指针。 ==例2:GetProcessIoCounters == 传递指向结构的指针,可以使用关键字out或ref: <syntaxhighlight lang=CSharp> using System; using System.Runtime.InteropServices; public class Program { struct IO_COUNTERS { public ulong ReadOperationCount; public ulong WriteOperationCount; public ulong OtherOperationCount; public ulong ReadTransferCount; public ulong WriteTransferCount; public ulong OtherTransferCount; } [DllImport("kernel32.dll")] static extern bool GetProcessIoCounters(IntPtr ProcessHandle, out IO_COUNTERS IoCounters); public static void Main() { IO_COUNTERS counters; GetProcessIoCounters(System.Diagnostics.Process.GetCurrentProcess().Handle, out counters); Console.WriteLine("This process has read " + counters.ReadTransferCount.ToString("N0") + " bytes of data."); Console.ReadKey(); } } </syntaxhighlight> ==参数类型的映射关系== {| class="wikitable" |- ! 性质 !! C#参数 !! C语言参数 !! 注释 |- | 输入参数 || string || char* || |- | 输出参数 || StringBuilder || char* || 先用StringBuilder buf = new StringBuilder(_size);准备空间 |- | 输出参数 || ref int || int* || 以int指针为例 |- | 传递结构体指针 || ref stuctName || stuctName* || 实参调用时前缀ref |- | || IntPtr || 指针类型 || |- | || byte || unsigned char || |- | || System.Int16 || short || |- | || System.UInt16 || unsigned short || |- | || System.Char || char || |- | || System.String || char* || |- | || System.String || wchart_t* || |- | || [MarshalAs(UnmanagedType.LPTStr)] string || LPTSTR || |- | || out 变量名 || 结构体 **变量名 || C#中提前申明一个结构体实例化后的变量名 |- | || ref 结构体 变量名 || 结构体 &变量名 || |- | || System.SByte || char || |- | || delegate static extern int FunCallBack(string str); || 回调函数 || |- | || public delegate double fun_type1(double); || typedef double (*fun_type1)(double); || |} ==结构体的映射关系== 例如: C的结构体: <syntaxhighlight lang="c"> typedef struct { unsigned char DeviceIdentify[30];//Greenpow Usb IC card reader unsigned short res; }FindDeviceAck_Struct; </syntaxhighlight> 对应于: <syntaxhighlight lang="csharp"> [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential, CharSet = System.Runtime.InteropServices.CharSet.Ansi,Pack =1)] public struct FindDeviceAck_Struct { /// unsigned char[30] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 30)] public byte[] DeviceIdentify; /// unsigned short public ushort res; } //另一个例子: [StructLayout(LayoutKind.Explicit)] public struct Rect { [FieldOffset(0)] public int left; [FieldOffset(4)] public int top; [FieldOffset(8)] public int right; [FieldOffset(12)] public int bottom; } </syntaxhighlight> ==C#的结构体与C语言结构体的互转== 例如在TCP通信时,需要把C#的结构体变为Byte数组传给TCP模块。 <syntaxhighlight lang="csharp"> //定义结构体: using System.Runtime.InteropServices;//命名空间 [StructLayoutAttribute(LayoutKind.Sequential,CharSet=CharSet.Ansi,Pack=1)] struct TestStruct { public int c;//字符串,SizeConst为字符串的最大长度 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] public string str; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)] public int[] test;//int数组,SizeConst表示数组的个数,在转换成byte数组前必须先初始化数组,再使用,初始化/的数组长度必须和SizeConst一致,例test = new int[6]; } //结构体转byte数组: public static byte[] StructToBytes(object structObj) { int size = Marshal.SizeOf(structObj);//得到结构体的大小 byte[] bytes = new byte[size];//创建byte数组 IntPtr structPtr = Marshal.AllocHGlobal(size);//分配结构体大小的内存空间 Marshal.StructureToPtr(structObj, structPtr, false);//将结构体拷到分配好的内存空间 Marshal.Copy(structPtr, bytes, 0, size);//从内存空间拷到byte数组 Marshal.FreeHGlobal(structPtr);//释放内存空间 return bytes;//返回byte数组 } //byte数组转结构体: public static object BytesToStuct(byte[] bytes,Type type) { int size = Marshal.SizeOf(type);//得到结构体的大小 if ( size > bytes.Length )//byte数组长度小于结构体的大小 { return null;//返回空 } IntPtr structPtr = Marshal.AllocHGlobal(size);//分配结构体大小的内存空间 Marshal.Copy(bytes,0,structPtr,size);//将byte数组拷到分配好的内存空间 object obj = Marshal.PtrToStructure(structPtr, type);//将内存空间转换为目标结构体 Marshal.FreeHGlobal(structPtr);//释放内存空间 return obj;//返回结构体 } </syntaxhighlight> 8up2u2msch40nhs865q6jf09nmwz3ku 紐約植物圖鑑/孀草屬 0 26809 168486 119227 2022-08-15T16:43:05Z AnRo0002 56960 ([[c:GR|GR]]) [[c:COM:FR|File renamed]]: [[File:20130528Tauben-Skabiose Reilingen2.jpg]] → [[File:20130528Knautia arvensis2.jpg]] wikitext text/x-wiki [[w:孀草屬|孀草屬]](''Knautia''),紐約州有1種。 ==田野孀草== 〔學名〕''Knautia arvensis'' 〔中名〕田野孀草 〔英名〕Field scabiosa, Field-scabious, Bluebuttons, 〔產地〕外來種 {| border="1" cellpadding="5" cellspacing="0" |- | [[File:20130528Knautia arvensis2.jpg|300px|center]] | [[File:Knautia_arvensis_young.jpg|300px|center]] |- | [[File:Knautia_arvensis_W.jpg|300px|center]] | [[File:Knautia_arvensis_(4997238048).jpg|300px|center]] |} {{BookCat}} n2we3qdx1ftqtl4lcjf1ljlv1fas8j2 紐約植物圖鑑/山蘿蔔屬 0 26826 168487 119316 2022-08-15T16:50:17Z AnRo0002 56960 ([[c:GR|GR]]) [[c:COM:FR|File renamed]]: [[File:20130528Tauben-Skabiose Reilingen8.jpg]] → [[File:20130528Knautia arvensis8.jpg]] wikitext text/x-wiki [[w:山蘿蔔屬|山蘿蔔屬]](''Scabiosa''),紐約州有1種。 ==針墊山蘿蔔== 〔學名〕''Scabiosa columbaria'' 〔中名〕針墊山蘿蔔 〔英名〕Dove pincushions, Pincushion flower, Yellow scabious, 〔產地〕外來種 {| border="1" cellpadding="5" cellspacing="0" |- | [[File:20140723Scabiosa columbaria1.jpg|300px|center]] | [[File:20130528Knautia arvensis8.jpg|300px|center]] |- | rowspan="2" valign="top" | [[File:Scabiosa_columbaria_Sturm3.jpg|300px|center]] | [[File:Frutos_-_Scabiosa_columbaria_(15319937149).jpg|300px|center]] |- | [[File:20130528Tauben-Skabiose_Reilingen9.jpg|300px|center]] |} {{BookCat}} 75g71dx54p9dn582fertcibq48nzlkg 168488 168487 2022-08-15T16:51:25Z AnRo0002 56960 ([[c:GR|GR]]) [[c:COM:FR|File renamed]]: [[File:20130528Tauben-Skabiose Reilingen9.jpg]] → [[File:20130528Knautia arvensis9.jpg]] wikitext text/x-wiki [[w:山蘿蔔屬|山蘿蔔屬]](''Scabiosa''),紐約州有1種。 ==針墊山蘿蔔== 〔學名〕''Scabiosa columbaria'' 〔中名〕針墊山蘿蔔 〔英名〕Dove pincushions, Pincushion flower, Yellow scabious, 〔產地〕外來種 {| border="1" cellpadding="5" cellspacing="0" |- | [[File:20140723Scabiosa columbaria1.jpg|300px|center]] | [[File:20130528Knautia arvensis8.jpg|300px|center]] |- | rowspan="2" valign="top" | [[File:Scabiosa_columbaria_Sturm3.jpg|300px|center]] | [[File:Frutos_-_Scabiosa_columbaria_(15319937149).jpg|300px|center]] |- | [[File:20130528Knautia arvensis9.jpg|300px|center]] |} {{BookCat}} rvmlg0lani9gkjsatty6m9m2icmpq0m 英语/英语单词前缀 0 31221 168491 141125 2022-08-16T05:34:29Z 114.45.43.41 /* 前缀 */ wikitext text/x-wiki == 前缀 == 所谓前缀,顾名思义是一个词素。它被用于接到一个词的前面,使这个词的意义发生变化。科技英语里的前缀,大多数是来自希腊语及拉丁语的介词及副词,以及少数形容词。 {| class="wikitable" |+来自拉丁语的前缀 !前缀 !意义 !造词举例 |- |Pre- |Before在前 |Premedical医学预科 |- |Post- |After在后 |Postgraduate研究生 |- |Super- |Above在上 |Superconductivity超导性 |- |Infra- |Below在下 |Infrared红外 |- |Inter- |Between在之间 |Interaction相互作用 |} {| class="wikitable" |+来自希腊语的前缀 !前缀 !意义 !造词举例 |- |Hyper- |Above在上 |Hypertension高血压 |- |Hypo- |Below在下 |Hypodermic皮下 |- |Dia- |Through穿过 |Diameter直径 |- |Anti- |Against反 |Antibiotic抗生素 |- |Cata- |Down下来 |Catalysis催化作用 |} 一个词的前面,可以同时接上不止一个前缀。一般的情总值,都只是一个前缀,但两个,三个前缀的也不少见。下面举几个例子: 例1:equidistant等距离 (拉)equi + dis +stare (equal)(apart)(to stand) 相等 离开 站 例2:disproportion不成比例 (拉)dis + pro + portio (away)(in relation to)(portion) 离开 与…的关系 部分 例3:misalignent未校准 (拉)mis +ad +linea (badly)(to)(line) 不好 对 线 例4:nonhomogeneous非均一 (拉)non+(希) (not) (same) (kind) 非 同 类 有的前缀不止一个含义,例如:前缀(拉)in-,有两个含义:入,不。 例1:incomplete不完备 (拉)in+ completes (in)(complete) 不 完备 这里in-的含义为:不 例2:include包括 (拉)in+ claudere (in)(close, shut) 入 关闭 这里in-的含义为:入 有的前缀只是起加强词义的作用,并没有增添什么新义。 例1:illuminate发光 (拉)il+ luminare→luminatus (in)(luminate) (p.p.) 发光 这里il-只是起强词义的作用,没有增添什么新义。 例2:irradiation发射 (拉)ir+ radius→irradiare→irradiate (ir) 射线(n)发射(v.) (p.p.) 在这里,radius是名词,radiare是动词,ir-也只是起加强词义的作用。 有些拉丁,希腊语前缀,在与后面的词结合时,往往要看后面那个词的头一个字母如何,并在写法上有所变化。举一个典型的便子:我们常见的拉丁语前缀con-(together, 在一起)这个词原来是拉丁介词sum9with, together, 在一起),但在用作前缀时,则有下列几种变化: (1)凡后面的词是元音开头时,用co-,例如 cooperate= co + operatus 合作(together)(work) 在一起 工作 coordinate= co + ordinates 协调,配合,(together)(order) 坐标 在一起 次序 coincide= co + in + cadere 重合,符合(together)(upon)(to fall) 在一起 在 落 (2)凡后面的词是以c, d, g, j, n, q, s, t, v开头时,用con-,例如: converge=con + vergere 收敛 (together)(incline) 一起 倾向于 conduct= con + ductus 传热,导电,(together)(to lead) 传导,引导 在一起 引导 connect= con + nectere 连接 (together)(to bind) 在一起 捆扎 (3)凡后面的词根是以p, m, b, f开头的,用com-,例如: combine=con + binus 结合 (together)(two fold) 在一起 两个 compound=com + ponere 化合物(together)(to put) 复合化 在一起 放 complex= com + plectere 复杂 (together)(to plait)(to twist) 在一起 拧,编,织 (4)凡后面的词根是以1开头的,用col-,例如: collect= col + legere 收集 (together)(to gather) 在一起 采集 collide= col +laedere 碰撞 (together)(to strike) 在一起 击 (5)凡后面的词根是以r开头的,用con-,例如: correspond= cor+ re+ spondere 相当,相应(together)(back)(promise) 对应,相符 在一起 回 答应 corrode= cor + rodere 腐蚀,侵蚀(together)(to gnaw) 在一起 咬啮 === 表示否定意义的前缀 === 1)纯否定前缀a-, an-, asymmetry(不对称)anhydrous(无水的)dis- dishonest, dislikein-, ig-,   il, im, ir, incapable, inability, ignoble, impossible, immoral, illegal, irregularne-, n-, none, neither, nevernon-, noesenseneg-, neglectun- unable, unemployment 2)表示错误的意义male-, mal-, malfunction, maladjustment(失调)mis-, mistake,   misleadpseudo-, pseudonym(假名), pseudoscience 3)表示反动作的意思de-, defend, demodulation(解调)dis-, disarm, disconnectun-, unload, uncover 4)表示相反,相互对立意思anti-, ant- antiknock( 防震), antiforeign, (排外的)contra-, contre-, contro-, contradiction, controflow (逆流) counter-, counterreaction, counterbalanceob-, oc-, of-, op-, object, oppose, occupy  with-, withdraw, withstand === 表示空间位置,方向关系的前缀 === 1)a- 表示“在……之上”,“向……”aboard, aside, 2)by- 表示“附近,邻近,边侧”bypath, bypass(弯路) 3)circum-, circu-, 表示“周围,环绕,回转”circumstance, circuit 4)de-, 表示“在下,向下”descend, degrade 5)en-, 表示“在内,进入”encage, enbed(上床) 6)ex-, ec-, es-, 表示“外部,外”exit, eclipse, expand, export 7)extra-, 表示“额外”extraction (提取) 8)fore- 表示“在前面”forehead, foreground 9)in-, il-, im-, ir-, 表示“向内,在内,背于”inland, invade, inside, import 10)inter-, intel-, 表示“在……间,相互”international, interaction, internet 11)intro-, 表示“向内,在内,内侧”introduce, introduce 12)medi-, med-, mid-, 表示“中,中间”Mediterranean, midposition 13)out-, 表示“在上面,在外部,在外”outline, outside, outward 14)over-, 表示“在上面,在外部,向上”overlook, overhead, overboard 15)post-, 表示"向后,在后边,次”postscript(附言), 16)pre-, 表示"在前”在前面”prefix, preface, preposition 17)pro-, 表示“在前,向前”progress, proceed,18)sub-, suc-, suf-, sug-, sum-, sup-, sur-, sus-, 表    示“在下面,下”subway, submarine, suffix, suppress, supplement 19)super-, sur-, 表示“在…..之上”superficial, surface, superstructure 20)trans-, 表示“移上,转上,在那一边”translate, transform, transoceanic 21)under-, 表示“在…..下面,下的”underline, underground, underwater 22)up-, 表示“向上,向上面,在上”upward, uphold, uphill(上坡) === 表示时间,序列关系的前缀 === 1)ante-, anti-, 表示“先前,早于,预先”antecedent, anticipate, 2)ex-, 表示“先,故,旧”expresident, ex-husband 3)fore-, 表示“在前面,先前,前面”foreward, forecast, foretell(预言) 4)mid-, medi-, 表示“中,中间”midnight, midsummer 5)post-"表示“在后,后”postwar, 6)pre-, pri-, 表示“在前,事先,预先”preheat, prewar, prehistory 7)pro-, 表示“在前,先,前”prologue(序幕),prophet(预言家) 8)re-, 表示“再一次,重新”retell, rewrite === 表示比较程度差别关系的前缀 === 1)by-, 表示“副,次要的”byproduct, bywork(副业) 2)extra-,表示“超越,额外”extraordinary, 3)hyper- 表示“超过,极度”hypersonic(超声波), hypertension(高血压) 4)out-,表示“超过,过分”outdo(超过), outbid(出价过高的人) 5)over-,表示“超过,过度,太”overeat, overdress, oversleep 6) sub-, suc-, sur-, 表示“低,次,副,亚”subeditor, subordinate, subtropical(亚热带) 7)super-, sur- 表示“超过”supernature, superpower, surplus, surpass 8)under-,表示“低劣,低下”undersize, undergrown, underproduction(生产不足) 9)vice- 表示“副,次”vicepresident, vicechairman === 表示共同,相等意思的前缀 === 1)com-, cop-, con-, cor-, co- 表示“共同,一起”。connect, combine, collect, combat, coexist, co-operate 2)syn-, syl-,sym-,表示“同,共,和,类”symmetry, sympathy, synthesis(合成) === 表示整个完全意思的前缀 === 1)al- 表示“完整,完全”alone, almost, 2) over-表示“完全,全”overall, overflow(充满) 3) pan-表示“全,总,万”panentheism(泛神论),panorama === 表示分离,离开意思的前缀 === 1)a- ab-, abs-,表示“分离,离开” away, apart, abstract, abstain 2)de- 表示“离去,处去”depart, decolour, 3)dis-, di-, dif-, 表示“分离,离开” divorce, disarm(缴械) 4)ex-, e-, 表示“离开,分离”expel, exclude, expatriate(驱出国外) 5)for- 表示“离开,脱离”forget, forgive 6)表示“离开”release, resolve 7)表示“分离,隔离”separate, seduce, select === 表示通过,遍及意思的前缀 === 1)dia-,表示“通过,横过”diameter, diagram, 2)per-, pel-, 表示“通,总,遍”perfect, perform, pervade(浸透) 3)trans-, 表示“横过,贯通”transparent, transmit, transport === 表示加强意思的前缀 === a-, arouse, ashamedad-, adjoin, adhere( 粘着) === 表示变换词类作用的前缀 === be-, befriend,en-, enslave, enable, enrich; ad-, ac-, af-, ag-, an-, ap-, ar-, as-, at-, adapt, accord, affix, aggression, arrive, assist, attend, attract, arrange, assign(委派) === 表示数量关系的前缀 === 1) 表示“单一”,“一”mon-, mon-, monotone(单调),monopoly, monarch; uni-, un-, uniform,     unicellular(单细胞) 2) 表示“二,两,双”ambi-, ambiguous, amphibian(两栖类)bi-, bin- bicycle, di-, diode(二级管),    twi-, twilight 3) 表示“十”deca, deco-, dec- deci-, decade, decimals 4) 表示"百,百分子一"hecto-, hect-, hectometer, centi-, centimeter 5) 表示"千,千分子一” kilo-, kilometer 6) 表示"万,万分子一”myria-, myri-, myriametre; mega-, meg-, megabyte; micro-, microvolt    (微伏特) 7) 表示"许多,复,多数”multi-, mult-, multipmetre (万用表)poly-, polysyllable, 8) 表示“半,一半”hemi-, hemisphere; demi-, demiofficial; semi-, semiconductor,      semitransparent; pene-, pen-, peninsula === 表示特殊意义的前缀 === 1)arch-, 表示“首位,第一的,主要的”architect, archbishop 2)auto-, 表示“自己,独立,自动”automobile, autobiography 3)bene-, 表示“善,福”benefit 4)eu-, 表示“优,美好”eugenics(优生学),euphemism 5)male-, mal- 表示“恶,不良”maltreatment, malodor 6)macro-, 表示“大,宏大”macroscopic(宏观) 7)magni-, 表示“大”magnificent 8)micro-, 表示“微”microscope === 表示术语的前缀 === 1)aud-, 表示“听,声”audience, 2)bio-, 表示“生命,生物”biography(传记) 3)ge-, 表示“地球,大地”geography 4)phon-, 表示“声,音调”phonograph 5)tele-, 表示“远离”television, telephone == 前缀汇总 == 1. a-(分词变化=ge) afford给予 2. a-=away from远离 avert转移 3. a-=from从,自,of…的,out of出自… ago…以前 4. a-=not无 apathy冷淡 5. a-=one一个 aught一件事物 6. a-=on在…上,in在…内,to到,向,给…,into进入;构成副词或形容词等abed在床上 7. acro-=highest最高 acrobat杂技演员 8. ad-=to到 ascend登高 9. after-=following aftercare调养 10. all-=quite构成形容词和副词almighty全能的 11. allo-=another另一 allochroic变色的 12. am-=both两 ambient周围的 13. amphi-=both两 amphibia两栖类 14. an-=against由动词构成动词 answer回答 15. ana-=again再 anabaptism再洗礼论 16. ant-=against反对 antacid解酸药 17. ante-=before in time or place在前 antecedent先行的 18. apo-=off离开 aphasia失语症 19. apsis=the hoop of a wheel铁环 apsis教堂半圆形的后殿 20. apteros=without wing无翅的 apterous无翅的 21. Araps=Arab Arab阿拉伯人 22. arch-=archi为首的 Archaean太古代的 23. arist-=best最优越aristocracy贵族统治 24. arithmos=a number数 arithmetic算术 25. aster-=a star星 asterisk小星 26. astro-=astron星 astronomy星学 27. at-=at atone一致 28. aut-=self自身 autarchy绝对主权 29. a-加强语气,即增添语势或予以强调 away离开 30. be-(古英语by的字形)构成介词和副词的一部分 before以前 31. be-(古英语by的字形)加强动词的语气或意义 bedaub涂 32. be-(古英语by的字形)使不及物动词变为及物动词 bespeak请求 33. be-(古英语by的字形)由名词或形容词构成动词 befriend亲近 34. be-(古英语by的字形)与名词结合 behalf利益 35. bene-=well好(另见词根bene) benefactor捐助人 36. bi-=twice二 bicycle二轮脚踏车 37. by-=by旁 by-lane小巷 38. cat-=down下cat-acoustics反响论 39. circum-=around周围 circumference圆周 40. cis-=on this side在这一边 cisalpine在阿尔卑斯山脉这一边的 41. contra-=against反对 contradict反驳 42. cum-(=希腊语的syn-,法语的com-)=with同 coequal相互平等的 43. de-=away from分开 depart离开 44. de-=down向下 degrade使降级 45. de-=negative否定或剥夺等意义decamp逃走 46. dec-=ten十 decadal十的 47. demi-=half半 demigod半神半人 48. de-增强动词的语势 depict描绘 49. dia-=through贯通 diabetes糖尿病 50. dis-=twice二 dissyllabic双音节的 51. dis-表示分离 dismiss不考虑 52. dis-表示否定 disagree不合 53. dis-表示相反 disband解散 54. dis-加强动词语势 discern看出 55. duo-=two二 dual双的 56. dys-=ill不良 dysentery痢疾 57. e-(古英语ge) enough足够 58. e-=out出 eject驱逐 59. ecto-=outside外部 ectoderm外皮 60. en-(法语化的形式,在b、m、p之前用em-)=in在内部 endear使受喜爱 61. en-=in在内 encage禁闭 62. en-=in在内部 emblem象征 63. endo-(在元音前作end-)=within内 endoblast内胚层 64. ep-=at在…之上 eparch主教 65. equl-=equal相等 equal相等的 66. eu-=well良好 eubacteria真细菌类 67. ex-=from离 educate教育 68. ex-=out外 eschatology末世学 69. extra-=beyond超过 extramural市外的 70. for(古英语for=Lat. per)=against反对;表示“排斥”或“克制”等 forgo放弃 71. for(古英语for=Lat. per)=thoroughly彻底地加强语意的前缀forbid禁止 72. fore-=before构成名词和动词forecast预测 73. forth-向前 forward向前的 74. gain-(古英语gegn)=again gainsay否认 75. ge-=earth地球geoanticline地背斜 76. gyr-=ring环 gyral旋转的 77. heli-=sun太阳 heliac太阳的 78. hemato-=blood血 hemal血的 79. hemi-=half半 hemicrania偏头痛 80. hendeca=eleven十一 hendecagon十一边形 81. hepat-=the liver肝脏 hepatic肝的 82. hept-=seven七 heptad七价物 83. heter-=another其他 heteroauxin吲哚乙酸 84. hex-=six六 hexachord六音音阶 85. hier-=sacred上帝的 hierarch大主教 86. hist-=web组织histochemistry组织化学 87. homo-=same同一 homocentric同中心的 88. hydr-=water水 hydra九头蛇 89. hyet-=rain雨 hyetal雨的 90. Hygeia=healthy健康的 hygeian健康的 91. hygro-=wet湿气 hygrograph湿度计 92. hyl-=matter物质 hylic物质的 93. hymen-=membrane膜 hymen处女膜 94. hyp-=under低下hypaesthesia神经衰弱 95. hyper-=over过 hyperaemia充血 96. hypn-=sleep睡眠hypnogenesis催眠 97. hypso-=height高度 hypsometry测高术 98. hyster-=womb子宫 hysteresis滞后 99. i-(分词变化=ge) handiwork手工 100. in-=in进入(在现代英语中出现两种形式;由动词构成名词和动词等) income收入 101. in-=in在内 include包括 102. in-=not不 incorrect不正确的 103. indi-=within在内 indigent缺乏的 104. inter-=between在…之中 105. is-=equal相等的 isobar等压线 106. Juxta-=near接近 juxtapose使并置 107. lith-=stone石 lithograph平板 108. mal-=badly坏 malcontent不满的 109. meg-=great大 megabuck一百万元 110. mes-=middle中间 mesial中间的 111. met-=with带有 meta-basis主题的转移 112. mis-(古英语mis)=amiss并与动词to miss有关联 misdeed罪行 113. mis-=less少 misadvised错误的劝告 114. mult-=much许多 multangular多角的 115. n-=not naught无 116. ne-=not不 neutral中立的 117. neo-=new新 neoanthropic新人的 118. nepho-=cloud云 nephology云学 119. nephr-=kidney肾 nephritic肾 120. neur-=nerve神经 neural神经的 121. non-=not不 nonessential非本质的 122. ob-=against反 object反对 123. oct-=eight八 octad八个一组 124. ocul-=eye眼 ocular眼睛的 125. of-=of offal废物 126. on-=on为前置词或副词的on所转成,有时用“a-”表示 onset攻击 127. ophthalm-=eye眼 ophthalmia眼炎 128. optos=seen眼的 optic眼的 129. or-=out ordeal神裁法 130. oste-=bone骨 osteitis骨炎 131. ot-=ear耳 otitis耳炎 132. out-=out附在动词、名词、分词或形容词前,构成动词、名词、形容词,表示“出,向外,在外;远”等意义 outbid出价高于 133. over-=above;above中ove的比较级与动词结合 over-brim满出 134. over-=above;above中ove的比较级与名词结合 over-bridge天桥 135. over-=above;above中ove的比较级与形容词结合 over-busy太忙的 136. pan-=all全 panacea万应药 137. par-=beside旁 parable寓言 138. pen-=almost几乎 penult倒数第二的 139. per-=through通过 perfect完善的 140. peri-=about周围 perianth花被 141. poly-=many多的 polyanthus多花水仙 142. post-=behind后来 postfix后缀 143. pre-=before先 predict预言 144. pro-=before为 proceed进行 145. pro-=before在前 problem问题 146. pros-=towards向 proselyte改宗者 147. prot-=first最初 protagonist主角 148. prote-=朊 proteid蛋白质 149. proter-=former先 proterandrous雄蕊先熟的 150. pseud-=false假的 pseud笔名 151. re-=back反 reaffirm重申 152. retro-=back向后 retroact倒行 153. se=apart分离 secede退出 154. semi-=half半 semibreve全音符 155. sex-=six六 sexagesimal六十的 156. sine-=without无 sinecure闲职 157. sub=under低 subagent副代理人 158. subter-=beneath少于 subterfuge托词 159. super-=over超过super-abound过分 160. supra-(意大利语sopra-)=above超 supra-class超阶级的 161. supre-=above无上 supreme最高的 162. syn-=together共 syllabary音节表 163. tele-=distant远 telecamera电视摄像机 164. tetr-=four四 tetracycline四环素 165. through-=through同词异形 throughout遍及 166. to-=to today今天 167. trans-=across横过 transact处理 168. tri-=three三 triad三人组合 169. tri-=three三 triangle三角 170. trich-=hair毛发 trichoid发状的 171. twi-=two twin孪生 172. ultra-=beyond超过 ultra-left极左分子 173. un=back表示行动的颠倒,倒退,反向;推翻 undo解开 174. un=on until直到…为止 175. un-=one一 unit单位 176. under-=under与动词结合 undergo经历 177. under-=under与名词结合underhand秘密的 178. under-=under与与其它词结合underneath在下面 179. un相当于not untrue假的 180. un增加语势或强调unloose放松 181. up-=up与动词结合 up-bear举起 182. up-=up与名词结合 upland高地 183. up-=up与与其它词结合 upward向上的 184. vice-=acting in place of another副 vice-consul副领事 185. wan-=lacking缺乏 wanton爱玩的 186. wel-=well使动词构成名词welcome欢迎 187. with-=back withdraw收回 njvtu0rjhf87vffu3jpo08d0tie8af9 CSS/选择器 0 32331 168490 2022-08-16T05:23:33Z Paho.mqtt 60409 创建页面,内容为“CSS的'''selector'''可翻译为'''选择器'''或'''选取项''',是出现在样式规则的左大括号之前的部分。如"<code> p { font-weight:bold; } </code>"的p。选取项指出样式规则可用于哪个元素,可根据元素的类别type,如"div";元素的类class;元素的id。选取项只能用于链接或嵌入CSS,不能用于内联CSS。 {| class="wikitable" |+ 选取项概述 ! 选取项的分类 ! 选取项例子 ! 规则例子 !…” wikitext text/x-wiki CSS的'''selector'''可翻译为'''选择器'''或'''选取项''',是出现在样式规则的左大括号之前的部分。如"<code> p { font-weight:bold; } </code>"的p。选取项指出样式规则可用于哪个元素,可根据元素的类别type,如"div";元素的类class;元素的id。选取项只能用于链接或嵌入CSS,不能用于内联CSS。 {| class="wikitable" |+ 选取项概述 ! 选取项的分类 ! 选取项例子 ! 规则例子 ! 注释 |- | 类别选取项 type | div | div { margin:7px; padding:7px; } |- | 类选取项 class | .important | .important { font-weight:bold; color:red; } |- | id选取项 | #onlyThisOne | #onlyThisOne { font-family:courier; } |- | 一般选取项 universal | * | * { color:green; } |- | 拟类别选取项 pseudo-class | a:link | a:link { color:blue; } | 伪类是特殊的类,基于元素的状态,使用:运算符。语法为E:pseudo-class. 常见的有:hover, :link and :visited |- | 拟元素选取项 pseudo-element | p:first-letter | p:first-letter { color:red } |- | 后代选取项 descendant | td span | td span { font-weight:bold; } |- | 群组选取项 grouped | h1, h2, h3 | h1, h2, h3 { text-align:center; } |- |子选取项(Child) | | |- | 比邻选取项 (Adjacent) | | |- | 属性选取项(Attribute) | E[Attribute="value"] | |Attribute支持多种不同的匹配运算符,如 =, !=, ~=, ^= and $= |} ==类别选取项 type== 基于元素的基本类别type匹配元素。 <syntaxhighlight lang = "css"> div{ margin:7px; padding:7px; } </syntaxhighlight> <syntaxhighlight lang = "css"> body{ background-image:url("image.gif"); font-size:.9em; } </syntaxhighlight> ==类选择器Class== <strong>The class selector works with (X)HTML documents. It does not work with general XML documents unless the User Agent (web browser or other document reader) can determine which attribute is the class attribute for elements in the document. In (X)HTML documents <code>class</code> is defined to be the class attribute.</strong> HTML文档的body中的所有元素都可具有<code>class</code>特性。这可用于辨识同一类别的元素。例如: <syntaxhighlight lang = "html"> The <code class="attribute">alt</code> attribute of the <code class="element">img</code> </syntaxhighlight> 可建立一个全局类: <syntaxhighlight lang = "css"> .important { font-weight:bold; color:red; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p class="important">Important Text</p> <p>Ordinary Text</p> <div class="important">Important Footnote</div> </syntaxhighlight> 绘制为: {{CSS:rendered|1=<p style="font-weight:bold; color:red;" title="This text is red.">Important Text</p> <p>Ordinary Text</p> <p style="font-weight:bold; color:red;" title="This text is red.">Important Footnote</div> }} 第二种使用方式是和类别选择器一起使用: <syntaxhighlight lang = "css"> p.right { float:right; clear:both } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p class="right">Righty Righty</p> </syntaxhighlight> 绘制结果: {{CSS:rendered|1=<p style="float:right;">Righty Righty</p> <br style="clear:both"> }} 一个元素可以属于多个类: <syntaxhighlight lang = "html"> <p class="right">This paragraph belongs to the class 'right'.</p> <p class="important">This paragraph belongs to the class 'important'.</p> <p class="right important">This paragraph belongs to both classes.</p> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p style="clear:both;float:right;">This paragraph belongs to the class 'right'.</p> <p style="font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to the class 'important'.</p> <p style="clear:both;float:right;font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to both classes.</p> <br style="clear:both"> }} 类名应该描述类的目的,而不是绘制效果。因为设计者可能改变其绘制的想法。 <syntaxhighlight lang = "css"> .red {color:blue} </syntaxhighlight> 多个类选择器可用于选择具有所有指定类的元素: <syntaxhighlight lang = "css"> p.important.right { border: 2px dashed #666 } </syntaxhighlight> 绘制例子: {{CSS:rendered|1=<p style="clear:both;float:right;">This paragraph belongs to the class 'right'.</p> <p style="font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to the class 'important'.</p> <p style="clear:both;float:right;font-weight:bold;color:red;border: 2px dashed #666" title="This text is red and bordered.">This paragraph belongs to both classes.</p> <br style="clear:both"> }} ==ID== <strong>The ID selector works with (X)HTML documents. It does not work with general XML documents unless the User Agent (web browser or other document reader) can determine which attribute is the ID attribute for elements in the document. In (X)HTML documents <code>id</code> is defined to be the ID attribute.</strong> ID选择器用于选择一个页面中的唯一元素。也可以多个页面有同名的元素,或者与后代选择器并用。 CSS rule: <syntaxhighlight lang = "css"> #onlyThisOne { font-family:courier; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p id="onlyThisOne">Courier</p> </syntaxhighlight> 绘制为: {{CSS:rendered|1=<p style="font-family:courier;">Courier</p>}} ==通用选择器Universal== 适用于页面全部元素: <syntaxhighlight lang = "css"> * { color:green; } </syntaxhighlight> ==拟类选择器Pseudo-Classes== CSS1 和 CSS2.1的拟类选择器以单个冒号<code>:</code>开始,CSS3的拟类选择器以2个冒号<code>::</code>开始。 CSS level 1 定义了3个拟类: ;<code>link</code> : unvisited links ;<code>visited</code> : visited links ;<code>active</code> : active links 可用于anchor (<code>a</code>) 元素. <syntaxhighlight lang = "css"> a:link{ color:blue; } a:visited{ color:purple; } a:active{ color:red; } </syntaxhighlight> CSS level 2.1引入了一批新的拟类选择器: ;<code>first-child</code> : 匹配元素的第一个子元素 ;<code>lang(...)</code> : 匹配元素的语言。 ;<code>hover</code> : 当用户的鼠标悬浮在元素之上 ;<code>active</code> : 任何能够是 'active' ,例如button &#8211; 当元素是active时应用该样式. ;<code>focus</code> : 具有键盘输入焦点的元素可用该样式 例如: <syntaxhighlight lang = "css"> p:first-child { font-size:120% } span:lang(la) { /* render Latin text, e.g. per se, in italics */ font-style:italic } li:hover { /* doesn't work in Internet Explorer */ background-color:blue } input:active { color:red } input:focus { background-color:yellow } </syntaxhighlight> <code>first-child</code>拟类例子在下文的[[#Descendant|descendant]]中给出. 可以同时指定多个拟类: <syntaxhighlight lang = "css"> a:visited:hover { background-color:red } </syntaxhighlight> 需要注意拟类应用的顺序。例如,如需要已访问过的链接为绿色除非用户鼠标悬浮其上时为黄色,则规则必须为如下顺序: <syntaxhighlight lang = "css"> a:visited{ color:green } a:hover{ color:yellow } </syntaxhighlight> 如果上述顺序翻转过来,则已访问的颜色比悬浮的颜色有更高优先级。 ==拟元素== CSS1 和 CSS2.1的拟元素选择器以单个冒号<code>:</code>开始,CSS3的拟元素选择器以2个冒号<code>::</code>开始。 CSS level 1定义了2个逆元素:<code>first-letter</code> 和 <code>first-line</code>,分别选择要绘制元素的第一个字母和第一行。 <syntaxhighlight lang = "css"> p:first-letter { color:red } </syntaxhighlight> 只能用一个拟元素选择器且必须是选择器链上的最后一个。<code>first-line</code>选择器只能用于块级元素、内联块、table标题和table的单元格. CSS2.1增加了2个拟元素,<code>before</code> 和 <code>after</code>. ==简单选择器== 上述选择器(type, class, ID, universal, 拟类和拟元素)都是简单选择器。完整语法从左至右为: * 类别选择器或通用选择器 * 零个或多个类选择器、id选择器、伪类选择器(CSS2.1也允许特性选择器) * 零个或多个拟元素选择器 下属都是简单选择器例子: <syntaxhighlight lang = "css"> p p.important p#navigation a:link p:first-line a:visited#homePage.menu2:first-letter * *#footer *.content.abstract *#mainArticle:first-letter </syntaxhighlight> 通用选择器<code>*</code>如果不是唯一的选择器,则可以省略不写。如<code>#footer</code>等价于<code>*#footer</code>;<code>:first-line</code>等价于<code>*:first-line</code>。 ==后代选取项 Descendant== 后代选取项 允许在指定元素内部的另一个指定元素具有相应风格。例如:<code>p</code>元素内部任何深度后代元素<code>span</code>为黑体,则CSS规则: <syntaxhighlight lang = "css"> p span{ font-weight:bold; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p>Start of paragraph. <span>This span is bold.</span> Rest of paragraph.</p> <div>Start of division. <span>This span is normal.</span> Rest of division.</div> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p>Start of paragraph. <span style="font-weight:bold;" title="This text is bold.">This span is bold.</span> Rest of paragraph.</p> <div>Start of division. <span>This span is normal.</span> Rest of division.</div> }} 下例改变"navigation"列表中已经访问过的链接的颜色。 CSS规则: <syntaxhighlight lang = "css"> ul#navigation a:visited { color:red } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <ul id="navigation"> <li><a href="HomePage">Home</a></li> <li><a href="AnotherPage">A page you haven't visited yet.</a></li> </ul> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<ul> <li style="color:red" title="This text is red.">Home</li> <li style="color:blue">A page you haven't visited yet.</li> </ul> }} 下例使用<code>first-child</code>选择器。 CSS规则: <syntaxhighlight lang = "css"> div.content strong:first-child { color:red } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "css"> <div class="content"> <p>Some <em>emphasized</em> text and some <strong>strongly emphasized</strong> text.</p> <p>Some <strong>strongly emphasized</strong> text and some <em>emphasized</em> text.</p> </div> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p>Some <em>emphasized</em> text and some <strong>strongly emphasized</strong> text.</p> <p>Some <strong style="color:red" title="This text is red.">strongly emphasized</strong> text and some <em>emphasized</em> text.</p> }} 上例需要注意2点: * 元素的前面即使有text,不影响它是first-child。因此第一段落的<code>em</code>元素和第二段落<code>strong</code>元素分别是相应段落的第一个子元素。 * 只有元素满足选择器的所有部分,才会应用该风格规则。第一段落的<code>strong</code>元素是第二个子节点,因此不匹配<code>strong:first-child</code>选择器。 ==群组选择器== 群组选择器Grouping selectors是一个用逗号分割的选择器的列表。 <syntaxhighlight lang = "css"> h1, h2, h3 { text-align:center; } </syntaxhighlight> 等价于 <syntaxhighlight lang = "css"> h1 { text-align:center; } h2 { text-align:center; } h3 { text-align:center; } </syntaxhighlight> 一个元素可以被多条规则选中: <syntaxhighlight lang = "css"> h1, h2, h3, h4, h5, h6 { color: white; background-color: red; } h1 { color: yellow; } </syntaxhighlight> 所有标题有红色背景。Level 2&#8211;6 标题有白色文字。Level 1标题是黄色文字。 规则的顺序非常重要。下例中所有标题都是白色文字: <syntaxhighlight lang = "css"> h1 { color: yellow; } h1, h2, h3, h4, h5, h6 { color: white; background-color: red; } </syntaxhighlight> ==CSS新版本== CSS 2.1的新的选择器: * Child 选择器 * Adjacent sibling 选择器 * Attribute 选择器 * 更多拟类和拟元素选择器 CSS 3的选择器: * 更多sibling选择器 * 更多attribute选择器 * 更多拟类和拟元素选择器 {{BookCat}} kcxh2lk3bfw2onefd33qio5yqqfm2c9 168493 168490 2022-08-16T07:44:58Z Paho.mqtt 60409 wikitext text/x-wiki CSS的'''selector'''可翻译为'''选择器'''或'''选取项''',是出现在样式规则的左大括号之前的部分。如"<code> p { font-weight:bold; } </code>"的p。选取项指出样式规则可用于哪个元素,可根据元素的类别type,如"div";元素的类class;元素的id。选取项只能用于链接或嵌入CSS,不能用于内联CSS。 {| class="wikitable" |+ 选取项概述 ! 选取项的分类 ! 选取项例子 ! 规则例子 ! 注释 |- | 类别选取项 type | div | div { margin:7px; padding:7px; } |- | 类选取项 class | .important | .important { font-weight:bold; color:red; } |- | id选取项 | #onlyThisOne | #onlyThisOne { font-family:courier; } |- | 一般选取项 universal | * | * { color:green; } |- | 拟类别选取项 pseudo-class | a:link | a:link { color:blue; } | 伪类是特殊的类,基于元素的状态,使用:运算符。语法为E:pseudo-class. 常见的有:hover, :link and :visited |- | 拟元素选取项 pseudo-element | p:first-letter | p:first-letter { color:red } |- | 后代选取项 descendant | td span | td span { font-weight:bold; } |- | 群组选取项 grouped | h1, h2, h3 | h1, h2, h3 { text-align:center; } |- |子选取项(Child) | | |- | 比邻选取项 (Adjacent) | | |- | 属性选取项(Attribute) | E[Attribute="value"] | |Attribute支持多种不同的匹配运算符,如 =, !=, ~=, ^= and $= |} ==类别选取项 type== 基于元素的基本类别type匹配元素。 <syntaxhighlight lang = "css"> div{ margin:7px; padding:7px; } </syntaxhighlight> <syntaxhighlight lang = "css"> body{ background-image:url("image.gif"); font-size:.9em; } </syntaxhighlight> ==类选择器Class== HTML文档的body中的所有元素都可具有<code>class</code>特性。这可用于辨识同一类别的元素。例如: <syntaxhighlight lang = "html"> The <code class="attribute">alt</code> attribute of the <code class="element">img</code> </syntaxhighlight> 可建立一个全局类: <syntaxhighlight lang = "css"> .important { font-weight:bold; color:red; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p class="important">Important Text</p> <p>Ordinary Text</p> <div class="important">Important Footnote</div> </syntaxhighlight> 绘制为: {{CSS:rendered|1=<p style="font-weight:bold; color:red;" title="This text is red.">Important Text</p> <p>Ordinary Text</p> <p style="font-weight:bold; color:red;" title="This text is red.">Important Footnote</div> }} 第二种使用方式是和类别选择器一起使用: <syntaxhighlight lang = "css"> p.right { float:right; clear:both } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p class="right">Righty Righty</p> </syntaxhighlight> 绘制结果: {{CSS:rendered|1=<p style="float:right;">Righty Righty</p> <br style="clear:both"> }} 一个元素可以属于多个类: <syntaxhighlight lang = "html"> <p class="right">This paragraph belongs to the class 'right'.</p> <p class="important">This paragraph belongs to the class 'important'.</p> <p class="right important">This paragraph belongs to both classes.</p> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p style="clear:both;float:right;">This paragraph belongs to the class 'right'.</p> <p style="font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to the class 'important'.</p> <p style="clear:both;float:right;font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to both classes.</p> <br style="clear:both"> }} 类名应该描述类的目的,而不是绘制效果。因为设计者可能改变其绘制的想法。 <syntaxhighlight lang = "css"> .red {color:blue} </syntaxhighlight> 多个类选择器可用于选择具有所有指定类的元素: <syntaxhighlight lang = "css"> p.important.right { border: 2px dashed #666 } </syntaxhighlight> 绘制例子: {{CSS:rendered|1=<p style="clear:both;float:right;">This paragraph belongs to the class 'right'.</p> <p style="font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to the class 'important'.</p> <p style="clear:both;float:right;font-weight:bold;color:red;border: 2px dashed #666" title="This text is red and bordered.">This paragraph belongs to both classes.</p> <br style="clear:both"> }} ==ID== ID选择器用于选择一个页面中的唯一元素。也可以多个页面有同名的元素,或者与后代选择器并用。 CSS rule: <syntaxhighlight lang = "css"> #onlyThisOne { font-family:courier; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p id="onlyThisOne">Courier</p> </syntaxhighlight> 绘制为: {{CSS:rendered|1=<p style="font-family:courier;">Courier</p>}} ==通用选择器Universal== 适用于页面全部元素: <syntaxhighlight lang = "css"> * { color:green; } </syntaxhighlight> ==拟类选择器Pseudo-Classes== CSS1 和 CSS2.1的拟类选择器以单个冒号<code>:</code>开始,CSS3的拟类选择器以2个冒号<code>::</code>开始。 CSS level 1 定义了3个拟类: ;<code>link</code> : unvisited links ;<code>visited</code> : visited links ;<code>active</code> : active links 可用于anchor (<code>a</code>) 元素. <syntaxhighlight lang = "css"> a:link{ color:blue; } a:visited{ color:purple; } a:active{ color:red; } </syntaxhighlight> CSS level 2.1引入了一批新的拟类选择器: ;<code>first-child</code> : 匹配元素的第一个子元素 ;<code>lang(...)</code> : 匹配元素的语言。 ;<code>hover</code> : 当用户的鼠标悬浮在元素之上 ;<code>active</code> : 任何能够是 'active' ,例如button &#8211; 当元素是active时应用该样式. ;<code>focus</code> : 具有键盘输入焦点的元素可用该样式 例如: <syntaxhighlight lang = "css"> p:first-child { font-size:120% } span:lang(la) { /* render Latin text, e.g. per se, in italics */ font-style:italic } li:hover { /* doesn't work in Internet Explorer */ background-color:blue } input:active { color:red } input:focus { background-color:yellow } </syntaxhighlight> <code>first-child</code>拟类例子在下文的[[#Descendant|descendant]]中给出. 可以同时指定多个拟类: <syntaxhighlight lang = "css"> a:visited:hover { background-color:red } </syntaxhighlight> 需要注意拟类应用的顺序。例如,如需要已访问过的链接为绿色除非用户鼠标悬浮其上时为黄色,则规则必须为如下顺序: <syntaxhighlight lang = "css"> a:visited{ color:green } a:hover{ color:yellow } </syntaxhighlight> 如果上述顺序翻转过来,则已访问的颜色比悬浮的颜色有更高优先级。 ==拟元素== CSS1 和 CSS2.1的拟元素选择器以单个冒号<code>:</code>开始,CSS3的拟元素选择器以2个冒号<code>::</code>开始。 CSS level 1定义了2个逆元素:<code>first-letter</code> 和 <code>first-line</code>,分别选择要绘制元素的第一个字母和第一行。 <syntaxhighlight lang = "css"> p:first-letter { color:red } </syntaxhighlight> 只能用一个拟元素选择器且必须是选择器链上的最后一个。<code>first-line</code>选择器只能用于块级元素、内联块、table标题和table的单元格. CSS2.1增加了2个拟元素,<code>before</code> 和 <code>after</code>. ==简单选择器== 上述选择器(type, class, ID, universal, 拟类和拟元素)都是简单选择器。完整语法从左至右为: * 类别选择器或通用选择器 * 零个或多个类选择器、id选择器、伪类选择器(CSS2.1也允许特性选择器) * 零个或多个拟元素选择器 下属都是简单选择器例子: <syntaxhighlight lang = "css"> p p.important p#navigation a:link p:first-line a:visited#homePage.menu2:first-letter * *#footer *.content.abstract *#mainArticle:first-letter </syntaxhighlight> 通用选择器<code>*</code>如果不是唯一的选择器,则可以省略不写。如<code>#footer</code>等价于<code>*#footer</code>;<code>:first-line</code>等价于<code>*:first-line</code>。 ==后代选取项 Descendant== 后代选取项 允许在指定元素内部的另一个指定元素具有相应风格。例如:<code>p</code>元素内部任何深度后代元素<code>span</code>为黑体,则CSS规则: <syntaxhighlight lang = "css"> p span{ font-weight:bold; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p>Start of paragraph. <span>This span is bold.</span> Rest of paragraph.</p> <div>Start of division. <span>This span is normal.</span> Rest of division.</div> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p>Start of paragraph. <span style="font-weight:bold;" title="This text is bold.">This span is bold.</span> Rest of paragraph.</p> <div>Start of division. <span>This span is normal.</span> Rest of division.</div> }} 下例改变"navigation"列表中已经访问过的链接的颜色。 CSS规则: <syntaxhighlight lang = "css"> ul#navigation a:visited { color:red } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <ul id="navigation"> <li><a href="HomePage">Home</a></li> <li><a href="AnotherPage">A page you haven't visited yet.</a></li> </ul> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<ul> <li style="color:red" title="This text is red.">Home</li> <li style="color:blue">A page you haven't visited yet.</li> </ul> }} 下例使用<code>first-child</code>选择器。 CSS规则: <syntaxhighlight lang = "css"> div.content strong:first-child { color:red } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "css"> <div class="content"> <p>Some <em>emphasized</em> text and some <strong>strongly emphasized</strong> text.</p> <p>Some <strong>strongly emphasized</strong> text and some <em>emphasized</em> text.</p> </div> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p>Some <em>emphasized</em> text and some <strong>strongly emphasized</strong> text.</p> <p>Some <strong style="color:red" title="This text is red.">strongly emphasized</strong> text and some <em>emphasized</em> text.</p> }} 上例需要注意2点: * 元素的前面即使有text,不影响它是first-child。因此第一段落的<code>em</code>元素和第二段落<code>strong</code>元素分别是相应段落的第一个子元素。 * 只有元素满足选择器的所有部分,才会应用该风格规则。第一段落的<code>strong</code>元素是第二个子节点,因此不匹配<code>strong:first-child</code>选择器。 ==群组选择器== 群组选择器Grouping selectors是一个用逗号分割的选择器的列表。 <syntaxhighlight lang = "css"> h1, h2, h3 { text-align:center; } </syntaxhighlight> 等价于 <syntaxhighlight lang = "css"> h1 { text-align:center; } h2 { text-align:center; } h3 { text-align:center; } </syntaxhighlight> 一个元素可以被多条规则选中: <syntaxhighlight lang = "css"> h1, h2, h3, h4, h5, h6 { color: white; background-color: red; } h1 { color: yellow; } </syntaxhighlight> 所有标题有红色背景。Level 2&#8211;6 标题有白色文字。Level 1标题是黄色文字。 规则的顺序非常重要。下例中所有标题都是白色文字: <syntaxhighlight lang = "css"> h1 { color: yellow; } h1, h2, h3, h4, h5, h6 { color: white; background-color: red; } </syntaxhighlight> ==CSS新版本== CSS 2.1的新的选择器: * Child 选择器 * Adjacent sibling 选择器 * Attribute 选择器 * 更多拟类和拟元素选择器 CSS 3的选择器: * 更多sibling选择器 * 更多attribute选择器 * 更多拟类和拟元素选择器 {{BookCat}} c57afvmv2t9gn0rhloxpb3mcnwlccp4 168494 168493 2022-08-16T07:45:05Z Cewbot 42738 [[User:Cewbot/log/20201008/configuration|修正失效的網頁錨點]]: #Descendant→當前最近似的網頁錨點[[CSS/选择器#后代选取项 Descendant]] wikitext text/x-wiki CSS的'''selector'''可翻译为'''选择器'''或'''选取项''',是出现在样式规则的左大括号之前的部分。如"<code> p { font-weight:bold; } </code>"的p。选取项指出样式规则可用于哪个元素,可根据元素的类别type,如"div";元素的类class;元素的id。选取项只能用于链接或嵌入CSS,不能用于内联CSS。 {| class="wikitable" |+ 选取项概述 ! 选取项的分类 ! 选取项例子 ! 规则例子 ! 注释 |- | 类别选取项 type | div | div { margin:7px; padding:7px; } |- | 类选取项 class | .important | .important { font-weight:bold; color:red; } |- | id选取项 | #onlyThisOne | #onlyThisOne { font-family:courier; } |- | 一般选取项 universal | * | * { color:green; } |- | 拟类别选取项 pseudo-class | a:link | a:link { color:blue; } | 伪类是特殊的类,基于元素的状态,使用:运算符。语法为E:pseudo-class. 常见的有:hover, :link and :visited |- | 拟元素选取项 pseudo-element | p:first-letter | p:first-letter { color:red } |- | 后代选取项 descendant | td span | td span { font-weight:bold; } |- | 群组选取项 grouped | h1, h2, h3 | h1, h2, h3 { text-align:center; } |- |子选取项(Child) | | |- | 比邻选取项 (Adjacent) | | |- | 属性选取项(Attribute) | E[Attribute="value"] | |Attribute支持多种不同的匹配运算符,如 =, !=, ~=, ^= and $= |} ==类别选取项 type== 基于元素的基本类别type匹配元素。 <syntaxhighlight lang = "css"> div{ margin:7px; padding:7px; } </syntaxhighlight> <syntaxhighlight lang = "css"> body{ background-image:url("image.gif"); font-size:.9em; } </syntaxhighlight> ==类选择器Class== HTML文档的body中的所有元素都可具有<code>class</code>特性。这可用于辨识同一类别的元素。例如: <syntaxhighlight lang = "html"> The <code class="attribute">alt</code> attribute of the <code class="element">img</code> </syntaxhighlight> 可建立一个全局类: <syntaxhighlight lang = "css"> .important { font-weight:bold; color:red; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p class="important">Important Text</p> <p>Ordinary Text</p> <div class="important">Important Footnote</div> </syntaxhighlight> 绘制为: {{CSS:rendered|1=<p style="font-weight:bold; color:red;" title="This text is red.">Important Text</p> <p>Ordinary Text</p> <p style="font-weight:bold; color:red;" title="This text is red.">Important Footnote</div> }} 第二种使用方式是和类别选择器一起使用: <syntaxhighlight lang = "css"> p.right { float:right; clear:both } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p class="right">Righty Righty</p> </syntaxhighlight> 绘制结果: {{CSS:rendered|1=<p style="float:right;">Righty Righty</p> <br style="clear:both"> }} 一个元素可以属于多个类: <syntaxhighlight lang = "html"> <p class="right">This paragraph belongs to the class 'right'.</p> <p class="important">This paragraph belongs to the class 'important'.</p> <p class="right important">This paragraph belongs to both classes.</p> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p style="clear:both;float:right;">This paragraph belongs to the class 'right'.</p> <p style="font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to the class 'important'.</p> <p style="clear:both;float:right;font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to both classes.</p> <br style="clear:both"> }} 类名应该描述类的目的,而不是绘制效果。因为设计者可能改变其绘制的想法。 <syntaxhighlight lang = "css"> .red {color:blue} </syntaxhighlight> 多个类选择器可用于选择具有所有指定类的元素: <syntaxhighlight lang = "css"> p.important.right { border: 2px dashed #666 } </syntaxhighlight> 绘制例子: {{CSS:rendered|1=<p style="clear:both;float:right;">This paragraph belongs to the class 'right'.</p> <p style="font-weight:bold;color:red;" title="This text is red.">This paragraph belongs to the class 'important'.</p> <p style="clear:both;float:right;font-weight:bold;color:red;border: 2px dashed #666" title="This text is red and bordered.">This paragraph belongs to both classes.</p> <br style="clear:both"> }} ==ID== ID选择器用于选择一个页面中的唯一元素。也可以多个页面有同名的元素,或者与后代选择器并用。 CSS rule: <syntaxhighlight lang = "css"> #onlyThisOne { font-family:courier; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p id="onlyThisOne">Courier</p> </syntaxhighlight> 绘制为: {{CSS:rendered|1=<p style="font-family:courier;">Courier</p>}} ==通用选择器Universal== 适用于页面全部元素: <syntaxhighlight lang = "css"> * { color:green; } </syntaxhighlight> ==拟类选择器Pseudo-Classes== CSS1 和 CSS2.1的拟类选择器以单个冒号<code>:</code>开始,CSS3的拟类选择器以2个冒号<code>::</code>开始。 CSS level 1 定义了3个拟类: ;<code>link</code> : unvisited links ;<code>visited</code> : visited links ;<code>active</code> : active links 可用于anchor (<code>a</code>) 元素. <syntaxhighlight lang = "css"> a:link{ color:blue; } a:visited{ color:purple; } a:active{ color:red; } </syntaxhighlight> CSS level 2.1引入了一批新的拟类选择器: ;<code>first-child</code> : 匹配元素的第一个子元素 ;<code>lang(...)</code> : 匹配元素的语言。 ;<code>hover</code> : 当用户的鼠标悬浮在元素之上 ;<code>active</code> : 任何能够是 'active' ,例如button &#8211; 当元素是active时应用该样式. ;<code>focus</code> : 具有键盘输入焦点的元素可用该样式 例如: <syntaxhighlight lang = "css"> p:first-child { font-size:120% } span:lang(la) { /* render Latin text, e.g. per se, in italics */ font-style:italic } li:hover { /* doesn't work in Internet Explorer */ background-color:blue } input:active { color:red } input:focus { background-color:yellow } </syntaxhighlight> <code>first-child</code>拟类例子在下文的[[#后代选取项 Descendant|descendant]]中给出. 可以同时指定多个拟类: <syntaxhighlight lang = "css"> a:visited:hover { background-color:red } </syntaxhighlight> 需要注意拟类应用的顺序。例如,如需要已访问过的链接为绿色除非用户鼠标悬浮其上时为黄色,则规则必须为如下顺序: <syntaxhighlight lang = "css"> a:visited{ color:green } a:hover{ color:yellow } </syntaxhighlight> 如果上述顺序翻转过来,则已访问的颜色比悬浮的颜色有更高优先级。 ==拟元素== CSS1 和 CSS2.1的拟元素选择器以单个冒号<code>:</code>开始,CSS3的拟元素选择器以2个冒号<code>::</code>开始。 CSS level 1定义了2个逆元素:<code>first-letter</code> 和 <code>first-line</code>,分别选择要绘制元素的第一个字母和第一行。 <syntaxhighlight lang = "css"> p:first-letter { color:red } </syntaxhighlight> 只能用一个拟元素选择器且必须是选择器链上的最后一个。<code>first-line</code>选择器只能用于块级元素、内联块、table标题和table的单元格. CSS2.1增加了2个拟元素,<code>before</code> 和 <code>after</code>. ==简单选择器== 上述选择器(type, class, ID, universal, 拟类和拟元素)都是简单选择器。完整语法从左至右为: * 类别选择器或通用选择器 * 零个或多个类选择器、id选择器、伪类选择器(CSS2.1也允许特性选择器) * 零个或多个拟元素选择器 下属都是简单选择器例子: <syntaxhighlight lang = "css"> p p.important p#navigation a:link p:first-line a:visited#homePage.menu2:first-letter * *#footer *.content.abstract *#mainArticle:first-letter </syntaxhighlight> 通用选择器<code>*</code>如果不是唯一的选择器,则可以省略不写。如<code>#footer</code>等价于<code>*#footer</code>;<code>:first-line</code>等价于<code>*:first-line</code>。 ==后代选取项 Descendant== 后代选取项 允许在指定元素内部的另一个指定元素具有相应风格。例如:<code>p</code>元素内部任何深度后代元素<code>span</code>为黑体,则CSS规则: <syntaxhighlight lang = "css"> p span{ font-weight:bold; } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <p>Start of paragraph. <span>This span is bold.</span> Rest of paragraph.</p> <div>Start of division. <span>This span is normal.</span> Rest of division.</div> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p>Start of paragraph. <span style="font-weight:bold;" title="This text is bold.">This span is bold.</span> Rest of paragraph.</p> <div>Start of division. <span>This span is normal.</span> Rest of division.</div> }} 下例改变"navigation"列表中已经访问过的链接的颜色。 CSS规则: <syntaxhighlight lang = "css"> ul#navigation a:visited { color:red } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "html"> <ul id="navigation"> <li><a href="HomePage">Home</a></li> <li><a href="AnotherPage">A page you haven't visited yet.</a></li> </ul> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<ul> <li style="color:red" title="This text is red.">Home</li> <li style="color:blue">A page you haven't visited yet.</li> </ul> }} 下例使用<code>first-child</code>选择器。 CSS规则: <syntaxhighlight lang = "css"> div.content strong:first-child { color:red } </syntaxhighlight> HTML例子: <syntaxhighlight lang = "css"> <div class="content"> <p>Some <em>emphasized</em> text and some <strong>strongly emphasized</strong> text.</p> <p>Some <strong>strongly emphasized</strong> text and some <em>emphasized</em> text.</p> </div> </syntaxhighlight> 绘制效果: {{CSS:rendered|1=<p>Some <em>emphasized</em> text and some <strong>strongly emphasized</strong> text.</p> <p>Some <strong style="color:red" title="This text is red.">strongly emphasized</strong> text and some <em>emphasized</em> text.</p> }} 上例需要注意2点: * 元素的前面即使有text,不影响它是first-child。因此第一段落的<code>em</code>元素和第二段落<code>strong</code>元素分别是相应段落的第一个子元素。 * 只有元素满足选择器的所有部分,才会应用该风格规则。第一段落的<code>strong</code>元素是第二个子节点,因此不匹配<code>strong:first-child</code>选择器。 ==群组选择器== 群组选择器Grouping selectors是一个用逗号分割的选择器的列表。 <syntaxhighlight lang = "css"> h1, h2, h3 { text-align:center; } </syntaxhighlight> 等价于 <syntaxhighlight lang = "css"> h1 { text-align:center; } h2 { text-align:center; } h3 { text-align:center; } </syntaxhighlight> 一个元素可以被多条规则选中: <syntaxhighlight lang = "css"> h1, h2, h3, h4, h5, h6 { color: white; background-color: red; } h1 { color: yellow; } </syntaxhighlight> 所有标题有红色背景。Level 2&#8211;6 标题有白色文字。Level 1标题是黄色文字。 规则的顺序非常重要。下例中所有标题都是白色文字: <syntaxhighlight lang = "css"> h1 { color: yellow; } h1, h2, h3, h4, h5, h6 { color: white; background-color: red; } </syntaxhighlight> ==CSS新版本== CSS 2.1的新的选择器: * Child 选择器 * Adjacent sibling 选择器 * Attribute 选择器 * 更多拟类和拟元素选择器 CSS 3的选择器: * 更多sibling选择器 * 更多attribute选择器 * 更多拟类和拟元素选择器 {{BookCat}} 8i7lb2dz94clvbu859giqo2zg1grz47 User:米哈伊尔.格里尔斯.盖伦 2 32332 168492 2022-08-16T07:38:55Z 米哈伊尔.格里尔斯.盖伦 60984 创建页面,内容为“哈哈哈” wikitext text/x-wiki 哈哈哈 755r60jewbnpe6ogkg02ns4vtvc5x61