Template:Demotivator: Difference between revisions
Content added Content deleted
(Try 1 per https://allthetropes.orain.org/w/index.php?title=Forum:Wiki_Talk&offset=20141011002018#Demotivators_1385) |
(add some CSS) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#css: |
|||
[[File:{{{1}}}|frame|<div style="text-align:center"><big style="text-transform:uppercase;letter-spacing:.1em">'''{{{2}}}'''</big><br />{{{3}}}</div>]]<noinclude> |
|||
.motivator div.thumbinner { background: black; color: {{{color|white}}}; padding: 10px 10px 5px 10px!important;} |
|||
.motivator big { text-transform:uppercase;letter-spacing:.2em;font-family:'Times New Roman',Times,serif } |
|||
Creates a [[Fauxtivational Poster]] from an image. |
|||
.motivator .thumbcaption { text-align: center } |
|||
Use like this: |
|||
}}<div class="motivator">[[File:{{{1}}}|frame|<big>'''{{{2}}}'''</big><br />{{{3}}}]]</div></includeonly><noinclude> |
|||
<pre> |
|||
{{documentation}} |
|||
{{demotivator|filename.jpg|Title|Caption}} |
|||
</pre> |
|||
For example, the demotivator at right was produced with this code: |
|||
{{demotivator |
|||
| no_demotivators_00_6596.jpg |
|||
| Text in images |
|||
| The easiest way to make image captions inaccessible |
|||
to translators and screen readers. |
|||
}} |
|||
<pre> |
|||
{{demotivator |
|||
| no_demotivators_00_6596.jpg |
|||
| Text in images |
|||
| The easiest way to make image captions inaccessible |
|||
to translators and screen readers. |
|||
}} |
|||
</pre> |
|||
</noinclude> |
</noinclude> |
Latest revision as of 06:53, 11 October 2014
Creates a Fauxtivational Poster from an image. Use like this:
{{demotivator|filename.jpg|Title|Caption}}
For example, the demotivator at right was produced with this code:
{{demotivator| no_demotivators_00_6596.jpg | Text in images | The easiest way to make image captions inaccessible to translators and screen readers. }}