Template:Beginner/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
don't overcomplicate code as it makes it unreadable in source view; substitute templates to keep documentation from being categorized under beginner pages |
||
Line 5: | Line 5: | ||
For example, on the "[[Regular temperament]]" page, you could add the template like this: | For example, on the "[[Regular temperament]]" page, you could add the template like this: | ||
: <code>{{ | : <code><nowiki>{{Beginner|Mathematical theory of regular temperaments}}</nowiki></code> | ||
to obtain: | to obtain: | ||
{{{{ | {{Mbox | ||
| type=notice | |||
| 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: Mathematical theory of regular temperaments|{{#ifeq: Mathematical theory of regular temperaments|noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[Mathematical theory of regular temperaments]].|}}}} | |||
}} | |||
[[Category:Beginner pages]] | |||
Using the template without providing an argument will produce: | Using the template without providing an argument will produce: | ||
{{{{ | {{Mbox | ||
| type=notice | |||
| 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: |{{#ifeq: |noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[]].|}}}} | |||
}} | |||
[[Category:Beginner pages]] | |||
Passing <code>noexpert</code> as the first argument will produce: | Passing <code>noexpert</code> as the first argument will produce: | ||
{{{{ | {{Mbox | ||
| type=notice | |||
| 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: noexpert|{{#ifeq: noexpert|noexpert|<br />No corresponding expert page currently exists for this topic.|<br />The corresponding expert page for this topic is [[noexpert]].|}}}} | |||
}} | |||
[[Category:Beginner pages]] | |||
=== See also === | === See also === | ||
* [[Template:Expert]] | * [[Template:Expert]] | ||
* [[Template:Technical data]] | * [[Template:Technical data]] |