Difference between revisions of "Template:Badge"

From Flexible Survival
Jump to: navigation, search
m
m (Added some text to balance the blank space when no notes are defined.)
 
(9 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 style="text-align:center;width:100%">[[File:Badge_{{PAGENAME}}.png|frameless|{{PAGENAME}} icon]]</div>
 
 
</div>
 
</div>
  
 +
{{#ifexist: :{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes |
 
{{:{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes}}
 
{{:{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes}}
 
<div style="text-align:right;width:100%">
 
<div style="text-align:right;width:100%">
 
[{{fullurl:{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes|action=edit}} Edit notes]
 
[{{fullurl:{{#if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}}}}/Extra_Notes|action=edit}} Edit notes]
</div>
+
</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>}}
  
{{#if: {{{NoCategory|}}} | | [[Category:Badges]] }}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
A template for badges in the multiplayer MUCK.
 
A template for badges in the multiplayer MUCK.
Line 25: Line 30:
 
</pre>
 
</pre>
  
Note that the badge pages are (or at least may be) automatically generated, so don't edit 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. That won't be overwritten automatically, and is included in the page when viewed.
+
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 31: Line 36:
 
| Name = Systematic Documenter
 
| Name = Systematic Documenter
 
| Description = You've edited the wiki! Congratulations on being helpful, or perhaps unhelpful, depending on what you changed.
 
| Description = You've edited the wiki! Congratulations on being helpful, or perhaps unhelpful, depending on what you changed.
| NoCategory = true
 
 
}}
 
}}
  
''The contents of the Extra Notes subpage will appear here, with the edit link below them.
+
''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.
Badge icon

No additional notes on file for this subject.


The contents of the Extra Notes subpage will appear here, with the edit link below them.