語法教學

出自狗狗百科
於 2023年12月3日 (日) 20:48 由 J87b0003留言 | 貢獻 所做的修訂 →‎建立族譜
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

基本語法[編輯 | 編輯原始碼]

連結頁面[編輯 | 編輯原始碼]

[[頁面名]]ex:貓貓

新增類別[編輯 | 編輯原始碼]

[[Category:類別名]] *會出現在該頁面下方

連結類別[編輯 | 編輯原始碼]

[[:Category:類別名]]

*同上,前面多一個冒號,但會如同頁面顯示

ex:Category:教學

變更顯示名稱

[[:Category:教學|教學指引]]

ex:教學指引

不了解可以參考:模板:狗狗介紹

進階語法[編輯 | 編輯原始碼]

建立族譜[編輯 | 編輯原始碼]

新增老大[編輯 | 編輯原始碼]

個人頁加入這段 {{#genealogy:parent | 老大名}}

新增伴侶[編輯 | 編輯原始碼]

個人頁加入這段

{{#genealogy:partner | 伴侶名}}

*只要新增其中一人就會產生連結,不用二邊都新增

產生族譜[編輯 | 編輯原始碼]

參數

ancestors:建立起點的個人名

descendants:建立尾端的個人名


範例:從茶主建立起點族譜

{{#genealogy:tree|ancestors=茶主|format=mermaid}} ex:

graph LR; %% People cha_zhu_f44("茶主"); click cha_zhu_f44 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E8%8C%B6%E4%B8%BB"; ma_shu_bf4("麻糬"); click ma_shu_bf4 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E9%BA%BB%E7%B3%AC"; mo_cha_531("抹茶"); click mo_cha_531 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E6%8A%B9%E8%8C%B6"; jiang_jiang_37f("醬醬"); click jiang_jiang_37f "https://www.puppypride.lgbt/mediawiki/index.php?title=%E9%86%AC%E9%86%AC"; ru_lao_ac3("乳酪"); click ru_lao_ac3 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E4%B9%B3%E9%85%AA"; ka_fei_a76("咖啡"); click ka_fei_a76 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%92%96%E5%95%A1"; ou_lei_bf0("歐雷"); click ou_lei_bf0 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E6%AD%90%E9%9B%B7"; o_guo_zi_dfc("お菓子"); click o_guo_zi_dfc "https://www.puppypride.lgbt/mediawiki/index.php?title=%E3%81%8A%E8%8F%93%E5%AD%90"; cuo_bing_028("剉冰"); click cuo_bing_028 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%89%89%E5%86%B0"; en_en_e73("恩恩"); click en_en_e73 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E6%81%A9%E6%81%A9"; da_fu_b9c("大福"); click da_fu_b9c "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%A4%A7%E7%A6%8F"; bu_lei_6e9("布雷"); click bu_lei_6e9 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%B8%83%E9%9B%B7"; tian_wu_bff("天霧"); click tian_wu_bff "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%A4%A9%E9%9C%A7"; yu_yuan_4e6("芋圓"); click yu_yuan_4e6 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E8%8A%8B%E5%9C%93"; dan_cong_739("單樅"); click dan_cong_739 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%96%AE%E6%A8%85"; xue_gao_4c0("雪糕"); click xue_gao_4c0 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E9%9B%AA%E7%B3%95"; fen_yuan_dff("粉圓"); click fen_yuan_dff "https://www.puppypride.lgbt/mediawiki/index.php?title=%E7%B2%89%E5%9C%93"; xian_bei_3b1("仙貝"); click xian_bei_3b1 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E4%BB%99%E8%B2%9D"; peng_tang_238("椪糖"); click peng_tang_238 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E6%A4%AA%E7%B3%96"; yuan_cha_602("圓茶"); click yuan_cha_602 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%9C%93%E8%8C%B6"; kinoko_d5c("きのこ"); click kinoko_d5c "https://www.puppypride.lgbt/mediawiki/index.php?title=%E3%81%8D%E3%81%AE%E3%81%93"; bao_bing_8c7("薄餅"); click bao_bing_8c7 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E8%96%84%E9%A4%85"; feng_tang_5ce("楓糖"); click feng_tang_5ce "https://www.puppypride.lgbt/mediawiki/index.php?title=%E6%A5%93%E7%B3%96"; yu_di_cd3("御荻"); click yu_di_cd3 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E5%BE%A1%E8%8D%BB"; chi_dou_c96("赤豆"); click chi_dou_c96 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E8%B5%A4%E8%B1%86"; %% Partners cha_zhu_AND_ma_shu_GROUP_27d{" "}; cha_zhu_f44 --> cha_zhu_AND_ma_shu_GROUP_27d; ma_shu_bf4 --> cha_zhu_AND_ma_shu_GROUP_27d; cha_zhu_GROUP_f0c{" "}; cha_zhu_f44 --> cha_zhu_GROUP_f0c; ma_shu_GROUP_9a2{" "}; ma_shu_bf4 --> ma_shu_GROUP_9a2; %% Children cha_zhu_GROUP_f0c --> mo_cha_531; cha_zhu_GROUP_f0c --> jiang_jiang_37f; cha_zhu_GROUP_f0c --> ma_shu_bf4; cha_zhu_GROUP_f0c --> ru_lao_ac3; cha_zhu_GROUP_f0c --> ka_fei_a76; cha_zhu_GROUP_f0c --> ou_lei_bf0; cha_zhu_GROUP_f0c --> o_guo_zi_dfc; cha_zhu_GROUP_f0c --> cuo_bing_028; cha_zhu_GROUP_f0c --> en_en_e73; cha_zhu_GROUP_f0c --> da_fu_b9c; cha_zhu_GROUP_f0c --> bu_lei_6e9; cha_zhu_GROUP_f0c --> tian_wu_bff; cha_zhu_GROUP_f0c --> yu_yuan_4e6; cha_zhu_GROUP_f0c --> dan_cong_739; cha_zhu_GROUP_f0c --> xue_gao_4c0; cha_zhu_GROUP_f0c --> fen_yuan_dff; cha_zhu_GROUP_f0c --> xian_bei_3b1; cha_zhu_GROUP_f0c --> peng_tang_238; cha_zhu_GROUP_f0c --> yuan_cha_602; cha_zhu_GROUP_f0c --> kinoko_d5c; cha_zhu_GROUP_f0c --> bao_bing_8c7; cha_zhu_GROUP_f0c --> feng_tang_5ce; cha_zhu_GROUP_f0c --> yu_di_cd3; ma_shu_GROUP_9a2 --> chi_dou_c96;


範例:從抹茶做為尾端建立族譜

{{#genealogy:tree|descendants=抹茶|format=mermaid}}

ex:

graph LR; %% People mo_cha_531("抹茶"); click mo_cha_531 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E6%8A%B9%E8%8C%B6"; cha_zhu_f44("茶主"); click cha_zhu_f44 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E8%8C%B6%E4%B8%BB"; feng_yu_896("楓雨"); click feng_yu_896 "https://www.puppypride.lgbt/mediawiki/index.php?title=%E6%A5%93%E9%9B%A8"; %% Partners cha_zhu_GROUP_f0c{" "}; cha_zhu_f44 --> cha_zhu_GROUP_f0c; mo_cha_AND_feng_yu_GROUP_110{" "}; mo_cha_531 --> mo_cha_AND_feng_yu_GROUP_110; feng_yu_896 --> mo_cha_AND_feng_yu_GROUP_110; %% Children cha_zhu_GROUP_f0c --> mo_cha_531;

不了解可以參考:模板:家族介紹分類:茶家