Template:Beginner: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(11 intermediate revisions by 2 users not shown)
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.}}{{#if: {{{footer|}}}|{{#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
[[Category:Beginner pages]]</includeonly><noinclude>
| type=notice
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]].
| 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: {{{1|}}}|{{#ifeq: {{{1|}}}|noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[{{{1|}}}]].|}}}}
== Usage ==
}}</includeonly>{{#ifeq: {{lc: {{ARTICLEROOTPAGENAME}}}}|template:beginner||[[Category:Beginner pages]]}}<noinclude>
This template should be placed at the top of the page, with a single unnamed argument that indicates the corresponding expert page.
{{documentation}}
 
For example, the "[[Regular temperament]]" page has the template added in this form:
 
: <code><nowiki>{{Beginner|Mathematical theory of regular temperaments}}</nowiki></code>
 
to obtain:
 
{{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:
 
{{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:
 
{{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 ==
* [[Template:Expert]]


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

Latest revision as of 15:41, 7 July 2025

Template documentation[view] [edit] [history] [purge]
This template should not be substituted.

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