Difference between revisions of "Template:Snapzilla"
m (altered layout) |
(→Examples: updated examples) |
||
Line 30: | Line 30: | ||
== Examples == | == Examples == | ||
{{snapzilla | |||
|mode=user | |||
|key=SignpostMarv Martin | |||
|title=SignpostMarv's photos on Snapzilla | |||
|}} Is produced with the following code: | |||
<div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | |||
|mode=user | |||
|key=SignpostMarv Martin | |||
|title=SignpostMarv's photos on Snapzilla | |||
|}}</nowiki></pre></code></div> | |||
{{snapzilla | |||
|mode=user | |||
|key=SignpostMarv Martin | |||
|}} can be produced with either of two following blocks of code: | |||
<div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | |||
|mode=user | |mode=user | ||
|key=SignpostMarv Martin | |key=SignpostMarv Martin | ||
|title=SignpostMarv's photos on Snapzilla | |title=SignpostMarv's photos on Snapzilla | ||
|no-title=enabled | |no-title=enabled | ||
|}} <div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | |}}</nowiki></pre></code></div> | ||
<div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | |||
|mode=user | |mode=user | ||
|key=SignpostMarv Martin | |key=SignpostMarv Martin | ||
Line 42: | Line 57: | ||
|no-title=enabled | |no-title=enabled | ||
|}}</nowiki></pre></code></div> | |}}</nowiki></pre></code></div> | ||
{{snapzilla | |||
|mode=photo | |mode=photo | ||
|key=96571 | |key=96571 | ||
|title=watermelon totem! | |title=watermelon totem! | ||
|}} | |}} is produced with the following code: | ||
</ | <div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | ||
|mode=photo | |||
|key=96571 | |||
|title=watermelon totem! | |||
|}}</nowiki></pre></code></div> | |||
{{snapzilla | |||
|mode=photo | |||
|key=96571 | |||
|display-url=enabled | |||
|}} is produced with the following code: | |||
<div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | |||
|mode=photo | |||
|key=96571 | |||
|display-url=true | |||
|}}</nowiki></pre></code></div> | |||
[[Category:Templates in need of documentation]] | [[Category:Templates in need of documentation]] | ||
</noinclude> |
Revision as of 22:56, 12 January 2007
Usage
{{snapzilla
|mode=
|key=
|title=
|display-url=
|no-title=
|}}
mode Used in combination with the key variable to create a link to the desired section of the Snapzilla site.
- 'user'
- makes the URL point to the listing of all photos by the Resident specified with the 'key' variable.
- 'photo'
- makes the URL point to the page for the photo specified with the 'key' variable.
key This is either the name of a Resident, or the ID number of a photo page.
title This is the text to display instead of the full URL or link number.
display-url When this is set to 'enabled', the link will be displayed as the full URL, without a title.
no-title When this is set to 'enabled', the link will be displayed as a number, referring to the link's placement in the list of links available in the article.
Examples
SignpostMarv's photos on Snapzilla Is produced with the following code:
{{snapzilla
|mode=user
|key=SignpostMarv Martin
|title=SignpostMarv's photos on Snapzilla
|}}
[1] can be produced with either of two following blocks of code:
{{snapzilla
|mode=user
|key=SignpostMarv Martin
|title=SignpostMarv's photos on Snapzilla
|no-title=enabled
|}}
{{snapzilla
|mode=user
|key=SignpostMarv Martin
|title=SignpostMarv's photos on Snapzilla
|no-title=enabled
|}}
snapshot - watermelon totem! is produced with the following code:
{{snapzilla
|mode=photo
|key=96571
|title=watermelon totem!
|}}
http://www.sluniverse.com/pics/pic.aspx?id=96571 is produced with the following code:
{{snapzilla
|mode=photo
|key=96571
|display-url=true
|}}