Template:Beginner: Difference between revisions

Fredg999 category edits (talk | contribs)
m Removing from Category:Templates using Cat-a-lot
ArrowHead294 (talk | contribs)
mNo edit summary
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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.
<includeonly>{{Mbox
 
| type=notice
{{#if: {{{1|}}} | The corresponding expert page for this topic is [[{{{1|}}}]]. | No corresponding expert page currently exists for this topic.}}}}
| icon=Icon-Beginner.png
[[Category:Beginner pages]]</includeonly><noinclude>
| 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|}}}]].|}}}}
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]].
}}</includeonly>{{#ifeq: {{lc: {{ARTICLEROOTPAGENAME}}}}|template:beginner||[[Category:Beginner pages]]}}<noinclude>
 
{{documentation}}
== 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:
 
: <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.
 
The corresponding expert page for this topic is [[Mathematical theory of regular temperaments]].}}
 
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.
 
No corresponding expert page currently exists for this topic.}}
 
== See also ==
* [[Template:Expert]]


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