MediaWiki CMS:Шаблоны/Цитата №2

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Проверка/Оформление/Редактирование: Мякишев Е.А.

Цитата №2

Красивый шаблон для цитат.

Пример использования

Допустим, вы назвали шаблон "Цитата2":

{{Цитата2|Я само совершенство. ;3|Кот}}
Я само совершенство. ;3


<includeonly>{| style="margin:0.5em auto; max-width:50em;"
| style="border:none; color:{{{color|#B2B7F2}}}; font-family:'Times New Roman',Times,serif; font-size:{{{size|3em}}}; font-weight:bold; line-height:41px; padding:0 16px 0 0; vertical-align:top; width:20px;" | “
| style="border:none; font-size:1.2em; font-style:italic; padding:0; vertical-align:middle;"|{{{1|Flub}}}
| style="border:none; color:{{{color|#B2B7F2}}}; font-family:'Times New Roman',Times,serif; font-size:{{{size|3em}}}; font-weight:bold; line-height:11px; padding:0 0 0 16px; vertical-align:bottom; width:20px" | ”
{{!}} colspan="3" style="font-size:smaller; padding:8px 36px; text-align:right;" {{!}} <cite>{{{2}}}{{#if:{{{3|}}}|, {{{3}}}}}</cite>}}
|}</includeonly><noinclude>{{usage|1=This is a formatting template used to add a block quote to an article.

The format for using this template is as follows:<br /> 

'''<pre>{{Quote|1=I'LL BREAK YOU DEAD!|2=Christian Weston Chandler|3=Phone message to Jason Kendrick Howell}}</pre>''' 

- Displays:{{Quote|I'LL BREAK YOU DEAD!|Christian Weston Chandler|Phone message to Jason Kendrick Howell}}

'''Template structure'''

<nowiki>{{quote| 1 | 2 | 3 |color=silver|size=360%}}</nowiki>

# The "color" and "size" parameters refer to the quotation marks—not the text.
# If you want to change the color and size variables, you must declare the parameter explicitly (i.e. you must include "color=" or "size=").
#If you want to change the size parameter, then you must include a unit of measurement (e.g. %, px, pt).
# "If a parameter value contains an equals sign, the parameter name must be declared explicitly." This means that if you want to include a URL in your quote, and if that URL contains an equals sign, then you must explicitly declare the parameter. All that means is that you should add "1=", "2=", or "3=", as appropriate, ahead of your quote text, speaker, or source, like this: <nowiki>{{quote|1=Quote text|2=Person|3=Source|color=silver|size=360%}}</nowiki>

'''<pre>{{Quote|1=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}}</pre>''' 

- Displays:{{Quote|1=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}}

[[Category:Formatting and function templates|{{PAGENAME}}]]

See [[Template:Squote]] for displaying block quotes in a smaller font size.</noinclude>




<font color="#666666">
'''These usage notes will not be included in articles bearing this template.'''<p></p>
<font color="#d70921">{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}</font><noinclude>

{{usage|1=This template is used to provide usage directions on templates, boilerplates, message boxes, and the like. Remember to wrap it (and any line breaks) in <nowiki><noinclude></nowiki> tags! If you forget to use nowiki tags on vertical pipes ( <nowiki>|</nowiki> ), the template will still ''work'', but font following the first error will <font color="#d70921">appear in bright red, indicating a faulty template</font>. This template can accommodate up to 5 such errors, before cutting off and no longer including any more text.

'''Good''' usage notes include things like:
*Links to similar templates
*Instructions on how to use it properly, '''especially''' how to use a "piped" template
*DO and DON'T instructions. (These are just as much about telling people when to use them, as it is about telling people when other templates might be more appropriate.)
*Explains '''why the template is necessary'''. Justify its existence. Explain to a new user why they should use a template as opposed to trying to manually add wikimarkup to the same effect.}}

[[Category:CWCki templates|Usage]]</noinclude>

Страницы на которых применяется данный шаблон

{{#ask: |format=ul }}


Внешние ссылки