Extension Syntax/Example

From MediaWiki.org
Jump to navigation Jump to search
Wikimedia-logo-meta.png

This page was moved from MetaWiki.
It probably requires cleanup – please feel free to help out. In addition, some links on the page may be red; respective pages might be found at Meta. Remove this template once cleanup is complete.

DO NOT VOTE HERE. IT IS JUST SOME EXAMPLES TO ILLUSTRATE PROPOSALS. THIS IS ABOUT FINDING A SYNTAX TO ENCAPSULATE DIFFERENT EXTENSIONS, NOT ABOUT THE SYNTAX OF THE EXTENSIONS THEMSELVES.'

Vote taking place at Extension Syntax.

Examples[edit]

Erik's proposal[edit]

See Extension Syntax#Erik's proposal for details...

<music>c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r</music>

<math>R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}</math>

The function <math>f(x)</math> may also be written as <math>x^2 + y^2</math> or <math>re^\theta</math>.

<hiero>H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -!</hiero>

Magnus' proposal[edit]

See Extension Syntax#Magnus' proposal for details...

{{music:c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r}}

{{math:R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}}}

The function {{math:f(x)}} may also be written as {{math:x^2 + y^2}} or {{math:re^\theta}}.

{{hiero:H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -!}}

HTML like (with same end marker)[edit]

See Extension Syntax#HTML like (with same end marker) for details...

<music>c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r<end>

<math>R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}<end>

The function <math>f(x)<end> may also be written as <math>x^2 + y^2<end> or <math>re^\theta<end>.

<hiero>H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -!<end>

Forum like (with no /) (Aoineko)[edit]

See Extension Syntax#Forum like (with no /) (Aoineko) for details...

[music]c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r[music]

[math]R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}[math]

The function [math]f(x)[math] may also be written as [math]x^2 + y^2[math] or [math]re^\theta[math].

[hiero]H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -![hiero]

Forum like (with same end marker) (Aoineko)[edit]

See Extension Syntax#Forum like (with same end marker) (Aoineko) for details...

[music]c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r[end]

[math]R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}[end]

The function [math]f(x)[end] may also be written as [math]x^2 + y^2[end] or [math]re^\theta[end].

[hiero]H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -![end]

Peter's proposal[edit]

See Extension Syntax#Peter's proposal for details...

<rend type="music">c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r</rend>

<rend type="math">R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}</rend>

The function <rend type="math">f(x)</rend> may also be written as <rend type="math">x^2 + y^2</rend> or <rend type="math">re^\theta</rend>.

<rend type="hiero">H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -!</rend>


Inline brackets proposal[edit]

See Extension Syntax#Inline brackets proposal for details...

[!music c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r !]

[!math R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik} !]

The function [!math f(x) !] may also be written as [!math x^2 + y^2 !] or [!math re^\theta !].

[!hiero H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -! !]

Symbol bracket proposal[edit]

See Extension Syntax#Symbol bracket proposal for details...

[[# c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r #]]

[[! R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik} !]]

The function [[! f(x) !]] may also be written as [[! x^2 + y^2 !]] or [[! re^\theta !]].

[[^ H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -! ^]]

IMSoP's proposal[edit]

See Extension Syntax#IMSoP's proposal for details...

<special music>c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r</special>

<special math>R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}</special>

The function <special math>f(x)</special> may also be written as <special math>x^2 + y^2</special> or <special math>re^\theta</special>.

<special hiero>H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -!</special>

Phil's proposal[edit]

See Extension Syntax#Phil's proposal for details...

<wiki music>c8.( es16 bes4 ~ | bes8) r c8.( bes16 | des4 c8. bes16 | c4 ~ c8) r | c4( f,8. as16 | bes4 ~ bes8) r | f8.( es16 f4 | es f) | g8.( es16 f4 ~ | f) f8 r</wiki>

<wiki math>R_{ik} - {g_{ik} R \over 2} + \Lambda g_{ik} = 8 \pi {G \over c^4} T_{ik}</wiki> </

<font?:coloue:> = 8+ / pi {gi}[edit]

The function <wiki math>f(x)</wiki> may also be written as <wiki math>x^2 + y^2</wiki> or <wiki math>re^\theta</wiki>.

<wiki hiero>H-A25-A24 -mn:n-i-t-P11-xt -HAt:t*t-W -r:a:t -!</wiki>