Template:Listing Item/Documentation: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Created page with "==Purpose== {{Hatnote|This template is meant to be used with the Listing Container and Gallery List templates.}} This template is used to encase individual gallery lists within flexbox tables. A separate copy of this template should be used for every Gallery List template. ==Usage== {{NoWikiTemp|Normal|Header|Content}} {{Parameter|Header|A header contained within the flexbox container.|...")
 
 
Line 7: Line 7:


{{Parameter|Header|A header contained within the flexbox container.|Optional}}
{{Parameter|Header|A header contained within the flexbox container.|Optional}}
{{Parameter|perrow|A method to display a maximum of N cells in the Gallery List template per row. This is semi-analogous to the perrow function in gallery tags, but only sets a max-width to allow the specified number of cells to appear before wrapping. This will only affect the specific template use and will not affect all Listing Items inside a Container. Only numbers 1 to 4 are currently supported, and no max-width will be set if any other numbers are used. This defaults to <code>2</code>.|Optional}}
{{Parameter|Content|The body content displayed within the container.}}
{{Parameter|Content|The body content displayed within the container.}}


An example of how it would be used is as follows:
An example of how it would be used is as follows:
{{Tabs
|default= 1
|tab1= Default
|content1=
<pre>
<pre>
{{Listing Container|
{{Listing Container|
{{Listing Item|header= |content=  
{{Listing Item|header= |content=  
{{Gallery List|
{{Gallery List|
  |GAME=
  |GAME=  
}}
}}
}}
}}
Line 20: Line 25:
{{Listing Item|header= |content=  
{{Listing Item|header= |content=  
{{Gallery List|
{{Gallery List|
  |GAME=
  |GAME=  
}}
}}
}}
}}
}}
}}
</pre>
</pre>
|tab2= Custom perrow use
|content2=
<pre>
{{Listing Container|
{{Listing Item|perrow= |header= |content=
{{Gallery List|
|GAME=
}}
}}
{{Listing Item|perrow= |header= |content=
{{Gallery List|
|GAME=
}}
}}
}}
</pre>
}}


{{Documentation Footer}}
{{Documentation Footer}}

Latest revision as of 07:33, 21 March 2024

Purpose

This template is meant to be used with the Listing Container and Gallery List templates.

This template is used to encase individual gallery lists within flexbox tables. A separate copy of this template should be used for every Gallery List template.

Usage

    {{Listing Item/Documentation|Header |Content }}

  • Header — A header contained within the flexbox container.
  • perrow — A method to display a maximum of N cells in the Gallery List template per row. This is semi-analogous to the perrow function in gallery tags, but only sets a max-width to allow the specified number of cells to appear before wrapping. This will only affect the specific template use and will not affect all Listing Items inside a Container. Only numbers 1 to 4 are currently supported, and no max-width will be set if any other numbers are used. This defaults to 2.
  • Content — The body content displayed within the container.

An example of how it would be used is as follows:

DefaultCustom perrow use
{{Listing Container|
{{Listing Item|header= |content= 
{{Gallery List|
 |GAME= 
}}
}}

{{Listing Item|header= |content= 
{{Gallery List|
 |GAME= 
}}
}}
}}
{{Listing Container|
{{Listing Item|perrow= |header= |content= 
{{Gallery List|
 |GAME= 
}}
}}

{{Listing Item|perrow= |header= |content= 
{{Gallery List|
 |GAME= 
}}
}}
}}
This is the documentation page, it should be transcluded into the main template page. See here for more information.