Template:Beginner/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
don't overcomplicate code as it makes it unreadable in source view; substitute templates to keep documentation from being categorized under beginner pages |
||
Line 5: | Line 5: | ||
For example, on the "[[Regular temperament]]" page, you could add the template like this: | For example, on the "[[Regular temperament]]" page, you could add the template like this: | ||
: <code>{{ | : <code><nowiki>{{Beginner|Mathematical theory of regular temperaments}}</nowiki></code> | ||
to obtain: | to obtain: | ||
{{{{ | {{Mbox | ||
| type=notice | |||
| icon=Icon-Beginner.png | |||
| 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: | ||
{{{{ | {{Mbox | ||
| type=notice | |||
| icon=Icon-Beginner.png | |||
| 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: | ||
{{{{ | {{Mbox | ||
| type=notice | |||
| icon=Icon-Beginner.png | |||
| 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. |