Difference between revisions of "Template:Notebox"

From EvaWiki
Jump to: navigation, search
(For the better presentation of notes)
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{|style="border: 1px solid #aaaaaa;width: 100%"
{|style="border: 1px solid #aaaaaa;"
 
 
|-
 
|-
|style="background: lightgrey; text-align: center; height: 2em"|'''Note'''
+
|style="background: lightgrey; text-align: center; height: 2em"|'''Note'''{{anchor|{{{note_id|}}}}}
|rowspan="2" {{#if: {{{note_images|}}}| style="width: 20%; background: lightgrey;"{{!}} | style="vertical-align: top; text-align: center;"{{!}}{{{note_images|}}} }}
+
|rowspan="2" {{#if: {{{note_images|}}}| style="vertical-align: top; text-align: center;width: 10%"{{!}}{{{note_images|}}} | style="width: 20%; background: lightgrey;"{{!}} &nbsp; }}
 
|-
 
|-
 
|style="vertical-align: top;"|{{{note_text|}}}
 
|style="vertical-align: top;"|{{{note_text|}}}
|}
+
|}</includeonly><noinclude>
 
 
{|style="border: 1px solid #aaaaaa"
 
</includeonly>
 
<noinclude>
 
 
==Usage==
 
==Usage==
  
 
<pre>
 
<pre>
{{Notebox:
+
{{Notebox
note_text  =
+
|note_id    =
 +
|note_text  =
 
}}
 
}}
 
</pre>
 
</pre>
  
 
<pre>
 
<pre>
{{Notebox:
+
{{Notebox
note_text  =
+
|note_id    =
note_images =
+
|note_text  =
 +
|note_images =
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
If note_id is supplied then the note can be quickly linked to within a page by appending #NOTE_ID to the page url, as with the examples here.
 +
*[[Template:Notebox#escalator_no_pic|Note Link 1]]
 +
*[[Template:Notebox#escalator_with_pic|Note Link 2]]
  
 
==Examples==
 
==Examples==
  
 +
{{Notebox
 +
|note_id    = escalator_no_pic
 +
|note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
 +
}}
  
 
<pre>
 
<pre>
{{Notebox:
+
{{Notebox
note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
+
|note_id    = escalator_no_pic
 +
|note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
 
}}
 
}}
 
</pre>
 
</pre>
  
{{Notebox:
+
 
note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
+
 
 +
 
 +
{{Notebox
 +
|note_id    = escalator_with_pic
 +
|note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
 +
|note_images = [[Image:Shinji Rei Escalator.jpg|150px]]
 
}}
 
}}
 
  
 
<pre>
 
<pre>
{{Notebox:
+
{{Notebox
note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
+
|note_id    = escalator_with_pic
note_images = [[Image:Shinji Rei Escalator.jpg|150px]]
+
|note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
 +
|note_images = [[Image:Shinji Rei Escalator.jpg|150px]]
 
}}
 
}}
 
</pre>
 
</pre>
  
{{Notebox:
+
[[Category:Templates]]
note_text  = Shinji and Rei travelled on an escalator in [[Episode 05]]
+
</noinclude>
note_images = [[Image:Shinji Rei Escalator.jpg|150px]]
 
}}
 
 
 
[[Category:Templates]]</noinclude>
 

Latest revision as of 01:40, 3 September 2007

Usage

{{Notebox
|note_id    =
|note_text  =
}}
{{Notebox
|note_id     =
|note_text   =
|note_images =
}}

If note_id is supplied then the note can be quickly linked to within a page by appending #NOTE_ID to the page url, as with the examples here.

Examples

Note  
Shinji and Rei travelled on an escalator in Episode 05
{{Notebox
|note_id     = escalator_no_pic
|note_text   = Shinji and Rei travelled on an escalator in [[Episode 05]]
}}



Note Shinji Rei Escalator.jpg
Shinji and Rei travelled on an escalator in Episode 05
{{Notebox
|note_id     = escalator_with_pic
|note_text   = Shinji and Rei travelled on an escalator in [[Episode 05]]
|note_images = [[Image:Shinji Rei Escalator.jpg|150px]]
}}