Difference between revisions of "Template:Article card/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Weegaweek
m (8 revisions imported)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{uses TemplateStyles|Template:Article card/styles.css}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
== About ==
 +
This template is an alternative to {{tl|Article card vertical}}
 +
 
== Intended use ==
 
== Intended use ==
 
This template is intended for use on ''[[wp:Portals|Portals]]''.
 
This template is intended for use on ''[[wp:Portals|Portals]]''.
Line 10: Line 14:
 
! Parameter !! Use !! Notes
 
! Parameter !! Use !! Notes
 
|-
 
|-
| image || Specify the name of the image related to the article. || Do not ad the "File:" prefix.
+
| image || Specify the name of the image related to the article. ||  
 +
*Do not ad the "File:" prefix.
 +
*Will not display on mobile.
 +
*Setting to "none" will hide image on desktop.
 
|-
 
|-
 
| article || Specify the article you are linking to. ||
 
| article || Specify the article you are linking to. ||
 
|-
 
|-
 
| description || Text shown under the article name. ||  
 
| description || Text shown under the article name. ||  
*Will cut of if there is to much text.
+
*Will scroll if there is to much text.
 
*Do not include links in description!.
 
*Do not include links in description!.
 +
|-
 +
| width || Specify the width of the box. || not necessary
 
|}
 
|}
  
 
== Example ==
 
== Example ==
<syntaxhighlight>
+
<syntaxhighlight lang="text">
 
{{article card
 
{{article card
 
| article= Ward Cunningham
 
| article= Ward Cunningham

Latest revision as of 14:32, 28 October 2020

Script error: No such module "Uses TemplateStyles".

About

This template is an alternative to {{Article card vertical}}

Intended use

This template is intended for use on Portals. It creates a modern looking "card" linking to an article with a description and an image.

Parameters

Parameter Use Notes
image Specify the name of the image related to the article.
  • Do not ad the "File:" prefix.
  • Will not display on mobile.
  • Setting to "none" will hide image on desktop.
article Specify the article you are linking to.
description Text shown under the article name.
  • Will scroll if there is to much text.
  • Do not include links in description!.
width Specify the width of the box. not necessary

Example

{{article card
| article= Ward Cunningham
| description= Howard G. "Ward" Cunningham (born May 26, 1949) is an American computer programmer who developed the first wiki.
| image= Ward_Cunningham_-_Commons-1.jpg
}}

produces:

View More Examples