Template:SUBJECTSPACE formatted: Difference between revisions
From TibiaCraft
Jump to navigationJump to search
Created page with "{{documentation header}} <!-- Documentation here --> === Usage === This template returns a descriptor for the SUBJECTSPACE formatted for inclusion in a sentence of text. It applies the correct capitalization for midsentence appearance, returns "article" if the subjectspace is any of the content namespaces, and adds "page" if grammatically correct. <includeonly> <!-- Template categories/interwiki here --> </includeonly> <noinclude> <!-- Documentation categories/interwiki..." |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ | {{#switch: {{SUBJECTSPACE}} | ||
| {{ns:0}} | {{ns:10000}} | {{ns:10002}} | {{ns:10004}} | {{ns:10006}} | {{ns:10012}} = article | |||
== | | {{ns:4}} = Minecraft Wiki page | ||
| {{ns:2}} | {{ns:12}} | {{ns:10010}} = {{lc:{{SUBJECTSPACE}}}} page | |||
| #default = {{lc:{{SUBJECTSPACE}}}} | |||
}}<noinclude> | |||
{{Documentation}} | |||
<noinclude> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 18:46, 4 October 2025
template
Usage
This template returns a descriptor for the SUBJECTSPACE formatted for inclusion in a sentence of text. It applies the correct capitalization for midsentence appearance, returns "article" if the subjectspace is any of the content namespaces, and adds "page" if grammatically correct.
[view] [edit] [history] [purge]The above documentation is transcluded from Template:SUBJECTSPACE formatted/doc.