Difference between revisions of "Template:Documentation"
Jump to navigation
Jump to search
en>Wargo |
meta>Verdy p m (some doc pages need a few parameters (e.g. for feeding categories in their includeonly section, or for the actual template name to document)) |
||
Line 1: | Line 1: | ||
− | + | {{documentation/core2 | |
− | + | | heading = {{{heading|¬}}}<!--defined and empty means no header--> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | heading = {{{heading|¬}}}<!-- | ||
| heading-style = {{{heading-style|}}} | | heading-style = {{{heading-style|}}} | ||
+ | | link box = {{{link box|}}} <!--So "link box=off" works--> | ||
+ | | template page = | ||
+ | <!--The namespace is added in /core2--> | ||
+ | {{#switch: {{SUBPAGENAME}} | ||
+ | | sandbox | ||
+ | | testcases = {{BASEPAGENAME}} | ||
+ | | #default = {{PAGENAME}} | ||
+ | }} | ||
+ | | docspace = | ||
+ | <!--Some namespaces must have the /doc, /sandbox and /testcases in talk space--> | ||
+ | {{#switch: {{SUBJECTSPACE}} | ||
+ | | {{ns:0}} | ||
+ | | {{ns:File}} | ||
+ | | {{ns:MediaWiki}} | ||
+ | | {{ns:Category}} = {{TALKSPACE}} | ||
+ | | #default = {{SUBJECTSPACE}} | ||
+ | }} | ||
| content = {{{content|}}} | | content = {{{content|}}} | ||
− | + | | 1 = {{{1|}}} <!--Other docname, if fed--> | |
− | | 1 = {{{1|}}}<!-- Other docname, if fed --> | + | | {{#if: {{{2|}}} | 2 | <!--dummy--> }} = {{{2|}}} <!--Other parameters for doc page, if fed--> |
− | | | + | | {{#if: {{{3|}}} | 3 | <!--dummy--> }} = {{{3|}}} <!--Other parameters for doc page, if fed--> |
− | | | + | | {{#if: {{{4|}}} | 4 | <!--dummy--> }} = {{{4|}}} <!--Other parameters for doc page, if fed--> |
− | }}<!-- | + | }}<noinclude> |
− | + | <!-- Add categories and interwikis to the /doc subpage, not here! ??? --> | |
− | |||
− | |||
− | --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}<!-- | ||
− | |||
− | |||
− | |||
− | --> | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |