Skip to content

Instantly share code, notes, and snippets.

@DrLulz
Created February 28, 2015 21:55
Show Gist options
  • Save DrLulz/6e3e692cbd954d8e7918 to your computer and use it in GitHub Desktop.
Save DrLulz/6e3e692cbd954d8e7918 to your computer and use it in GitHub Desktop.
timeline
<snippet>
<content><![CDATA[
{{tll
| title = ${1}
| subtitle = ${2}
| tip = ${3}
| body = ${4}
| icon = ${5}
| color = ${6}
}}
]]></content>
<tabTrigger>woli</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.mediawiki</scope>
<description>Mediawiker: Numbered list</description>
</snippet>
<noinclude>
<pre>
{{tll
| title =
| subtitle =
| tip =
| body =
| icon =
| color =
}}
</pre>
</noinclude>
<li class="mw-bs-timeline">
{{#if: {{{tip |}}}
| <div title="{{{tip}}}" class="tip timeline-badge glyphicon glyphicon-{{{icon}}} {{{color}}}" rel="tooltip" data-placement="right"></div>
| <div class="timeline-badge glyphicon glyphicon-{{{icon}}} {{{color}}}"></div>
}}
<div class="timeline-panel">
<div class="timeline-heading">
<h4 class="timeline-title">{{{title}}}</h4>
{{#if: {{{subtitle |}}} |
<p><small class="text-muted">{{{subtitle}}}</small></p>
}}
</div>
<div class="timeline-body">
<p>{{{body}}}</p>
</div>
</div>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment