Template:Guide: Difference between revisions

From VNDev Wiki
adding logic for requesting/not requesting community contributions
Remove the text "It is written & maintained primarily by" when no author is provided.
Line 5: Line 5:
| image = [[Image:Star.png|none|alt=|link=|{{#ifeq:{{{small|}}}|yes|30px|40px}}]]
| image = [[Image:Star.png|none|alt=|link=|{{#ifeq:{{{small|}}}|yes|30px|40px}}]]
| text  =
| text  =
This page is '''community guidance'''. It is written & maintained primarily by {{#if:{{{1|{{{author|}}}}}} | '''{{{1|{{{author}}}}}}''' | '''an unknown author'''}}. {{#ifeq:{{{contrib|Yes}}}|Yes| Community contributions are welcome - feel free to add to or change this Guide. | Community contributions were not requested - please discuss on the talk page before editing this Guide.}}<br/>This guide may contain information or advice that is not valid, safe, or suitable for your needs. Please exercise caution.<br/>For more, see our [[VNDev Wiki:Community Guidance|Community Guidance Info Page]].
This page is '''community guidance'''. {{#if:{{{1|{{{author|}}}}}} | It is written & maintained primarily by '''{{{1|{{{author}}}}}}''' |}}. {{#ifeq:{{{contrib|Yes}}}|Yes| Community contributions are welcome - feel free to add to or change this Guide. | Community contributions were not requested - please discuss on the talk page before editing this Guide.}}<br/>This guide may contain information or advice that is not valid, safe, or suitable for your needs. Please exercise caution.<br/>For more, see our [[VNDev Wiki:Community Guidance|Community Guidance Info Page]].


| cat  = Guides
| cat  = Guides

Revision as of 16:55, 31 October 2024

Documentation icon Template documentation [view] [edit] [purge]

Usage

Add this template to the top of all Guides in the following way:

{{Guide|author=Bob}}
or
{{Guide|Bob}}

The author need not be a VNDev Wiki username. If you choose, you can link a specific user like so:
{{Guide|[[User:Bob|Bob]]}}

If the creator of the guide does not wish to claim ownership of it, an author can be omitted: {{Guide}}

By default, community contributions are welcomed for Guides. If you do not want others to expand or change your guide without asking you, use the following syntax: {{Guide|Bob|contrib=No}}