Jump to content

User:Thiemo Mättig (WMDE)/sandbox

From Wikipedia, the free encyclopedia

Without templates

[edit]

Nesting an outer ref tag and an inner #tag function causes all kinds of broken behavior.[1]

Nesting an outer #tag function with an inner ref tag appears to work as expected.[3]

A common use case is t<o put the inner ref in another group.[4]

What if we nest two #tag functions? Yes, works.[6]

With a template, not using #tag

[edit]

Templates need to use the #tag function. Not nested here for comparison.[7]

Outer ref tag with inner template doesn't work.[8]

Outer template with inner ref tag works.[9]

Outer template with inner ref tag in different group works.[10]

With a template and #tag

[edit]

This all works as it's effectively the same as nesting #tag functions, as above.

Outer #tag function with inner template works.[12]

Outer template with inner #tag function works.[13]

Sources

[edit]
  1. ^ This is f

Individual references

[edit]
  1. ^ This is a
  2. ^ This is d
  3. ^ This is c[2]
  4. ^ This is e[source 1]
  5. ^ This is h
  6. ^ This is g[5]
  7. ^ Produced by a template
  8. ^ This is t4
  9. ^ Produced by a template
  10. ^ Produced by a template
  11. ^ Produced by a template
  12. ^ This is x1[11]
  13. ^ Produced by a template

Cite error: <ref> tag with name "b" defined in <references> is not used in prior text.
Cite error: <ref> tag defined in <references> has no name attribute.