Template:Videogallery: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>Duskey
mNo edit summary
m (21 revisions imported: Import from https://sims.wikia.com)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{tm|{{Under construction}}}}</noinclude>
<noinclude>{{tm|{{Experimental}}}}</noinclude>
<!-- EXPERIMENTAL VIDEOGALLERY - Please read directions on Template:Videogallery -->
{|border=1
{|
|
|


[[{{{1}}}{{!}}thumb{{!}}{{{widths}}}{{!}}{{{1text}}}]]
[[{{{1}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{1text<includeonly>|</includeonly>}}}|{{!}}{{{1text}}}}}]]
{{#ifeq:{{{columns}}}|1|{{!}}-}}
{{!}}
{{#if:{{{2<includeonly>|</includeonly>}}}|{{!}}


[[{{{2}}}{{!}}thumb{{!}}{{{widths}}}{{!}}{{{2text}}}]]
[[{{{2}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{2text<includeonly>|</includeonly>}}}|{{!}}{{{2text}}}}}]]}}
{{#switch:{{{columns}}}|1={{!}}-|2={{!}}-}}
{{#if:{{{3<includeonly>|</includeonly>}}}|{{!}}


[[{{{3}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{3text<includeonly>|</includeonly>}}}|{{!}}{{{3text}}}}}]]}}
{{!}}
[[{{{3}}}{{!}}thumb{{!}}{{{widths}}}{{!}}{{{3text}}}]]
{{#switch:{{{columns}}}|1={{!}}-|3={{!}}-}}
{{#if:{{{4<includeonly>|</includeonly>}}}|{{!}}
{{!}}}<noinclude>

{{Documentation}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[{{{4}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{4text<includeonly>|</includeonly>}}}|{{!}}{{{4text}}}}}]]}}
{{#switch:{{{columns}}}|1={{!}}-|2={{!}}-|4={{!}}-}}
{{#if:{{{5<includeonly>|</includeonly>}}}|{{!}}

[[{{{5}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{5text<includeonly>|</includeonly>}}}|{{!}}{{{5text}}}}}]]}}
{{#ifeq:{{{columns}}}|1|{{!}}-}}
{{#if:{{{6<includeonly>|</includeonly>}}}|{{!}}

[[{{{6}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{6text<includeonly>|</includeonly>}}}|{{!}}{{{6text}}}}}]]}}
{{#switch:{{{columns}}}|1={{!}}-|2={{!}}-|3={{!}}-}}
{{#if:{{{7<includeonly>|</includeonly>}}}|{{!}}

[[{{{7}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{7text<includeonly>|</includeonly>}}}|{{!}}{{{7text}}}}}]]}}
{{#ifeq:{{{columns}}}|1|{{!}}-}}
{{#if:{{{8<includeonly>|</includeonly>}}}|{{!}}

[[{{{8}}}|thumb{{#if:{{{widths<includeonly>|</includeonly>}}}|{{!}}{{{widths}}}}}{{#if:{{{8text<includeonly>|</includeonly>}}}|{{!}}{{{8text}}}}}]]}}
|}<noinclude>
{{Documentation}}[[Category:General wiki templates|{{PAGENAME}}]]


{{tsw template}}
</noinclude>

Latest revision as of 23:57, 23 February 2019

Experimental template
This template is nearing completion and have been implemented on a few articles as a test. Please do not add it to additional articles. See where it is being tested.



[[{{{1}}}|thumb|{{{widths}}}|{{{1text}}}]]

[[{{{2}}}|thumb|{{{widths}}}|{{{2text}}}]]

[[{{{3}}}|thumb|{{{widths}}}|{{{3text}}}]]

[[{{{4}}}|thumb|{{{widths}}}|{{{4text}}}]]

[[{{{5}}}|thumb|{{{widths}}}|{{{5text}}}]]

[[{{{6}}}|thumb|{{{widths}}}|{{{6text}}}]]

[[{{{7}}}|thumb|{{{widths}}}|{{{7text}}}]]

[[{{{8}}}|thumb|{{{widths}}}|{{{8text}}}]]

Template documentation (View · Edit · History · Purge)
Under construction
This template is under construction and it's not quite stable, please use with caution.
Description
An alternative to <video gallery> which cannot be customized.
Syntax
There's room for 8 videos and columns goes from 1 to 4.
{{Videogallery
|widths=250px
|columns=4
|Video:Your vid 1 here|1text=Your text 1 here.
|Video:Your vid 2 here|2text=Your text 2 here.}}
Usage
This template is quite picky, you have to end each video entry with either the thumbnail text or the next video, eg:
{{Videogallery
|Video:Your vid 1 here|1text=Your text 1 here.
|Video:Your vid 2 here|Video:Your vid 3 here}}
The end }} must also be on the same line as the last entry.

Visit Template:Videogallery/doc to edit this text! (How does this work?) (Refresh this text - why?)


This template was originally created at The Sims Wiki under the CC-BY-SA license.
If you wish to copy this template to your wiki, please click here to include this template.