Difference between revisions of "Template:Deals/doc"

From WikiCorporates
Jump to navigation Jump to search
(→‎Call Thusly)
Line 5: Line 5:
 
The template has been modified to take a/c of this - see below "Call Thusly". The <b>bold</b> calls are to the uploaded files.
 
The template has been modified to take a/c of this - see below "Call Thusly". The <b>bold</b> calls are to the uploaded files.
  
−
When using this template with two images, where they should float side-by-side, it is necessary to wrap them in a div, due to MediaWiki's irritating implementation of the <tt><nowiki>[[File:xxx]]</nowiki></tt> call for images.<br/>
+
When using this template with two uploaded images, where they should float side-by-side, it is necessary to wrap them in a div, due to MediaWiki's implementation of the <tt><nowiki>[[File:xxx]]</nowiki></tt> call for images.<br/>
−
'''Example:''' <tt><nowiki>{{test|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}}</nowiki></tt> &rarr; {{test|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}}
+
'''Example:''' <tt><nowiki>{{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}}</nowiki></tt> &rarr; {{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}}
  
  

Revision as of 21:27, 6 November 2019

Note: Images are in Images/Site-Imgs/Arrows-Crosses-Ticks-ink.svg

ToDo: Bring Template:Checkmark together with this.

These images are (slowly) being uploaded, and all new instances should use the uploaded files. The template has been modified to take a/c of this - see below "Call Thusly". The bold calls are to the uploaded files.

When using this template with two uploaded images, where they should float side-by-side, it is necessary to wrap them in a div, due to MediaWiki's implementation of the [[File:xxx]] call for images.

Example: {{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}} →

Spotless-Group.pngDeals-Arrow-Right.svg


Small template to generate the following pics:

  • {{img|Deals-Arrow-Left.svg|15|20}}
  • {{img|Deals-Arrow-Right.svg|15|20}}
  • {{img|Deals-Cross.svg|21|20}}
  • {{img|Deals-Plus.svg|21|20}}
  • {{img|Deals-Equals.svg|21|20}}
  • {{img|Deals-Query.svg|13|20}}
  • {{img|Deals-All-Change.svg|20|20}}

Call Thusly

  • {{Deals|Arrow-Left}} or {{Deals|ArrowL}}
  • {{Deals|Arrow-Right}} or {{Deals|ArrowR}}
  • {{Deals|Cross}}
  • {{Deals|Plus}}
  • {{Deals|Equals}}
  • {{Deals|Query}}
  • {{Deals|All-Change}} or {{Deals|AllChange}}