Difference between revisions of "Template:Badge"
From Flexible Survival
m (Added some text to balance the blank space when no notes are defined.) |
|||
(20 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
|- | |- | ||
| style="text-align:right;vertical-align:top;border-right:1px solid #a2a9b1;padding:0 0.3em 0.5em 0.3em" | '''Description''' || style="padding:0 0.3em 0.5em 0.3em;vertical-align:top" | {{#if: {{{Description|}}} | {{{Description}}} | Unknown/Unspecified}} | | style="text-align:right;vertical-align:top;border-right:1px solid #a2a9b1;padding:0 0.3em 0.5em 0.3em" | '''Description''' || style="padding:0 0.3em 0.5em 0.3em;vertical-align:top" | {{#if: {{{Description|}}} | {{{Description}}} | Unknown/Unspecified}} | ||
+ | |- | ||
+ | | style="text-align:right;vertical-align:top;border-right:1px solid #a2a9b1;padding:0 0.3em 0.5em 0.3em" | || style="padding:0 0.3em 0.5em 0.3em;vertical-align:top;text-align:center" | [[File:{{#ifexist: File:Badge_{{lc:{{PAGENAME}}}}.png | Badge_{{lc:{{PAGENAME}}}}.png | Badge_no_image.png}}|frameless|200px|{{PAGENAME}} icon]] | ||
|} | |} | ||
</div> | </div> | ||
− | {{:{{{ | + | {{#ifexist: :{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes | |
− | [{{fullurl:{{{ | + | {{:{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes}} |
+ | <div style="text-align:right;width:100%"> | ||
+ | [{{fullurl:{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes|action=edit}} Edit notes] | ||
+ | </div> | | ||
+ | No additional notes on file for this subject. | ||
+ | <div style="text-align:right;width:100%"> | ||
+ | [{{fullurl:{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes|action=edit}} Add notes] | ||
+ | </div>}} | ||
− | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
A template for badges in the multiplayer MUCK. | A template for badges in the multiplayer MUCK. | ||
Line 22: | Line 30: | ||
</pre> | </pre> | ||
− | Note that the badge pages are | + | Note that the badge pages are automatically generated from this template, so don't edit the badge pages themselves. If you have additional information to add such as how to obtain the badge, some background information, an amusing pun about the name, etc, it should be added to the 'Extra Notes' subpage using the ''Add Notes'' or ''Edit Notes'' link. That won't be overwritten automatically, and is included in the page when viewed. |
== Example == | == Example == | ||
Line 30: | Line 38: | ||
}} | }} | ||
− | + | ''The contents of the Extra Notes subpage will appear here, with the edit link below them.'' | |
− | |||
− | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 05:00, 2 November 2018
A template for badges in the multiplayer MUCK.
Usage
{{Badge | Name = <name of badge (will default to pagename if not specified)> | Description = <description of badge> }}
Note that the badge pages are automatically generated from this template, so don't edit the badge pages themselves. If you have additional information to add such as how to obtain the badge, some background information, an amusing pun about the name, etc, it should be added to the 'Extra Notes' subpage using the Add Notes or Edit Notes link. That won't be overwritten automatically, and is included in the page when viewed.
Example
Name | Systematic Documenter |
Description | You've edited the wiki! Congratulations on being helpful, or perhaps unhelpful, depending on what you changed. |
No additional notes on file for this subject.
The contents of the Extra Notes subpage will appear here, with the edit link below them.