Template:Example: Difference between revisions

From Gaffer Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
{{#if: {{{description |}}} | {{{description |}}} | [[Category:Examples without descriptions]]}}
{{#if: {{{description |}}} | {{{description |}}} | [[Category:Examples without descriptions]]}}


== Screenshots ==
{{#if: {{{screenshots |}}} | [[File:{{{screenshots}}}|300px|thumb|alt={{PAGENAME}} image]] | [[Category:Examples without images]]}}  
{{#if: {{{screenshots |}}} | [[File:{{{screenshots}}}|link=|300px|thumb|alt={{PAGENAME}} image]] | [[Category:Examples without images]]}}  


== Featured Nodes ==
== Featured Nodes ==
{{#if: {{{nodes |}}} | {{#arraymap:{{{nodes|}}}|,|x|{{#formredlink:form=node|target=x}} }} | [[Category:Examples without featured nodes]]}}
{{#if: {{{nodes |}}} | {{#arraymap:{{{nodes|}}}|,|x|{{#formredlink:form=node|target=x}} }} | [[Category:Examples without featured nodes]]}}


== Script ==
== File ==
{{#if: {{{file |}}} | Download: [[Media:{{{file |}}}|{{{file |}}}]] | [[Category:Examples without files]] }}
{{#if: {{{file |}}} | Download: [[Media:{{{file |}}}|{{{file |}}}]] | [[Category:Examples without files]] }}


{{#arraymap:{{{categories|}}}|,|x|[[Category:Examples:x]]|\s}}
{{#arraymap:{{{categories|}}}|,|@@|[[Category:Examples:@@]]|\s}}
[[Category:Examples]]
[[Category:Examples]]
</includeonly>
</includeonly>
__NOTOC__
__NOTOC__

Latest revision as of 19:40, 12 June 2024

This is the "Example" template.

It should be called in the following format:

{{Example
|description=
|nodes=
|file=
|screenshots=
|categories=
}}

Edit the page to see the template text.

This template defines the table "Examples". View table.