Template:Expert: Difference between revisions

Fredg999 (talk | contribs)
Created page with "<includeonly>{{Mbox|type=notice|text='''This is an expert page.''' It is written to allow experienced readers to learn more about the advanced eleme..."
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{Mbox|type=notice|text='''This is an [[:Category:Expert pages|expert page]].''' It is written to allow experienced readers to learn more about the advanced elements of the topic.
<includeonly>{{Mbox
| type = notice
| icon = Icon-Expert.png
| text = '''This is an [[:Category:Expert pages|expert page]].''' It is written to allow experienced readers to learn more about the advanced elements of the topic.{{#if: {{{1|}}}|{{#ifeq: {{{1|}}}|nobeginner|<br />No corresponding beginner page currently exists for this topic.|<br />The corresponding beginner page for this topic is [[{{{1|}}}]].|}}}}
}}{{#ifeq: {{lc: {{ARTICLEROOTPAGENAME}}}}|template:expert||[[Category:Expert pages]]}}</includeonly><noinclude>
{{documentation}}


{{#if: {{{1|}}} | The corresponding beginner page for this topic is [[{{{1|}}}]] | No corresponding beginner page currently exists for this topic.}}}}
[[Category:Message boxes]]
[[Category:Expert pages]]</includeonly><noinclude>
The '''Expert''' template adds a [[Template:Mbox|message box]] to inform readers of pages targeted towards an expert audience. If a corresponding beginner page exists, it may also be presented in that box. It also places the page in [[:Category:Expert pages]].
 
== Usage ==
This template should be placed at the top of the page, with a single unnamed argument that indicates the corresponding beginner page.
 
For example, on the "[[Mathematical theory of regular temperaments]]" page, you could add the template like this:
 
: <code><nowiki>{{Expert|Regular temperament}}</nowiki></code>
 
to obtain:
 
{{Mbox|type=notice|text='''This is an [[:Category:Expert pages|expert page]].''' It is written to allow new readers to learn about the basics of the topic easily.
 
The corresponding beginner page for this topic is [[Regular temperament]].}}
 
Using the template without providing an argument will produce:
 
{{Mbox|type=notice|text='''This is an [[:Category:Expert pages|expert page]].''' It is written to allow new readers to learn about the basics of the topic easily.
 
No corresponding beginner page currently exists for this topic.}}
 
[[Category:Templates]]
</noinclude>
</noinclude>