Difference between revisions of "Template:Flex columns/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Evad37
(example copied from Wikipedia:WikiProject Portals/Components)
 
imported>Evad37
(try a 3-column layout)
Line 3: Line 3:
 
{{Flex columns
 
{{Flex columns
  
|1=<!-- LEFT COLUMN -->
+
|1=<!-- FIRST COLUMN -->
 
{{Box-header colour|EDIT=yes|Selected article}}
 
{{Box-header colour|EDIT=yes|Selected article}}
 
{{tlx|Transclude random excerpt}}
 
{{tlx|Transclude random excerpt}}
Line 20: Line 20:
 
:Same as {{tl|Random slideshow}}, but uses images from specified pages
 
:Same as {{tl|Random slideshow}}, but uses images from specified pages
 
{{Box-footer}}
 
{{Box-footer}}
 +
 +
|2=<!-- SECOND COLUMN -->
 
{{Box-header colour|EDIT=yes|Selected quotation}}
 
{{Box-header colour|EDIT=yes|Selected quotation}}
 
{{tlx|Random quotation}}
 
{{tlx|Random quotation}}
 
:Shows a random quotation, from a specified set of quotations
 
:Shows a random quotation, from a specified set of quotations
 
{{Box-footer}}
 
{{Box-footer}}
 
|2=<!-- SECOND COLUMN -->
 
 
{{Box-header colour|EDIT=yes|In the news}}
 
{{Box-header colour|EDIT=yes|In the news}}
 
{{tlx|Transclude selected current events}}
 
{{tlx|Transclude selected current events}}
Line 32: Line 32:
 
:Imports news from [[Wikinews]].
 
:Imports news from [[Wikinews]].
 
{{Box-footer}}
 
{{Box-footer}}
 +
 +
|3= <!-- THIRD COLUMN -->
 
{{Box-header colour|EDIT=yes|Did you know...}}
 
{{Box-header colour|EDIT=yes|Did you know...}}
 
{{tlx|Transclude selected recent additions}}
 
{{tlx|Transclude selected recent additions}}

Revision as of 17:48, 27 July 2018

Page Template:Flex columns/styles.css has no content.

Selected article

{{Transclude random excerpt}}

Same as {{Transclude lead excerpt}}, but specify multiple sources within the template call for alternating display; or

{{Transclude linked excerpt}}

Same again, but specify multiple sources by linking to them on a separate page or section

Selected anniversary

{{Transclude selected excerpt}}

Shows a specific lead of an article for a specific time.

Selected pictures

{{Random slideshow}}

Shows a slideshow gallery of specified files, in a randomised order

{{Transclude files as random slideshow}}

Same as {{Random slideshow}}, but uses images from specified pages

Selected quotation

{{Random quotation}}

Shows a random quotation, from a specified set of quotations

In the news

{{Transclude selected current events}}

Shows news about a subject from Portal:Current events.

or User:JJMC89 bot/Wikinews importer

Imports news from Wikinews.

Did you know...

{{Transclude selected recent additions}}

Shows Did you know? items for a subject from Wikipedia:Recent additions.

or User:JL-Bot/Project content

Can be customised to show a limited number of DYKs.

Categories

{{#tag:categorytree}}

Shows an interactive category tree.
A category name may be used instead of {{PAGENAME}}, if the portal page name doesn't match the most relevant category.