Difference between revisions of "Template:Dmbox"
From Self-sufficiency
(hardcoded mbox-empty-cell no longer needed.) |
m (25 revisions from wikipedia:Template:Dmbox) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
| setindex = setindexbox | | setindex = setindexbox | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
− | | #default = | + | | #default = disambigbox |
}}" class="metadata plainlinks dmbox | }}" class="metadata plainlinks dmbox | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
Line 28: | Line 28: | ||
}} | }} | ||
</tr> | </tr> | ||
− | </table><!-- Detect and report usage with faulty "type" parameter: | + | </table><!-- |
+ | Detect and report usage with faulty "type" parameter: | ||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
| <!-- No type fed, is also valid input --> | | <!-- No type fed, is also valid input --> | ||
Line 34: | Line 35: | ||
| setindex = <!-- Do nothing, valid "type" --> | | setindex = <!-- Do nothing, valid "type" --> | ||
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
− | }}<!-- | + | }}<!-- |
− | -->{{ | + | Categorization: |
− | + | -->{{#switch:{{{type|}}} | |
− | + | | setindex = | |
− | + | {{cat handler | |
− | + | | main = [[Category:All set index articles]] | |
− | + | | nocat = {{{nocat|}}} <!--So "nocat=true" works--> | |
− | + | | page = {{{page|}}} <!--For testing--> | |
− | | disambig | + | }} |
− | + | | disambig <!-- disambig = default --> | |
− | + | | #default = | |
− | + | {{cat handler | |
− | + | | main = [[Category:All article disambiguation pages]][[Category:All disambiguation pages]] | |
− | + | | template = <!-- Don't categorize on template pages. --> | |
− | + | | other = [[Category:All disambiguation pages]] | |
− | + | | nocat = {{{nocat|}}} <!--So "nocat=true" works--> | |
− | + | | page = {{{page|}}} <!--For testing--> | |
− | }} } | + | }} |
− | + | }}<noinclude> | |
− | --> | + | |
− | + | ||
− | --><noinclude> | + | |
− | {{pp-template | + | {{pp-template}} |
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 19:34, 21 September 2010
30px | {{{text}}} |
[edit]
Documentation