APL Wiki:Formatting: Difference between revisions
Jump to navigation
Jump to search
→Mentioning subjects that have their own page
Miraheze>Adám Brudzewsky m (→Equivalence) |
Miraheze>Adám Brudzewsky |
||
Line 7: | Line 7: | ||
== Mentioning subjects that have their own page == | == Mentioning subjects that have their own page == | ||
It is fine for a page to have a section about a subject that also has its own page. When that happens, begin the section with <code><nowiki>{{Main|subject}}</nowiki></code> where <code>subject</code> is the target page title. Don't include double brackets (as a page link) — it is done for you. | It is fine for a page to have a section about a subject that also has its own page. When that happens, begin the section with <code><nowiki>{{Main|subject}}</nowiki></code> where <code>subject</code> is the target page title. Don't include double brackets (as a page link) — it is done for you. | ||
== Yes/No tables == | |||
For tables comparison tables, use the <code><nowiki>{{Yes}}</nowiki></code>, <code><nowiki>{{No}}</nowiki></code>, and <code><nowiki>{{Maybe}}</nowiki></code> templates, e.g.: | |||
<blockquote><pre> | |||
{| class=wikitable | |||
! Get wet? | |||
| Indoors || Outdoors || Swimming | |||
|- | |||
| Sunshine || {{No}} || {{No}} || {{Yes}} | |||
|- | |||
| Rain || {{No}} || {{Maybe}} || {{Yes}} | |||
|} | |||
</pre></blockquote> | |||
gives: | |||
<blockquote> | |||
{| class=wikitable | |||
! Get wet? | |||
| Indoors || Outdoors || Swimming | |||
|- | |||
| Sunshine || {{No}} || {{No}} || {{Yes}} | |||
|- | |||
| Rain || {{No}} || {{Maybe}} || {{Yes}} | |||
|} | |||
</blockquote> | |||
=== Custom options === | |||
You can customise the text by supplying an argument: | |||
<blockquote><pre> | |||
{| class=wikitable | |||
! Get wet? | |||
| Indoors || Outdoors || Swimming | |||
|- | |||
| Sunshine || {{No}} || {{No|Obviously not}} || {{Yes}} | |||
|- | |||
| Rain || {{No|Depends}} || {{Maybe|Umbrella?}} || {{Yes|Obviously}} | |||
|} | |||
</pre></blockquote> | |||
gives: | |||
<blockquote> | |||
{| class=wikitable | |||
! Get wet? | |||
| Indoors || Outdoors || Swimming | |||
|- | |||
| Sunshine || {{No}} || {{No|Obviously not}} || {{Yes}} | |||
|- | |||
| Rain || {{No|Depends}} || {{Maybe|Umbrella?}} || {{Yes|Obviously}} | |||
|} | |||
</blockquote> | |||
== Inserting code == | == Inserting code == | ||
=== Mathematical notation === | === Mathematical notation === |