Difference between revisions of "Template:Viewer skin"

From Second Life Wiki
Jump to navigation Jump to search
m (wiki-typo)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:author|{{{author|no author specified}}}}}{{#vardefine:wiki_info|{{{wiki_info|{{PAGENAME}}}}}}}{{#vardefine:skin_name|{{{skin_name|{{SUBPAGENAME}}}}}}}{{#vardefine:wiki_source|{{{wiki_source|{{#var:wiki_info}}/source}}}}}{{#vardefine:skin_image|{{{skin_image|{{#var:skin_name}}.jpg}}}}}<div style="float:right;">
<includeonly>{{#vardefine:author|{{{author|no author specified}}}}}{{#vardefine:wiki_info|{{{wiki_info|{{PAGENAME}}}}}}}{{#vardefine:skin_name|{{{skin_name|{{SUBPAGENAME}}}}}}}{{#vardefine:wiki_source|{{{wiki_source|{{#var:wiki_info}}/source}}}}}{{#vardefine:skin_image|{{{skin_image|{{#var:skin_name}}.jpg}}}}}<div style="float:right;">
{|
{|style="border:1px solid #A3B1BF; background:#f5faff !important;"
|-
|-
! style="text-align:right" | By:
! style="text-align:right;vertical-align:top;" | By:
|[[User:{{#var:author}}|{{#var:author}}]]
|[[User:{{#var:author}}|{{#var:author}}]]
|-
|-
!style="text-align:right" | Viewer Version:
!style="text-align:right;vertical-align:top;" | Viewer Version:
| {{{viewer_version|}}}
| {{{viewer_version|}}}
|-
|-
!style="text-align:right" | Information:
!style="text-align:right;vertical-align:top;" | Information:
|{{#ifexist:{{#var:wiki_info}}|[[{{#var:wiki_info}}|{{#var:skin_name}}]]|}} {{{external_info|}}}
|{{#ifexist:{{#var:wiki_info}}|[[{{#var:wiki_info}}|{{#var:skin_name}}]]|}} {{{external_info|}}}
|-
|-
!style="text-align:right" {{#ifeq:{{{inline_source|}}}|*|{{#ifexist:{{#var:wiki_source}}|id="source"}}|id="source"}} | Source:
!style="text-align:right;vertical-align:top;" {{#ifeq:{{{inline_source|}}}|*|{{#ifexist:{{#var:wiki_source}}|id="source"}}|id="source"}} | Source:
|{{#ifexist:{{#var:wiki_source}}|[[{{#var:wiki_source}}|view source on Wiki]] {{{download_source|}}}
|{{#ifexist:{{#var:wiki_source}}|[[{{#var:wiki_source}}|view source on Wiki]]|}} {{{download_source|}}}
|-
|-
!style="text-align:right" | Image:
!style="text-align:right;vertical-align:top;" | Image:
|{{#ifexist:Image:{{#var:skin_image}}|[[Image:{{#var:skin_image}}|thumb|{{{summary|example of {{#var:skin_name}}}}}]]|Please add an image.}}
|{{#ifexist:Image:{{#var:skin_image}}|[[Image:{{#var:skin_image}}|thumb|{{{summary|example of {{#var:skin_name}}}}}]]|Please add an image.}}
|}</div>
|}</div>
Line 20: Line 20:
{{{description|no description}}}
{{{description|no description}}}


== Installation Instructions ==
{{{instructions|
# Find your Second Life installation folder
# Go into the '''app_settings''' directory, and create a backup of '''colors.xml'''
# Download the [[#source|source]] for this skin and save it as '''colors.xml''' in the '''app_settings''' directory, overwriting the original file if necessary.
}}}


{{#ifeq:{{{inline_source|}}}|*|{{#ifexist:{{#var:wiki_source}}|<div id="source">{{:{{#var:wiki_source}}}}</div>}}|}}
{{#ifeq:{{{inline_source|}}}|*|{{#ifexist:{{#var:wiki_source}}|<div id="source">{{:{{#var:wiki_source}}}}</div>}}|}}
<includeonly>[[Category:Viewer Skins|{{#var:skin_name}}]]</includeonly>
[[Category:Viewer Skins|{{#var:skin_name}}]]</includeonly><noinclude>
The template is coded with the following article structure in mind:
 
* Viewer Skins/'''skin name'''
* Viewer Skins/'''skin name'''/''source''
 
== template variables ==
=== Required/ Suggested ===
* author - the name of the Resident who created the skin
* skin_name - the name of the skin (auto-detection is currently broken it seems)
* skin_image - the filename of the image. Don't include the Image: prefix.
* summary - a brief description of the skin (will be used for the image thumbnail description)
* description - a more in-depth description of the skin
 
=== optional ===
* wiki_info - if there is further info on the skin in another wiki article
* external_info - if there is further info on the skin on another website
* inline_source - For those skins that consist of colors.xml modifications only, when set to '''*''', this variable will cause the source code for the colors.xml skin to be displayed in the same article the template has been implemented on.
</noinclude>

Latest revision as of 02:48, 29 September 2010

The template is coded with the following article structure in mind:

  • Viewer Skins/skin name
  • Viewer Skins/skin name/source

template variables

Required/ Suggested

  • author - the name of the Resident who created the skin
  • skin_name - the name of the skin (auto-detection is currently broken it seems)
  • skin_image - the filename of the image. Don't include the Image: prefix.
  • summary - a brief description of the skin (will be used for the image thumbnail description)
  • description - a more in-depth description of the skin

optional

  • wiki_info - if there is further info on the skin in another wiki article
  • external_info - if there is further info on the skin on another website
  • inline_source - For those skins that consist of colors.xml modifications only, when set to *, this variable will cause the source code for the colors.xml skin to be displayed in the same article the template has been implemented on.