Difference between revisions of "Template:Death by"
Jump to navigation
Jump to search
Morbus Iff (talk | contribs) |
Morbus Iff (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><!-- | + | <includeonly><!-- The lack of whitespace, and the nowiki tags, are to workaround crazy display bugs involving lack of, or too many, whitespaces in the output. This, of course, makes it nearly impossible to understand or edit without re-formatting it in a text-editor. --><nowiki></nowiki>{{#ifeq: {{NAMESPACE}} | File | [[Category:Death by]] | }}{{#if: {{{1|}}} | [[Category:Death by {{{1}}}]]{{#ifeq: {{{display|1}}} | 1 | {{#ifeq: {{{lower|0}}} | 0 | [[:Category:Death by {{{1}}}|{{#ifeq: {{{prefix|0}}} | 1 | Death by | }} {{{1}}}]] | [[:Category:Death by {{{1}}}|{{#ifeq: {{{prefix|0}}} | 1 | death by | }}{{{1}}}]]}}}}}}{{#if: {{{2|}}} | [[Category:Death by {{{2}}}]]{{#ifeq: {{{display|1}}} | 1 | , [[:Category:Death by {{{2}}}|{{{2}}}]]}}}}{{#if: {{{3|}}} | [[Category:Death by {{{3}}}]]{{#ifeq: {{{display|1}}} | 1 | , [[:Category:Death by {{{3}}}|{{{3}}}]]}}}}{{#if: {{{4|}}} | [[Category:Death by {{{4}}}]]{{#ifeq: {{{display|1}}} | 1 | , [[:Category:Death by {{{4}}}|{{{4}}}]]}}}}{{#if: {{{5|}}} | [[Category:Death by {{{5}}}]]{{#ifeq: {{{display|1}}} | 1 | , [[:Category:Death by {{{5}}}|{{{5}}}]]}}}}</includeonly><noinclude> |
This template handles categorization of a single death with up to five categories. | This template handles categorization of a single death with up to five categories. | ||
− | + | <br />For further discussion about death by category and usage, see [[Death and sleaze guidelines|the guidelines]]. | |
− | <br />For further discussion about death by category and usage, see [[ | ||
==Usage== | ==Usage== |
Latest revision as of 10:04, 3 July 2014
This template handles categorization of a single death with up to five categories.
For further discussion about death by category and usage, see the guidelines.
Usage
{{Death by|axe}} {{Death by|vampire|midget|lower=1}} {{Death by|mutant|mutilation|decapitation|display=0}}
Parameters
Note: * denotes required fields.
Parameter | Explanation |
---|---|
1 to 5 * | Insert one to five categories describing this death; only one is required. |
lower | Optional; whether to show "death by mutant" instead of "Death by mutant". |
display | Optional; whether to display any text at all (ie., categorization only). |
prefix | Optional; whether to preface the categories with "Death by". |
Examples
Type the following... | to get this: |
---|---|
{{Death by|axe|}}
|
axe |
{{Death by|axe|prefix=1}}
|
Death by axe |
{{Death by|vampire|spear|prefix=1|lower=1}}
|
death by vampire, spear |
{{Death by mutant|mutilation|decapitation|display=0}}
|
No output because display is disabled. |