Template:Quotebox: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Thirty7 (historical)
(adding date as seperate parameter)
m (padding adjust)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|style="{{#switch:{{{style}}}
<div role="figure" aria-labelledby="quotebox-{{anchorencode:{{{name|{{{source}}}}}}}}" style="display: flow-root; position: relative; margin: 0.5em; border: 1px solid #000; padding: 0 1em 0 48px; max-width: 70ch; background: {{#ifeq:{{{type}}}|dev|#F4DADA|#F4F4F4}}; text-align: left;">
|dev=background: #F4DADA; border: 1px solid #000000;
<div style="position: absolute; left: 8px; top: 10px;">[[File:{{#ifeq:{{{type}}}|dev|Chatballoon-Dev.png|Chatballoon.png}}|link=|alt=]]</div>
|#default=background: #F4F4F4; border: 1px solid #000000;
<div style="margin: 1em 0; border-bottom: 1px dotted black;">{{#if:{{{name|}}}|<span id="quotebox-{{anchorencode:{{{name}}}}}" style="font-weight: bold;">{{{name}}}</span>}} <span style="font-size: 80%;">(From {{#if:{{{name|}}}|{{{source}}}|<span id="quotebox-{{anchorencode:{{{source}}}}}">{{{source}}}</span>}}{{#if:{{{date|}}}|, {{{date}}}|}})</span></div>
}} width:100%; text-align: left; margin: 0.5em;"
<blockquote style="margin: 0; border: 0; padding: 0 0 1em 0;">
|- valign="top"
{{{text}}}
|style="width: 45px;" valign=top|{{#switch:{{{style}}}
</blockquote>
|dev=[[File:Chatballoon-Dev.png]]
</div>{{#if:{{{nocat|}}}||{{#switch:{{{type}}}
|#default=[[File:Chatballoon.png]]
|dev=[[Category:Developer Quotations]]
}}
}}}}<noinclude>[[Category:Editors Tags Templates]]{{documentation}}</noinclude>
|'''{{{name}}}''' ''{{small|1=from {{{source}}}{{#if:{{{date|}}}|, {{{date}}}.|}}}}'':<br />{{{text}}}
|}<noinclude>[[Category:Editors Tags Templates]]</noinclude>

Latest revision as of 14:06, 18 November 2022

(From {{{source}}})

{{{text}}}

[edit] [purge] Documentation


Usage

This template is used for the notation of quotations from developers, community reps, and others whose comments might be applicable to a wiki article as well as direct statements from other sources (such as excerpts from the Official Website, or stories posted on the Forums). Quotebox differs from {{Cutscene}} in that Cutscene is used primarily for transcribing cutscenes and other in-game events, whereas Quotebox is primarily for referencing things outside of the game, especially those things that might require a citation.

Here's a copy-and-paste blank version of the template:

{{Quotebox
|type=
|name=
|source=
|date=
|text=
}}

Quotebox uses several parameters:

  • name= is an optional parameter and is used to indicate the speaker or poster of the quoted material.
  • text= is a required parameter, it is used to supply the actual text of what is being quoted.
  • source= is a required parameter, it is used to indicate a link or short description of the source of the quotation.
  • date= is an optional parameter, it is used to note the date the quoted material was posted or said by the individual in name.
  • type= is an optional parameter, it is used to indicate the type of statement being quoted.
    • If left blank, this parameter defaults to a generic speaker and provides a box with a grey background.
    • If dev is supplied, a developer statement is indicated and the box has a light red background and a matching icon. Additionally, the article will be placed in Category:Developer Quotations.
  • nocat= is an optional parameter, it is used to disable automatic categorization. Use as nocat=1.

Example

  • This is a good example of proper use of the template. It lists a specific source, a date of posting (though not exact), and the person who wrote the statement. It also illustrates what a developer Quotebox looks like.
{{Quotebox
|type=dev
|name=Joe "Hero 1" Morrissey
|source=the [http://web.archive.org/web/20121003093838/http://na.cityofheroes.com/en/news/game_updates/issue_12/issue_12_the_midnight_hour_and.php Official Website]
|date=circa May 20, 2008
|text=I've been a writer/designer for about 10 years now, starting at Blizzard North working on Diablo II, the expansion and anything else us "Northies" thought was a good idea at the time. From there I went over to Backbone and learned how to roll up my sleeves and get down and dirty in design. I worked on a number of handheld games the highlight of those being Death Jr. 2. About a year ago, my wife and I found out we were going to have our first kid and that meant a couple lifestyle changes needed to occur. The main one being a job much closer to home. I applied at Cryptic Studios and apparently I "interviewed well," a fact Positron is quick to point out anytime that I make his life difficult.
}}
Joe "Hero 1" Morrissey (From the Official Website, circa May 20, 2008)

I've been a writer/designer for about 10 years now, starting at Blizzard North working on Diablo II, the expansion and anything else us "Northies" thought was a good idea at the time. From there I went over to Backbone and learned how to roll up my sleeves and get down and dirty in design. I worked on a number of handheld games the highlight of those being Death Jr. 2. About a year ago, my wife and I found out we were going to have our first kid and that meant a couple lifestyle changes needed to occur. The main one being a job much closer to home. I applied at Cryptic Studios and apparently I "interviewed well," a fact Positron is quick to point out anytime that I make his life difficult.

  • This example is a poor example of how to use this template. It does not indicate a specific source or date. However, it shows what a non-developer comment might look like.
{{Quotebox
|name=Non-Developer Dude
|source=someplace
|date=Febuary 30, 2053
|text=This is a fictitious example solely to illustrate the appearance of the template.
}}
Non-Developer Dude (From someplace, Febuary 30, 2053)

This is a fictitious example solely to illustrate the appearance of the template.

See also