Template:SnippetInfo

From PostgreSQL wiki

(Difference between revisions)
Jump to: navigation, search
m (bug, was adding a line)
 
Line 11: Line 11:
  
 
== Template ==
 
== Template ==
</noinclude>
+
</noinclude><div style="width: 11em; float: right; border: 1px solid #ccc; padding: 1ex 1em;">
<div style="width: 11em; float: right; border: 1px solid #ccc; padding: 1ex 1em;">
+
<big style="color: #e65600;"><b>[[:Category:{{{category|}}} Snippets|{{{category|}}} Snippets]]</b></big>
<h3 style="color: #e65600;">[[:Category:{{{category|}}} Snippets|{{{category|}}} Snippets]]</h3>
+
 
<p style="font-weight: bold;">{{{1}}}</p>
 
<p style="font-weight: bold;">{{{1}}}</p>
 
<div style="background: #eee; text-align: center; padding: 2px;">Works with PostgreSQL</div>
 
<div style="background: #eee; text-align: center; padding: 2px;">Works with PostgreSQL</div>
Line 21: Line 20:
 
<div style="background: #eee; text-align: center; padding: 2px;">Depends on</div>
 
<div style="background: #eee; text-align: center; padding: 2px;">Depends on</div>
 
{{{depends|Nothing}}}
 
{{{depends|Nothing}}}
</div>
+
</div><includeonly>[[Category:{{{category|}}} Snippets]]</includeonly>
 
+
<noinclude>[[Category:PgWiki:Templates]]</noinclude>
<includeonly>
+
[[Category:{{{category|}}} Snippets]]
+
</includeonly>
+
<noinclude>
+
[[Category:PgWiki:Templates]]
+
</noinclude>
+

Latest revision as of 10:06, 25 April 2013

[edit] Description

Presents a small infobox with a few pertinent facts about a code snippet, and adds the snippet to an appropriate category.

[edit] Usage

{{SnippetInfo|snippet name|version=PostgreSQL version|lang=Language|depends=Dependencies|category=Snippet category}}

Category should be one of: Administrative, Performance, Library, Fun, Compatibility

[edit] Template

Snippets

{{{1}}}

Works with PostgreSQL

Any version

Written in

 

Depends on

Nothing

Personal tools