Help Wikitravel grow by contributing to an article! Learn how.

Difference between revisions of "User:Wrh2/Sandbox"

From Wikitravel
Jump to: navigation, search
m (per Jani)
m (Template:Title icons:: too much coding today)
Line 17: Line 17:
 
<pre><nowiki>
 
<pre><nowiki>
 
<includeonly>
 
<includeonly>
{{if|test={{{0|}}}|then={{title icon|position=23|content={{{[[Template:0]]|}}}}}}}
+
{{if|test={{{0|}}}|then={{title icon|position=23|content=[[Template:{{{0}}}]]}}}}
{{if|test={{{1|}}}|then={{title icon|position=46|content={{{[[Template:1]]|}}}}}}}
+
{{if|test={{{1|}}}|then={{title icon|position=46|content=[[Template:{{{1}}}]]}}}}
{{if|test={{{2|}}}|then={{title icon|position=69|content={{{[[Template:2]]|}}}}}}}
+
{{if|test={{{2|}}}|then={{title icon|position=69|content=[[Template:{{{2}}}]]}}}}
{{if|test={{{3|}}}|then={{title icon|position=92|content={{{[[Template:3]]|}}}}}}}
+
{{if|test={{{3|}}}|then={{title icon|position=92|content=[[Template:{{{3}}}]]}}}}
{{if|test={{{4|}}}|then={{title icon|position=115|content={{{[[Template:4]]|}}}}}}}
+
{{if|test={{{4|}}}|then={{title icon|position=115|content=[[Template:{{{4}}}]]}}}}
 
</includeonly>
 
</includeonly>
 
</nowiki></pre>
 
</nowiki></pre>

Revision as of 07:00, 19 June 2007

Contents

Template:Title icons:

<includeonly>
{{if|test={{{0|}}}|then={{title icon|position=23|content=[[Template:{{{0}}}]]}}}}
{{if|test={{{1|}}}|then={{title icon|position=46|content=[[Template:{{{1}}}]]}}}}
{{if|test={{{2|}}}|then={{title icon|position=69|content=[[Template:{{{2}}}]]}}}}
{{if|test={{{3|}}}|then={{title icon|position=92|content=[[Template:{{{3}}}]]}}}}
{{if|test={{{4|}}}|then={{title icon|position=115|content=[[Template:{{{4}}}]]}}}}
</includeonly>

This template is used to display icons in the title bar of an article for things like Wikitravel:Star articles and Previous Destinations of the month. To use the template:

{{title icons|star icon|dotm icon}}


Template:Title icon:

<includeonly>
<div style="right:{{{position}}}px; position:absolute;z-index:100;top:30px;display: block !important;" id="featured-star">
<div style="position: relative; width:20px; height:20px; overflow: hidden;text-decoration:none;">
{{{content}}}
</div>
</div>
</includeonly>

This template is used internally by Template:Status icons. It should not be called directly. An example usage of this template is:

{{title icon|position=23|content=star icon}}


Template:Title icon entry:

<includeonly>
<div style="position:absolute;top:0px;left:0px;z-index:2;">[[{{{image}}}|20px|{{{text}}}]]</div>
<div style="position:absolute;top:0px;left:0px;z-index:3;font-size:20pt;">[[{{{link}}}|<span title="{{{text}}}">   </span>]]</div>
</includeonly>

This template is used to generate a title icon entry. It should not be called directly. An example usage of this template is:

{{title icon entry|image=Barnstar.png|text=Star Article|link=Wikitravel:Star Articles}}


Template:Star icon:

<includeonly>
{{title icon entry|image=Barnstar.png|text=Star Article|link=Wikitravel:Star Articles}}
</includeonly>

This template is used to generate a star article status title icon entry. It should be used as an argument to Template:Title icons. An example usage of this template is:

{{title icons|star icon|dotm icon}}

Variants

Actions

Destination Docents

In other languages