Материал из ЭнциклопАтис
Zorroargh (обсуждение | вклад) |
Zorroargh (обсуждение | вклад) |
||
Строка 8: | Строка 8: | ||
}}</noinclude><div style="vertical-align:top;color:#{{ColorAtys|group={{{palette}}}|type=fg}};padding:0; margin: 0em;overflow:auto; | }}</noinclude><div style="vertical-align:top;color:#{{ColorAtys|group={{{palette}}}|type=fg}};padding:0; margin: 0em;overflow:auto; | ||
{{ #switch: {{{type|}}} | {{ #switch: {{{type|}}} | ||
− | | U=top:0; width:100%;background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: . | + | | U=top:0; width:100%;background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .2em .2em .4em rgba(0, 0, 0, .5);border:medium outset #{{ColorAtys|group={{{palette}}}|type=dark}}; border-radius:.5em;clear:both;text-align:center; |
− | | u=top:0; width:100%;background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:thin outset #{{ColorAtys|group={{{palette}}}|type=dark}}; border-radius: | + | | u=top:0; width:100%;background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:thin outset #{{ColorAtys|group={{{palette}}}|type=dark}}; border-radius:.5em;clear:both; |
− | | R=float:right;width:33%; margin- | + | | R=float:right;width:33%; margin-left: 1em; background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .1em .2em .4em rgba(0, 0, 0, .5);border:medium outset #{{ColorAtys|group={{{palette}}}|type=dark}};border-radius:.5em; |
| r=margin-left:34%; background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none; | | r=margin-left:34%; background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none; | ||
− | | L=float:left;width:33%; margin-right: 1em; background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .1em .2em .4em rgba(0, 0, 0, .5);border:medium outset #{{ColorAtys|group={{{palette}}}|type=dark}};border-radius: | + | | L=float:left;width:33%; margin-right: 1em; background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .1em .2em .4em rgba(0, 0, 0, .5);border:medium outset #{{ColorAtys|group={{{palette}}}|type=dark}};border-radius:/5em; |
| l=margin-right:34%; ;background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none; | | l=margin-right:34%; ;background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none; | ||
− | | C=margin:auto;width:30%;background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .1em .2em .4em rgba(0, 0, 0, .5);border:medium outset #{{ColorAtys|group={{{palette}}}|type=dark}}; border-radius: | + | | C=margin:auto;width:30%;background:#{{ColorAtys|group={{{palette}}}|type=light}};box-shadow: .1em .2em .4em rgba(0, 0, 0, .5);border:medium outset #{{ColorAtys|group={{{palette}}}|type=dark}}; border-radius:.5em;clear:both;text-align:center; |
| c=margin:auto;width:30%;background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none; | | c=margin:auto;width:30%;background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none; | ||
| #default=top:0; width:100%;background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none;clear:both; | | #default=top:0; width:100%;background:#{{ColorAtys|group={{{palette}}}|type=bg}};border-radius:.5em;box-shadow: .1em .1em .2em rgba(0, 0, 0, .8);border:none;clear:both; | ||
Строка 31: | Строка 31: | ||
<div style="position:absolute; left:4em; top:.2em;font-size:1.2em; font-weight:bold; text-align:left; color:#{{ColorAtys|group={{{palette}}}|type=dark}}; padding:.0em;text-overflow: ellipsis;">{{3DText|text={{{title}}} }}</div> | <div style="position:absolute; left:4em; top:.2em;font-size:1.2em; font-weight:bold; text-align:left; color:#{{ColorAtys|group={{{palette}}}|type=dark}}; padding:.0em;text-overflow: ellipsis;">{{3DText|text={{{title}}} }}</div> | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
{{#if:{{{content|}}}| | {{#if:{{{content|}}}| | ||
− | |||
<div style="margin:.0em; padding:.5em;">{{{content}}}</div> | <div style="margin:.0em; padding:.5em;">{{{content}}}</div> | ||
| | | |
Версия 13:43, 29 сентября 2020
Usage of the TheBigBox template
Syntaxis
{{TheBigBox|type=type|title=title|image=image|palette=palette|content=content|align=text-align}}
- type:box type for the detailed section below.
- title:the title bar. If it is empty, then there is no bar.
- image:icon for the title. If it is empty, then the Ryzom logo.
- palette:chose a color in the chart color of Atys
- content:content of the section. Keep mind: some bugs when parsing wikis commands.
- align eneral alignment of the text in the box. The values are left, center, right, justify. If empty, the alignment takes the default value assigned to the box. Note that the text in this box has been manually aligned in HTML
<div align="left">...</div>
. "'The reason is basically due to an error in the bullet lists.
"type" values
Types for boxes that occupy the entire width of the box containing them:
- U= full width, thick relief, colored background, centered text by default.
- u o by default= full width, thin relief, pastel background, centered text by default.
Types for small floating boxes in the box containing them:
- On the left
- L= 1/3 of the width, floats to the left of the page, thick relief, colored background, left-aligned text by default.
- l(lowercase L)= 2/3 of the width, floats to the left of the page, clear relief, pastel background, left-aligned text by default.
- In the center
- C= 1/3 of the width, page centered, thick relief, colored background, left-aligned text by default.
- c= 1/3 of the width, page centered, fine relief, pastel background, left-aligned text by default.
- To the right
- R= 1/3 of the width, floats to the right of the page, thick relief, colored background, left-aligned text by default.
- r= 2/3 of the width, floats to the right of the page, clear relief, pastel background, left-aligned text by default.
← U type of box without "image"
A very useful U model without content to realign floating boxes, and below without title
c (lower case) type of box
C (upper case) type of box
{{TheBigBox |title= A title|image=R2_scenario_admin.png}}
ᐁgives thatᐁ
A title
{{TheBigBox |type=U}}
ᐁgives thatᐁ
{{TheBigBox}}
ᐁgives thatᐁ
L type of box, fyros palette
r type of box, fyros palette
r type of box
R type of box, matis palette
l (L lower case) type of box, matis palette
Then chain on the one(s) on the left, always without space or empty line between the "template".
Sed ut tum ad senem senex de senectute, sic hoc libro ad amicum amicissimus scripsi de amicitia. Tum est Cato locutus, quo erat nemo fere senior temporibus illis, nemo prudentior; nunc Laelius et sapiens (sic enim est habitus) et amicitiae gloria excellens de amicitia loquetur. Tu velim a me animum parumper avertas, Laelium loqui ipsum putes. C. Fannius et Q. Mucius ad socerum veniunt post mortem Africani; ab his sermo oritur, respondet Laelius, cuius tota disputatio est de amicitia, quam legens te ipse cognosces.l (L lower case) type of box
No type, ranger palette
Sed ut tum ad senem senex de senectute, sic hoc libro ad amicum amicissimus scripsi de amicitia. Tum est Cato locutus, quo erat nemo fere senior temporibus illis, nemo prudentior; nunc Laelius et sapiens (sic enim est habitus) et amicitiae gloria excellens de amicitia loquetur. Tu velim a me animum parumper avertas, Laelium loqui ipsum putes. C. Fannius et Q. Mucius ad socerum veniunt post mortem Africani; ab his sermo oritur, respondet Laelius, cuius tota disputatio est de amicitia, quam legens te ipse cognosces.
l (L lower case) type of box
No type, tryker palette
R type of box
No type, zorai palette
R type of box
l (L lower case) type of box