使用者:丁志仁

出自跨校選修
於 2025年6月29日 (日) 14:58 由 丁志仁討論 | 貢獻 所做的修訂 →‎Poem 標籤
跳至導覽 跳至搜尋

Poem 標籤

<poem> !! Version 2

  1. Force the test runner to ensure the extension is loaded

!! hooks poem !! endhooks

!! article Template:1x !! text {{{1}}} !! endarticle

  1. Regression tests for existing functionality, to ensure nothing was broken.

!! test <poem> !! wikitext <poem> this is a test </poem> !! html/php

this
is
a
test

!! html/parsoid

this

is
a

test

!! end

!!test <poem> with recursive parsing !!wikitext <poem> this is a test </poem> !! html/php

this is a test

!! html/parsoid

this is a test

!!end

    1. FIXME: Is Parsoid output the right output wrt how it actually renders?

!!test <poem> with leading whitespace !!wikitext <poem>

  test

</poem> !! html/php


   test

!! html/parsoid


  test

!!end

    1. FIXME: Parsoid adds

      wrapper around the THML
      tag

!!test Horizontal rule !!wikitext <poem> some


text </poem> !! html/php

some


text

!! html/parsoid

some


text

!!end

!! test nested <poem> !! wikitext <poem><nowiki> this is a test </poem> !! html/php


this
is
a
test

!! html/parsoid

\nthis\nis\na\ntest\n</nowiki>"}}'>


this
is
a
test

!!end

!! test nested <poem> with formatting !! wikitext <poem><nowiki> this '''is''' a test </poem> !! html/php


this
is
a
test

!! html/parsoid

\nthis\n'''is'''\na\ntest\n</nowiki>"}}'>


this
is
a
test

!! end

!! test Basic <poem> usage with style !! wikitext <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> A stately pleasure-dome decree: Where Alph, the sacred river, ran Through caverns measureless to man Down to a sunless sea. </poem> !! html/php

A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.

!! html/parsoid

A stately pleasure-dome decree:

Where Alph, the sacred river, ran
Through caverns measureless to man

Down to a sunless sea.

!! end

  1. FIXME: This test should be removed once we stop span-wrapping entities in nowikis

!! test Verify Parsoid handles entities in nowikis in poem correctly !! wikitext <poem> L1 L2 <ref>Not a ref</ref> foo & bar [[Not a link]] L3 </poem> !! html/php

L1
L2

<ref>Not a ref</ref>
foo & bar
Not a link

L3

!! html/parsoid

\n<ref>Not a ref</ref>\nfoo &amp; bar\nNot a link\n</nowiki>\nL3\n"}}'>

L1

L2

<ref>Not a ref</ref>
foo & bar
Not a link

L3

!! end

!! test UTF-8 sequences in extension tags (T231945) !! wikitext <poem> 模板:1x </poem> !! html/php

ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ

!! html/parsoid

ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ

!! end

!! test Multi-line poems with indentation use spans and breaks correctly (T235709) !! wikitext <poem> CONGREGATI

EX TOTO ORBE
MATHEMATICI

</poem> !! html/php

CONGREGATI
EX TOTO ORBE
MATHEMATICI

!! html/parsoid

CONGREGATI

EX TOTO ORBE

MATHEMATICI

!! end

!! test Poem with class !! wikitext <poem class="hiho"> hi ho </poem> !! html/php

hi ho

!! html/parsoid

hi ho

!! end

!! test Poem with empty class !! wikitext <poem class=""> hi ho </poem> !! html/php

hi ho

!! html/parsoid

hi ho

!! end </poem>

Details 標籤

收納

  1. 直接改 mediawiki 接受 details 標籤
  2. 直接改 mediawiki 接受 summary 標籤
  3. 參考解除HTML標籤使用限制

通訊錄

單一 wiki 頁使用 CSS 的示範,請看本頁原始碼頁首 {{#css:…}}與下表

姓名lineemail備註
丁志仁丁志仁aledu2@gmail.com老師
李昀蓁昀蓁 Alika 星alikayuen921@gmail.comEtudiante
徐恕禾素梅i61021221@gmail.comEtudiante
黃稚博自拔burtfook@gmail.comEtudiante
鄭云禎yunlola20040427@gmail.comEtudiante
徐慕禾徐慕禾momo020219@gmail.comEtudiante

數學符號測試

  1. [math]E=mc^2[/math]

  2. [math]\begin{align} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{align}[/math]

  3. [math]\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \end{vmatrix}[/math]

  4. [math]1 + \frac{q^2}{(1-q)} + \frac{q^6}{(1-q)(1-q^2)} + \cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad for\,|q|\lt 1.[/math]