Template:Beginner: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
Revert for now, will figure out later
Line 1: Line 1:
<includeonly>{{Mbox|type=notice|text='''This is a [[:Category:Beginner pages|beginner page]].''' {{#if: {{{header|}}}|{{{header}}}|It is written to allow new readers to learn about the basics of the topic easily.}}{{#switch: {{{footer|empty}}}|noexpert=<br>No corresponding expert page currently exists for this topic.|expert=<br>The corresponding expert page for this topic is [[{{{footer}}}]].|empty=}}}}
<includeonly>{{Mbox|type=notice|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: {{{1|}}}|{{#ifeq: {{{1|}}}|noexpert|<br>No corresponding expert page currently exists for this topic.|<br>The corresponding expert page for this topic is [[{{{1|}}}]].|}}}}}}
[[Category:Beginner pages]]</includeonly><noinclude>
[[Category:Beginner pages]]</includeonly><noinclude>
The '''Beginner''' template adds a [[Template:Mbox|message box]] to inform readers of pages targeted towards a beginner audience. If a corresponding expert page exists, it may also be presented in that box. It also places the page in [[:Category:Beginner pages]].
The '''Beginner''' template adds a [[Template:Mbox|message box]] to inform readers of pages targeted towards a beginner audience. If a corresponding expert page exists, it may also be presented in that box. It also places the page in [[:Category:Beginner pages]].
Line 6: Line 6:
This template should be placed at the top of the page, with a single unnamed argument that indicates the corresponding expert page.
This template should be placed at the top of the page, with a single unnamed argument that indicates the corresponding expert page.


For example, the "[[Regular temperament]]" page has the template added in this form:
For example, on the "[[Regular temperament]]" page, you could add the template like this:


: <code><nowiki>{{Beginner|Mathematical theory of regular temperaments}}</nowiki></code>
: <code><nowiki>{{Beginner|Mathematical theory of regular temperaments}}</nowiki></code>
Line 14: Line 14:
{{Mbox|type=notice|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.<br>The corresponding expert page for this topic is [[Mathematical theory of regular temperaments]].}}
{{Mbox|type=notice|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.<br>The corresponding expert page for this topic is [[Mathematical theory of regular temperaments]].}}


Using the template without providing an argument (<code><nowiki>{{Beginner}}</nowiki></code>) will produce:
Using the template without providing an argument will produce:


{{Mbox|type=notice|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.}}
{{Mbox|type=notice|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.}}


Passing <code>noexpert</code> as the first argument (<code><nowiki>{{Beginner|noexpert}}</nowiki></code>) will produce:
Passing <code>noexpert</code> as the first argument will produce:


{{Mbox|type=notice|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.<br>No corresponding expert page currently exists for this topic.}}
{{Mbox|type=notice|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.<br>No corresponding expert page currently exists for this topic.}}
The second argument can be used to add onto the top line of the template. For example,


== See also ==
== See also ==
Line 28: Line 26:


[[Category:Message boxes]]
[[Category:Message boxes]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 12:27, 9 May 2024

The Beginner template adds a message box to inform readers of pages targeted towards a beginner audience. If a corresponding expert page exists, it may also be presented in that box. It also places the page in Category:Beginner pages.

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