Template:Expert/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
don't overcomplicate code as it makes it unreadable in source view; substitute templates to keep documentation from being categorized under expert pages
Line 5: Line 5:
For example, on the "[[Mathematical theory of regular temperaments]]" page, you could add the template like this:
For example, on the "[[Mathematical theory of regular temperaments]]" page, you could add the template like this:


: <code>{{((}}Expert{{pipe}}Mathematical theory of regular temperaments{{))}}</code>
: <code><nowiki>{{Expert|Mathematical theory of regular temperaments}}</nowiki></code>


to obtain:
to obtain:


{{{{ROOTPAGENAME}}|Mathematical theory of regular temperaments}}
{{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: Mathematical theory of regular temperaments|{{#ifeq: Mathematical theory of regular temperaments|nobeginner|<br />No corresponding beginner page currently exists for this topic.|<br />The corresponding beginner page for this topic is [[Mathematical theory of regular temperaments]].|}}}}
}}
[[Category:Expert pages]]


Using the template without providing an argument will produce:
Using the template without providing an argument will produce:


{{{{ROOTPAGENAME}} }}
{{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: |{{#ifeq: |nobeginner|<br />No corresponding beginner page currently exists for this topic.|<br />The corresponding beginner page for this topic is [[]].|}}}}
}}
[[Category:Expert pages]]


Passing <code>nobeginner</code> as the first argument will produce:
Passing <code>nobeginner</code> as the first argument will produce:


{{{{ROOTPAGENAME}}|nobeginner}}
{{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: nobeginner|{{#ifeq: nobeginner|nobeginner|<br />No corresponding beginner page currently exists for this topic.|<br />The corresponding beginner page for this topic is [[nobeginner]].|}}}}
}}
[[Category:Expert pages]]


=== See also ===
=== See also ===
* [[Template:Beginner]]
* [[Template:Beginner]]
* [[Template:Technical data]]
* [[Template:Technical data]]

Revision as of 08:20, 19 September 2024

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:

{{Expert|Mathematical theory of regular temperaments}}

to obtain:

This is an expert page. It is written to allow experienced readers to learn more about the advanced elements of the topic.
The corresponding beginner page for this topic is Mathematical theory of regular temperaments.

Using the template without providing an argument will produce:

This is an expert page. It is written to allow experienced readers to learn more about the advanced elements of the topic.

Passing nobeginner as the first argument will produce:

This is an expert page. It is written to allow experienced readers to learn more about the advanced elements of the topic.
No corresponding beginner page currently exists for this topic.

See also