Difference between revisions of "Template:Hint"

From Second Life Wiki
Jump to navigation Jump to search
m
m (svg to png)
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<onlyinclude><includeonly>{{#switch: {{{mode}}}
 
|warning = {{{!}} style="background-color:#AAAAAA; margin-bottom:10px;" cellpadding="3" cellspacing="1"
{{#switch: {{{status}}}
{{!}} style="background:white;" valign="top" rowspan="2" {{!}} [[Image:Emblem-important-red.png]]
|"warning" = {{#vardefine:title|Warning! {{#if:{{{title_desc}}}|{{{title_desc}}} }} }} {{#vardefine:bg|990000}} {{#vardefine:colo|white}} {{#vardefine:img|[[Image:Emblem-important-red.svg]]}}
{{!}} style="color:white; background:#990000;" title="Warning! {{{title_desc| }}}" width="100%" {{!}} '''{{{alt_title|Warning!}}} {{{title_desc| }}}'''
|"important" = {{#vardefine:title|Important! {{#if:{{{title_desc}}}|{{{title_desc}}} }} }} {{#vardefine:bg|eb5c00}} {{#vardefine:colo|black}} {{#vardefine:img|[[Image:Emblem-important.svg]]}}
{{!}}-
|"hint" = {{#vardefine:title|Hint! {{#if:{{{title_desc}}}|{{{title_desc}}} }} }} {{#vardefine:bg|ffd363}} {{#vardefine:colo|black}} {{#vardefine:img|[[Image:Emblem-important-yellow.svg]]}}
{{!}} style="background:#F9F9F9; font-size:90%;" {{!}}
|"translate" = {{#vardefine:title|Hint! This page will translated by {{{name}}} since {{CURRENTTIME}} {{CURRENTMONTH}}/{{CURRENTDAY2}}/{{CURRENTYEAR}}. }} {{#vardefine:bg|ffd363}} {{#vardefine:colo|black}} {{#vardefine:img|[[Image:Emblem-important-yellow.svg]]}}
{{{desc}}}
 
{{!}}}
}}
|important = {{{!}} style="background-color:#AAAAAA; margin-bottom:10px;" cellpadding="3" cellspacing="1"
 
{{!}} style="background:white;" valign="top" rowspan="2" {{!}} [[Image:Emblem-important.png]]
{{{!}} style="background-color:#AAAAAA; margin-bottom:10px;" cellpadding="3" cellspacing="1"
{{!}} style="color:black; background:#ff6b00;" title="Important! {{{title_desc| }}}" width="100%" {{!}} '''Important! {{{title_desc| }}}'''
{{!}} style="background:white;" valign="top" rowspan="2" {{!}} {{#var:img}}
{{!}}-
{{!}} style="color:{{#var:colo}}; background:#{{#var:bg}};" title="{{#var:title}}" width="100%" {{!}} '''{{#var:title}}'''
{{!}} style="background:#F9F9F9; font-size:90%;" {{!}}
{{{desc}}}
{{!}}}
|note = {{{!}} style="background-color:#AAAAAA; margin-bottom:10px;" cellpadding="3" cellspacing="1"
{{!}} style="background:white;" valign="top" rowspan="2" {{!}} [[Image:Emblem-important-yellow.png]]
{{!}} style="color:black; background:#ffd363;" title="Note! {{{title_desc| }}}" width="100%" {{!}} '''Note! {{{title_desc| }}}'''
{{!}}-
{{!}}-
{{!}} style="background:#F9F9F9; font-size:90%;" {{!}}
{{!}} style="background:#F9F9F9; font-size:90%;" {{!}}
{{{desc}}}
{{{desc}}}
{{!}}}
{{!}}}
</includeonly>
|translation ={{{!}} style="background-color:#AAAAAA; margin-bottom:10px;" cellpadding="3" cellspacing="1"
{{!}} style="background:white;" valign="top" rowspan="2" {{!}} [[Image:Emblem-important-yellow.png]]
{{!}} style="color:black; background:#ffd363;" title="Note: Translation in Progress." width="100%" {{!}} '''Note: Translation in Progress!'''
{{!}}-
{{!}} style="background:#F9F9F9; font-size:90%;" {{!}}
This page is translated by [[User:{{{name}}}|{{{name}}}]]{{#if:{{{project| }}}| &nbsp;as part of ''{{{project}}}''}}.<br>Translation committed at: {{ #time: l j F Y | 20080727050124 }}
{{!}}}
|#default =
}}</includeonly></onlyinclude>
<div style="margin-bottom: 10px;">
__TOC__
</div>
<div id="box">
== "Note Box" ==
<div  style="padding: 0.5em 0.5em 0.5em 0.5em;">
Create a Note box for various sectors and "alerts".
*<span style="color: red">'''Warning Box'''</span>
*<span style="color: orange">'''Important Box'''</span>
*<span style="color: yellow; background: lightgray;">'''Note/Hint Box'''</span>
*and special version of note box for translations
<br>
Based on [[Template:!]] and inspired by [[Template:LSL_Function/warning]]
</div>
</div>
 
<div id="box">
== Minimum Usage ==
<div  style="padding: 0.5em 0.5em 0.5em 0.5em;">
<nowiki>{{hint
|mode=important
|desc=<Description>
}}</nowiki>
</div>
== Normal Usage ==
<div  style="padding: 0.5em 0.5em 0.5em 0.5em;">
<nowiki>{{hint
|mode=important
|title_desc=<Title Description>
|desc=<Description>
}}</nowiki>
</div>
</div>
 
<div id=box>
== Translation Special Usage ==
<div  style="padding: 0.5em 0.5em 0.5em 0.5em;">
<nowiki>{{hint
|mode=translation
|name=<your name>
}}</nowiki>
</div>
== Translation Special with Project Usage ==
<div  style="padding: 0.5em 0.5em 0.5em 0.5em;">
<nowiki>
{{hint
|mode=translation
|project=<project name>
|name=<your name>
}}
</nowiki>
</div>
</div>
 
== Examples ==
{{hint
|mode=warning
|desc=The follow stuff is experimental.
}}
<nowiki>
{{hint
|mode=warning
|desc=The follow stuff is experimental.
}}
</nowiki>
<center><hr style=" width: 80%; border-bottom: 2px dashed red; background-color: lightgray; height: 0px; margin-top: 10px; margin-bottom:20px;"></center>
{{hint
|mode=important
|title_desc=Page isn't finished.
|desc=Sorry this page isn't finished... I'm working hard on it! o.o
}}
<nowiki>
{{hint
|mode=important
|title_desc=Page isn't finished.
|desc=Sorry this page isn't finished... I'm working hard on it! o.o
}}
</nowiki>
<center><hr style=" width: 80%; border-bottom: 2px dashed red; background-color: lightgray; height: 0px; margin-top: 10px; margin-bottom:20px;"></center>
{{hint
|mode=note
|desc=The following code is a beta and not 100% stable!
}}
<nowiki>
{{hint
|mode=note
|desc=The following code is a beta and not 100% stable!
}}
</nowiki>
<center><hr style=" width: 80%; border-bottom: 2px dashed red; background-color: lightgray; height: 0px; margin-top: 10px; margin-bottom:20px;"></center>
{{hint
|mode=translation
|name=Kuraiko Yoshikawa
}}
<nowiki>
{{hint
|mode=translation
|name=Kuraiko Yoshikawa
}}
</nowiki>
<center><hr style=" width: 80%; border-bottom: 2px dashed red; background-color: lightgray; height: 0px; margin-top: 10px; margin-bottom:20px;"></center>
{{hint
|mode=translation
|name=Kuraiko Yoshikawa
|project=XYZ Translation Project
}}
<nowiki>
{{hint
|mode=translation
|name=Kuraiko Yoshikawa
|project=XYZ Translation Project
}}
</nowiki>
[[Category:Box templates]]

Latest revision as of 12:03, 24 February 2011

"Note Box"

Create a Note box for various sectors and "alerts".

  • Warning Box
  • Important Box
  • Note/Hint Box
  • and special version of note box for translations


Based on Template:! and inspired by Template:LSL_Function/warning

Minimum Usage

{{hint
 |mode=important
 |desc=<Description>
 }}

Normal Usage

{{hint
 |mode=important
 |title_desc=<Title Description>
 |desc=<Description>
 }}

Translation Special Usage

{{hint
 |mode=translation
 |name=<your name>
 }}

Translation Special with Project Usage

 {{hint
 |mode=translation
 |project=<project name>
 |name=<your name>
 }}
 

Examples

Emblem-important-red.png Warning!

The follow stuff is experimental.

 {{hint
 |mode=warning
 |desc=The follow stuff is experimental.
 }}
 

Emblem-important.png Important! Page isn't finished.

Sorry this page isn't finished... I'm working hard on it! o.o

 {{hint
 |mode=important
 |title_desc=Page isn't finished.
 |desc=Sorry this page isn't finished... I'm working hard on it! o.o
 }}
 

Emblem-important-yellow.png Note!

The following code is a beta and not 100% stable!

 {{hint
 |mode=note
 |desc=The following code is a beta and not 100% stable!
 }}
 

Emblem-important-yellow.png Note: Translation in Progress!

This page is translated by Kuraiko Yoshikawa.
Translation committed at: Sunday 27 July 2008

 {{hint
 |mode=translation
 |name=Kuraiko Yoshikawa
 }}
 

Emblem-important-yellow.png Note: Translation in Progress!

This page is translated by Kuraiko Yoshikawa as part of XYZ Translation Project.
Translation committed at: Sunday 27 July 2008

 {{hint
 |mode=translation
 |name=Kuraiko Yoshikawa
 |project=XYZ Translation Project
 }}