Template:Videos by Character Gallery: Difference between revisions

Jump to navigation Jump to search
Adapted from Petit Planet Wiki, credits to Stevium
 
Adjusted to be similar to the regular gallery template (will need to add extra params in the future)
Line 2: Line 2:
|namespace = File
|namespace = File
|uses      = Template:File/Video
|uses      = Template:File/Video
|category  = Files by Date<&>{{{1|{{ROOTPAGENAME}}}}} Videos{{#if:{{{categories|}}}|<&>{{{categories}}}}}
|category  = {{{1|{{ROOTPAGENAME}}}}}
|category  = Files by Date<&>{{{character|{{ROOTPAGENAME}}}}} Videos
|include  = {File/Video}:slink1,{File/Video}:caption
|include  = {File/Video}:slink1,{File/Video}:caption
|listseparators  = <div style="display:flex; gap:8px; flex-wrap:wrap;">,,,</div>
|listseparators  = <div style="display:flex; gap:8px; flex-wrap:wrap;">,,,</div>
|secseparators  = ²{#ev:youtube¦,¦dimensions=224,¦description=,}²
|secseparators  = ²{#ev:youtube¦,¦dimensions=224,¦description=,}²
|noresultsheader = ''{{{1|{{ROOTPAGENAME}}}}} does not have any videos for the matching category.''
|noresultsheader = ''{{{character|{{ROOTPAGENAME}}}}} does not have any videos for the matching category.''
}}</includeonly><noinclude>{{Documentation|type=DPL Gallery|content=
}}</includeonly><noinclude>{{Documentation|type=DPL Gallery|content=
==Syntax==
==Syntax==
Line 13: Line 14:
</pre>
</pre>
This template has 1 unnamed parameter:
This template has 1 unnamed parameter:
* <code>1</code> &ndash; [[Character]] or [[Anima]]
* <code>1</code> &ndash; categories
* <code>categories</code> &ndash; Additional categories
* <code>character</code> &ndash; [[Character]] or [[Anima]]


==Example==
==Example==
<pre>
<pre>
{{Videos by Character Gallery|Donubi}}
{{Videos by Character Gallery|Official Video|character=Donubi}}
</pre>
</pre>
{{Videos by Character Gallery|Donubi}}
{{Videos by Character Gallery|Official Videos|character=Donubi}}


}}</noinclude>
}}</noinclude>