Template:Example: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
{{#cargo_declare:_table=Examples|description=Text|nodes=List (,) of Page|file=File|screenshots=List (,) of File|categories=List (,) of String}} | {{#cargo_declare:_table=Examples|description=Text|nodes=List (,) of Page|file=File|screenshots=List (,) of File|categories=List (,) of String}} | ||
</noinclude><includeonly>{{#cargo_store:_table=Examples}} | </noinclude><includeonly>{{#cargo_store:_table=Examples}} | ||
{{# | == Description == | ||
{{#if: {{{description |}}} | {{{description |}}} | [[Category:Examples without descriptions]]}} | |||
== Featured Nodes == | |||
{{#if: {{{nodes |}}} | {{#arraymap:{{{nodes|}}}|,|x|{{#formredlink:form=node|target=x}} }} | [[Category:Examples without featured nodes]]}} | |||
== Script == | |||
{{#if: {{{file |}}} | Download: [[Media:{{{file |}}}|{{{file |}}}]] | [[Category:Examples without files]] }} | |||
{{#arraymap:{{{categories|}}}|,|x|[[Category:Examples:x]]|\s}} | {{#arraymap:{{{categories|}}}|,|x|[[Category:Examples:x]]|\s}} | ||
[[Category:Examples]] | [[Category:Examples]] | ||
</includeonly> | </includeonly> |
Revision as of 23:34, 22 November 2023
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.