|
|
| Line 1: |
Line 1: |
| <includeonly> | | <includeonly>{{Infobox |
| {{#if: {{{clear|}}} | <div style="clear: both;"></div> }}<!-- | | | {{{name|}}} |
| --><div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|curved}}} {{#if:{{{dismiss|}}}|{{#ifeq:{{{dismiss}}}|no||dismissible-notice}}|dismissible-notice}}" style="width: {{#if:{{{width|}}}{{{width}}}|{{{width}}}|50%}};<!--
| | | {{{image|}}} |
| -->{{#switch:{{{align|center}}}|left=margin: 0.3em 0.3em 0.3em 0;|right=margin: 0.3em 0 0.3em auto;|#default=margin: 0.3em auto;}};<!--
| | | {{{caption|}}} |
| -->padding: 0.5em; text-align: center; font-size: {{{font-size|1em}}}; {{{style}}};<!--
| | | content = |
| -->{{#if: {{{color|}}} | background-color: {{{color}}}; {{#if: {{{border|}}} | border: {{{border}}}; }} | border: 1px solid black; }}<!--
| | {{#if: {{{born|}}} | |
| -->"> | | <tr> |
| <div style="position: relative;"><!--
| | <td class="infobox-base-label">Born</td> |
| -->{{#if:{{{dismiss|}}}|{{#ifeq:{{{dismiss}}}|no||<div class="dismiss-button" style="position: absolute; top: -0.85rem; right: -0.25rem; cursor: pointer; padding: 5px; font-size: 21px;">×</div>}}| <div class="dismiss-button" style="position: absolute; top: -0.85rem; right: -0.25rem; cursor: pointer; padding: 5px; font-size: 21px;">×</div>}}<!--
| | <td class="infobox-base-data">{{{born}}}</td> |
| -->{{#if:{{{b|}}}|<div class="notice-main-text" style="font-weight:bold;">{{{b}}}</div>}}<!--
| | </tr> |
| --><div class="{{#if:{{{b|}}}|hide-for-multinotice|notice-main-text}}" style="white-space: normal;">{{{1}}}</div><!--
| | }} |
| --></div><!--
| | {{#if: {{{died|}}} | |
| --></div>
| | <tr> |
| </includeonly><noinclude>
| | <td class="infobox-base-label">Died</td> |
| This page is for testing out new templates or for making alterations to live templates without damaging them.
| | <td class="infobox-base-data">{{{died}}}</td> |
| | | </tr> |
| This is a bit of text.
| | }} |
| {{test
| | {{#if: {{{spouse|}}} | |
| |b=This is a test
| | <tr> |
| |1=this is also a test
| | <td class="infobox-base-label">Spouse</td> |
| |color=#bdcca1
| | <td class="infobox-base-data">{{{spouse}}}</td> |
| |align=left
| | </tr> |
| |width=100%
| | }} |
| | {{#if: {{{parents|}}} | |
| | <tr> |
| | <td class="infobox-base-label">Parents</td> |
| | <td class="infobox-base-data">{{{parents}}}</td> |
| | </tr> |
| | }} |
| | {{#if: {{{children|}}} | |
| | <tr> |
| | <td class="infobox-base-label">Children</td> |
| | <td class="infobox-base-data">{{{children}}}</td> |
| | </tr> |
| | }} |
| | {{#if: {{{relatives|}}} | |
| | <tr> |
| | <td class="infobox-base-label">Relatives</td> |
| | <td class="infobox-base-data">{{{relatives}}}</td> |
| | </tr> |
| | }} |
| | {{#if: {{{profession|}}} | |
| | <tr> |
| | <td class="infobox-base-label">Profession</td> |
| | <td class="infobox-base-data">{{{profession}}}</td> |
| | </tr> |
| }} | | }} |
| This is a bit of text
| | {{#if: {{{titles|}}} | |
| {{test | | <tr> |
| |1=this is also a test
| | <td class="infobox-base-label">Titles</td> |
| |color=#bdcca1
| | <td class="infobox-base-data">{{{titles}}}</td> |
| |dismiss=no
| | </tr> |
| }} | | }} |
| | | {{#if: {{{monikers|}}} | |
| The Notice template is a parent template that helps build [[:Category: Notices|Notice Templates]]. This template should never be used in its raw form on an article, but instead should be used to create new templates.
| | <tr> |
| | | <td class="infobox-base-label">Monikers</td> |
| == Parameters ==
| | <td class="infobox-base-data">{{{monikers}}}</td> |
| | | </tr> |
| {{{style}}} - allows the user to set various style elements of the notice box, like background color | |
| | |
| {{{b}}} - optional parameter that creates a bolded title for the notice box
| |
| | |
| {{{1}}} - the regular text in the notice box | |
| | |
| == Examples ==
| |
| | |
| Here is one example of a potential notice box.
| |
| | |
| This code on the template page
| |
| <code><nowiki> | |
| {{notice|style=background-color:#CCA;
| |
| |b=This is the bold title of the box!
| |
| |1=This is the regular text with more detail
| |
| }} | | }} |
| </nowiki></code> | | {{#if: {{{groups|}}} | |
| | | <tr> |
| produces this when the template is used:
| | <td class="infobox-base-label">Groups</td> |
| {{test|style=background-color:#CCA; | | <td class="infobox-base-data">{{{groups}}}</td> |
| |b=This is the bold title of the box!
| | </tr> |
| |1=This is the regular text with more detail
| |
| }} | | }} |
| Here's another example, this time without the bold line at the top.
| | {{#if: {{{introduced|}}} | |
| | | <tr> |
| This code on the template page
| | <td class="infobox-base-label">Introduced</td> |
| <code><nowiki> | | <td class="infobox-base-data">{{{introduced}}}</td> |
| {{notice|style=background-color:#FAA; | | </tr> |
| |1=This notice doesn't have a bold title
| |
| }} | | }} |
| </nowiki></code> | | {{#if: {{{last_mentioned|}}} | |
| | | <tr> |
| {{notice|style=background-color:#FAA; | | <td class="infobox-base-label">Last Mentioned</td> |
| |1=This notice doesn't have a bold title
| | <td class="infobox-base-data">{{{last_mentioned}}}</td> |
| |dismiss=no
| | </tr> |
| }} | | }} |
| | | }}[[Category:Characters]]</includeonly><noinclude> |
| :'''Use <code>|clear=yes</code> if the notice is interfering with other elements. | | This page is for testing out new templates or for making alterations to live templates without damaging them. |
|
| |
|
| {{test | | {{test |
| |b=This is a test
| |
| |1=this is also a test
| |
| |color=#bdcca1
| |
| |width=40%
| |
| |align=right
| |
| }}{{quote
| |
| |This is a test
| |
| |this is a test
| |
| |align=right
| |
| }}{{test
| |
| |b=This is a test
| |
| |1=this is also a test
| |
| |color=#bdcca1
| |
| |width=40%
| |
| |align=right
| |
| |clear=yes
| |
| }}
| |
|
| |
| {{example
| |
| |name=Beth Brower | | |name=Beth Brower |
| |image=Beth Brower-2.jpg | | |image=Beth Brower-2.jpg |
This page is for testing out new templates or for making alterations to live templates without damaging them.