Template:Snippet: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
First attempt at the snippet include template.
 
Only put the right link if it's actually there.
 
Line 5: Line 5:
[[Category:Common Templates]]
[[Category:Common Templates]]
</noinclude><includeonly>{{#ifeq: {{{link|}}} | top | {{view talk edit|{{{1}}}}} | }}
</noinclude><includeonly>{{#ifeq: {{{link|}}} | top | {{view talk edit|{{{1}}}}} | }}
{{#if: {{{link|right}}} | <div style="float: right">{{view talk edit|{{{1}}}}}</div> }}
{{#ifeq: {{{link|right}}} | right | <div style="float: right">{{view talk edit|{{{1}}}}}</div> | }}
{{{{{1}}}}}</includeonly>
{{{{{1}}}}}</includeonly>

Latest revision as of 21:07, 25 July 2013

This template transcludes the given page into this one. It also provides a VTE set of links. The first parameter is the full page name of the page to include. It can also have the following parameters:

  • link​: The direction to put the VTE links in. Can be right​ (the default), or top​.