Jump to content

User:DePiep/help/wikicode-&-html

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DePiep (talk | contribs) at 10:08, 25 October 2022 (if parameter blank). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
USER: /home-E /subpg · /sbox-E · /1 2 3 4 5 6 /help* /news /s-E /x-E /xx-E /row-E  EXTERNAL: EL:w3c-css · TOOLS: WD: rgx101 PETSCAN  · wtech /tpu · commons
WIKI: special:ExpandT Prefix (T:list) #parse {{MAGIC}} H:notes · _TOC_ WikiBlame mw:Lua man (patterns, debug, α) · T:SFW/s (M:,../sandbox· M:String · TFA /better signpost adnws · SPEEDY CFSD · alerts
/unicode: {{T:U+}} m:Uchar · U+abbr · {{ISO15924}} ff conv · {{ISO4217}} BOXES: /chembox /ChemData  · /drugbox T · TG · DEV: /CUR · /taxo · /chemlist · NBSP> < minus>−< NDASH>–< MDASH>—< NOT EQUAL>≠< DOTCIRCLE>◌<
ELEM: pv
/elem · WT · ISO-T symbol-to-data · datarefs · :c:cat:PT · U:PTG · WP:PTG (t)
This box: view · edit

#if:-options

mw:Help:Extension:ParserFunctions
User:DePiep/help/demo1
User:DePiep/help/demo2 proof of concept
  • WITH BAR {{#if:{{{1|}}}|A|B}}
  • WITHOUT BAR {{#if:{{{1}}}|Y|Z}}

if parameter blank

1. ABS nothing: Template:If parameter blank
2. BLK |1=}} Template:If parameter blank
3. VAL |1=sunday}} Template:If parameter blank
4. BLK (UNN) unnamed, blank: |}} Template:If parameter blank
5. VAL (UNN) unnamed: |sunday}} Template:If parameter blank
9. ABS 1=absent: |2=sunday}} Template:If parameter blank

/demo

1. ABS nothing: Template:If parameter blank
2. BLK |1=}} Template:If parameter blank
3. VAL |1=sunday}} Template:If parameter blank
4. BLK (UNN) unnamed, blank: |}} Template:If parameter blank
5. VAL (UNN) unnamed: |sunday}} Template:If parameter blank
9. ABS 1=absent: |2=sunday}} Template:If parameter blank

demo2

1. nothing:

ABYblank: >=>_absent_<

2. |1=}}

ABYblank: >=>_blank_<

3. |1=sunday}}

ABYblank: >sunday=>_value_<

4. unnamed, blank: |}}

ABYblank: >=>_blank_<

5. unnamed: |sunday}}

ABYblank: >sunday=>_value_<

9. 1=absent: |2=sunday}}

ABYblank: >=>_absent_<

demo1

1. nothing:

AB w/ bar: >=>B<
YZ no bar: >=>Y<

2. |1=}}

AB w/ bar: >=>B<
YZ no bar: >=>_blank_<

3. |1=sunday}}

AB w/ bar: >sunday=>A<
YZ no bar: >sunday=>Y<

4. unnamed, blank: |}}

AB w/ bar: >=>B<
YZ no bar: >=>_blank_<

5. unnamed: |sunday}}

AB w/ bar: >sunday=>A<
YZ no bar: >sunday=>Y<

{{if empty}}

row numbers

{{Row numbers}}


a 2 3
1 ABC 99
2 DEF 11


highlight syntax code

mw:Extension:SyntaxHighlight#line

char

  • |½|¼|¾|⅐|⅑|⅒|⅓|⅔|⅕|⅖|⅗|⅘|⅙|⅚|⅛|⅜|⅝|⅞|⅟|↉|

gadgets