Difference between revisions of "Template:BS-o"

From blackwiki
Jump to navigation Jump to search
imported>Tuvalkin
(upd. from :commons)
imported>Tuvalkin
(no line breaks)
 
Line 1: Line 1:
<span style="position:relative;left:10px;">[[File:BSicon_{{{2}}}.svg|x20px]]</span><span style="position:relative;left:-11px;">[[File:BSicon_{{{1}}}.svg|x20px|border]]</span>{{#if:{{{txt|}}}|([[:File:BSicon_{{{1}}}.svg|<code style="color:blue; font-weight:bold;">{{{1}}}</code>]] ※ [[:File:BSicon_{{{2}}}.svg|<code style="color:blue; font-weight:bold;">{{{2}}}</code>]])|}}<noinclude>
+
<span style="white-space:nowrap;"><span style="position:relative;left:10px;">[[File:BSicon_{{{2}}}.svg|x20px]]</span><span style="position:relative;left:-11px;">[[File:BSicon_{{{1}}}.svg|x20px|border]]</span></span>{{#if:{{{txt|}}}|([[:File:BSicon_{{{1}}}.svg|<code style="color:blue; font-weight:bold;">{{{1}}}</code>]] ※ [[:File:BSicon_{{{2}}}.svg|<code style="color:blue; font-weight:bold;">{{{2}}}</code>]])|}}<noinclude>
  
 
{{doc}}
 
{{doc}}
  
 
</noinclude>
 
</noinclude>

Latest revision as of 09:30, 29 May 2012

[[File:BSicon_{{{2}}}.svg|x20px]][[File:BSicon_{{{1}}}.svg|x20px|border]]

Template documentation[view] [edit] [history] [purge]

Much like {{BS-q}}, this accepts two BSicon names and displays an inline bordered swatch with them both superimposed, followed by their names spelled out, separed with the "※" sign (which is clearer for this than "+", as this is used in icon names).

(Futurely if-clauses could be added for more icons to be stacked, icon size and other options.)

Usage:

  • "{{BS-o|uKRZ|KRX}}" yields "BSicon KRX.svgBSicon uKRZ.svg".
  • "{{BS-o|uKRZ|KRX|txt=foo}}" yields "BSicon KRX.svgBSicon uKRZ.svg(uKRZKRX)".
  • "{{BS-o|uKRZ|KRX|txt=}}" yields "BSicon KRX.svgBSicon uKRZ.svg".
  • "{{BS-o|uKRZ|KRX|txt}}" yields "BSicon KRX.svgBSicon uKRZ.svg".