Difference between revisions of "Template:Snapzilla"

From Second Life Wiki
Jump to navigation Jump to search
m (testing)
(→‎Examples: whoops- thanks for catching that Baba)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[{{#switch: {{{mode}}} |user=http://www.sluniverse.com/pics/Default.aspx?Name=|photo=http://www.sluniverse.com/pics/pic.aspx?id=|<strong style="color:red;">UNSUPPORTED MODE IN [[Template:Snapzilla]]</strong>}}{{urlencode:{{{key}}}}}]}}</includeonly><noinclude>
<includeonly>{{ #ifeq: {{{display-url}}}|enabled||[}}{{#switch: {{{mode}}} |user=http://www.sluniverse.com/pics/Default.aspx?Name=|photo=http://www.sluniverse.com/pics/pic.aspx?id=|<strong style="color:red;">UNSUPPORTED MODE IN [[Template:Snapzilla]]</strong>}}{{urlencode:{{{key}}}}}{{ #ifeq: {{{display-url}}}|enabled||{{ #ifeq: {{{no-title}}}|enabled||{{ #if: {{{title|}}}|<nowiki> </nowiki>{{#ifeq: {{{mode|}}}|photo|snapshot -<nowiki> </nowiki>|}}{{{title}}}|}}|}}]}}</includeonly><noinclude>
== Usage ==
<div style="font-size:140%;"><code><pre><nowiki>{{snapzilla
|mode=
|key=
|title=
|display-url=
|no-title=
|}}</nowiki></pre></code></div>
 
'''''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 ==
 
{{snapzilla
{{snapzilla
|mode=user
|mode=user
|key=SignpostMarv Martin
|key=SignpostMarv Martin
|title=SignpostMarv's photos on Snapzilla
|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
|key=SignpostMarv Martin
|title=SignpostMarv's photos on Snapzilla
|no-title=enabled
|}}</nowiki></pre></code></div>
<div style="font-size:140%;"><code><pre><nowiki>{{snapzilla
|mode=user
|key=SignpostMarv Martin
|}}</nowiki></pre></code></div>
{{snapzilla
|mode=photo
|key=96571
|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
|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]]
</noinclude>
</noinclude>

Latest revision as of 23:23, 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
|}}

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
|}}