Template:Beginner/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
don't overcomplicate code as it makes it unreadable in source view; substitute templates to keep documentation from being categorized under beginner pages
Ganaram inukshuk (talk | contribs)
uncategorize
Line 14: Line 14:
| text='''This is a [[:Category:Beginner pages|beginner page]].''' It is written to allow new readers to learn about the basics of the topic easily.{{#if: Mathematical theory of regular temperaments|{{#ifeq: Mathematical theory of regular temperaments|noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[Mathematical theory of regular temperaments]].|}}}}
| text='''This is a [[:Category:Beginner pages|beginner page]].''' It is written to allow new readers to learn about the basics of the topic easily.{{#if: Mathematical theory of regular temperaments|{{#ifeq: Mathematical theory of regular temperaments|noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[Mathematical theory of regular temperaments]].|}}}}
}}
}}
[[Category:Beginner pages]]


Using the template without providing an argument will produce:
Using the template without providing an argument will produce:
Line 23: Line 22:
| text='''This is a [[:Category:Beginner pages|beginner page]].''' It is written to allow new readers to learn about the basics of the topic easily.{{#if: |{{#ifeq: |noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[]].|}}}}
| text='''This is a [[:Category:Beginner pages|beginner page]].''' It is written to allow new readers to learn about the basics of the topic easily.{{#if: |{{#ifeq: |noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[]].|}}}}
}}
}}
[[Category:Beginner pages]]


Passing <code>noexpert</code> as the first argument will produce:
Passing <code>noexpert</code> as the first argument will produce:
Line 32: Line 30:
| text='''This is a [[:Category:Beginner pages|beginner page]].''' It is written to allow new readers to learn about the basics of the topic easily.{{#if: noexpert|{{#ifeq: noexpert|noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[noexpert]].|}}}}
| text='''This is a [[:Category:Beginner pages|beginner page]].''' It is written to allow new readers to learn about the basics of the topic easily.{{#if: noexpert|{{#ifeq: noexpert|noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[noexpert]].|}}}}
}}
}}
[[Category:Beginner pages]]


=== See also ===
=== See also ===
* [[Template:Expert]]
* [[Template:Expert]]
* [[Template:Technical data]]
* [[Template:Technical data]]

Revision as of 08:18, 19 September 2024

Usage

This template should be placed at the top of the page, with a single unnamed argument that indicates the corresponding expert page.

For example, on the "Regular temperament" page, you could add the template like this:

{{Beginner|Mathematical theory of regular temperaments}}

to obtain:

This is a beginner page. It is written to allow new readers to learn about the basics of the topic easily.
The corresponding expert page for this topic is Mathematical theory of regular temperaments.

Using the template without providing an argument will produce:

This is a beginner page. It is written to allow new readers to learn about the basics of the topic easily.

Passing noexpert as the first argument will produce:

This is a beginner page. It is written to allow new readers to learn about the basics of the topic easily.
No corresponding expert page currently exists for this topic.

See also