User:Trimoon/sandbox: Difference between revisions
mNo edit summary |
m new section Template:Notice/doc |
||
| Line 50: | Line 50: | ||
columns = 2 | columns = 2 | ||
</dpl> | </dpl> | ||
== Template:Notice/doc == | |||
===<dt>Parameters</dt>=== | |||
<dd> | |||
*<i>Recommended</i>: {{para|type}} | |||
*:Notice box header text. | |||
*:Default: {{para|type|<var>Header text</var>}} | |||
*<i>Recommended</i>: {{para|info}} | |||
*:Notice box additional info. | |||
*:Default: {{para|type|<var>Explanation</var>}} | |||
*<i>Optional</i>: {{para|image}} | |||
*:Notice box symbol image. | |||
*:Provide the image-filename with extension, or use {{para|image|no}} to completely remove/inhibit the image part. | |||
*:Default: {{para|image|<var>Gtk-ok.png</var>}} | |||
*<i>Optional</i>: {{para|imageSize}} | |||
*:Notice box symbol image-size. | |||
*:Provide the image-size including the unit, eg: <code>px</code>, part. | |||
*:Default: {{para|imageSize|<var>50px</var>}} | |||
*<i>Optional</i>: {{para|border}} | |||
*:Notice box left-border-bar definition. | |||
*:Use {{para|border|<var>definition</var>}}, where <code><var>definition</var></code> is a valid custom definition for the [http://www.w3schools.com/cssref/pr_border-left.asp <abbr title="Cascading Style Sheet">CSS</abbr> property <code>border-left</code>]<ref name="css-prop"/>. | |||
*:Or use {{para|border|preset}}, where <code>preset</code> is one of the predefined names below<nowiki>:</nowiki> | |||
*:*<span style="background-color:#b22222;"> </span> red ⇒ <code>10px solid #b22222</code> | |||
*:*<span style="background-color:#f28500;"> </span> orange ⇒ <code>10px solid #f28500</code> | |||
*:*<span style="background-color:#f4c430;"> </span> yellow ⇒ <code>10px solid #f4c430</code> | |||
*:*<span style="background-color:#9932cc;"> </span> purple ⇒ <code>10px solid #9932cc</code> | |||
*:*<span style="background-color:#1e90ff;"> </span> blue ⇒ <code>10px solid #1e90ff</code> | |||
*:*<span style="background-color:#228b22;"> </span> green ⇒ <code>10px solid #228b22</code> | |||
*:*<span style="background-color:#bba;"> </span> gray ⇒ <code>10px solid #bba</code> | |||
*:Default: {{para|border|blue}} | |||
*:<i>You don't need to provide the <code>;</code> at the end to properly terminate the definition(s) because it will be appended automatically for proper functionality.</i> | |||
*<i>Optional</i>: {{para|float|side}} | |||
*:Float the Notice box. | |||
*:Where <code>side</code> can be one of: <i>(Case insensitive)</i> | |||
*:*<code>l</code> or <code>left</code> | |||
*:*<code>r</code> or <code>right</code> | |||
*:*<code>n</code> or <code>none</code> | |||
*:When anything else is provided it will be treated as <b><code>none</code></b>. | |||
*:<span style="color:red;"><b>When used</b> it alters the <u>default value</u> for <code>styleWidth</code></span> of {{para|style}}<sup>(see below)</sup> as following when the effective floating is: | |||
*:*left ⇒ <code>25%</code> | |||
*:*right ⇒ <code>25%</code> | |||
*:*none ⇒ <code>50%</code> | |||
*<i>Optional</i>: {{para|style|<var>inline-CSS;</var>}} | |||
*:Used to completely override the inline-CSS<ref name="inline-css"><dfn>inline-<abbr title="Cascading Style Sheet">CSS</abbr></dfn>is a composition of <abbr title="Cascading Style Sheet">CSS</abbr> Properties</ref> used in the style-attribute <ref name="css-styleatt">For more info on the style-attribute see [http://www.w3schools.com/tags/att_global_style.asp info@w3schools].</ref> of the table that generates the Notice box. | |||
*:Where <code><var>inline-CSS;</var></code> defaults to: | |||
*:“<code><span style="white-space:nowrap;">font-size:<var>{{{styleFontSize}}}</var>;</span> <span style="white-space:nowrap;">margin:<var>{{{styleMargin}}}</var>;</span> <span style="white-space:nowrap;">border:<var>{{{styleBorder}}}</var>;</span> <span style="white-space:nowrap;">border-collapse:{{{styleBorderCollapse}}};</span> <span style="white-space:nowrap;">background-color:<var>{{{styleBackgroundColor}}}</var>;</span> <span style="white-space:nowrap;">border-left:<var>{{{border}}}</var>;</span> <span style="white-space:nowrap;"><i><optional:[</i> float:<var>side</var>;<i>]></i></span> <span style="white-space:nowrap;">width:<var>{{{styleWidth}}}</var>;</span></code>” | |||
*:To override <abbr title="Cascading Style Sheet">CSS</abbr> Properties<ref name="css-prop">For a complete listing of <dfn id="css-prop"><abbr title="Cascading Style Sheet">CSS</abbr> Properties</dfn>, see [http://www.w3schools.com/cssref/default.asp <abbr title="Cascading Style Sheet">CSS</abbr> Properties@w3cschools]</ref> used in the parts of the default shown above you can use: <i>(their defaults shown as value)</i> | |||
*:*{{para|styleFontSize|95%}} | |||
*:*{{para|styleMargin|0 auto}} | |||
*:*{{para|styleBorder|1px #aaa solid}} | |||
*:*{{para|styleBorderCollapse|collapse}} <i>(See: [http://www.w3schools.com/cssref/pr_border-collapse.asp CSS-Property: border-collapse@w3cschools])</i> | |||
*:*{{para|styleBackgroundColor|#eee}} | |||
*:*{{para|styleWidth|80%}} <i>(Default value is altered when {{para|float}}<sup>(see above)</sup> is used.)</i> | |||
</dd> | |||
<references/> | |||
Revision as of 19:55, 29 April 2016
| Note that this article is still under construction.
It may not function as expected. Check the discussion for info about its current state. See Category:Underconstruction articles for other incomplete articles. |
DIV Table
DPL
See: DPL Manual, DPL Extension Testing Ground
{{MAP infobox}}
{{ #dpl: | uses = Template:MAP infobox | count = {%DPL_count:50%} | resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=User:Trimoon/sandbox}²\n | resultsfooter = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=User:Trimoon/sandbox}² %DPLTIME%\n | scroll = yes | columns = 3 }}
{{ #dpl: | category = Fire Magic abilities | | uses = Template:Ability infobox | mode = userformat | allowcachedresults = false | include = {Ability infobox}/concise row format | format = ¶{¦ class="sortable table" style="" ¶¦- style="background:#ece;" ¶! Name ¶! Level ¶! class="unsortable" ¦ Power Cost ¶! class="unsortable" ¦ Reuse Time ¶! class="unsortable" ¦ Damage ¶! class="unsortable" ¦ Description ¶! class="unsortable" ¦ Special ,,,¶¦} | secseparators = ¶¦- }}
{{MOB infobox}}
{{#dpl: | uses = Template:MOB infobox
| format =
- ,
- ²{MOB¦name=%TITLE%¦iconsize=big}², ,
| count = {%DPL_count:50%} | resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=User:Trimoon/sandbox}²\n | resultsfooter = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=User:Trimoon/sandbox}² %DPLTIME%\n | scroll = yes | columns = 3 }}
Templates not using {{SPW}}
{{ #dpl: | namespace = Template | notuses = Template:SPW | count = {%DPL_count:50%} | resultsheader = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=User:Trimoon/sandbox}²\n | resultsfooter = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=User:Trimoon/sandbox}² %DPLTIME%\n | scroll = yes | columns = 3 }}
Favors
<dpl>
uses = Template:NPC infobox include = #Small Talk reset = categories table = class="sortable table",NPC Name,Favor tablerow = style="font-weight:bold"¦%%, columns = 2
</dpl>
Template:Notice/doc
Parameters
- Recommended:
|type=- Notice box header text.
- Default:
|type=Header text
- Recommended:
|info=- Notice box additional info.
- Default:
|type=Explanation
- Optional:
|image=- Notice box symbol image.
- Provide the image-filename with extension, or use
|image=noto completely remove/inhibit the image part. - Default:
|image=Gtk-ok.png
- Optional:
|imageSize=- Notice box symbol image-size.
- Provide the image-size including the unit, eg:
px, part. - Default:
|imageSize=50px
- Optional:
|border=- Notice box left-border-bar definition.
- Use
|border=definition, wheredefinitionis a valid custom definition for the CSS propertyborder-left[1]. - Or use
|border=preset, wherepresetis one of the predefined names below:- red ⇒
10px solid #b22222 - orange ⇒
10px solid #f28500 - yellow ⇒
10px solid #f4c430 - purple ⇒
10px solid #9932cc - blue ⇒
10px solid #1e90ff - green ⇒
10px solid #228b22 - gray ⇒
10px solid #bba
- red ⇒
- Default:
|border=blue - You don't need to provide the
;at the end to properly terminate the definition(s) because it will be appended automatically for proper functionality.
- Optional:
|float=side- Float the Notice box.
- Where
sidecan be one of: (Case insensitive)lorleftrorrightnornone
- When anything else is provided it will be treated as
none. - When used it alters the default value for
styleWidthof|style=(see below) as following when the effective floating is:- left ⇒
25% - right ⇒
25% - none ⇒
50%
- left ⇒
- Optional:
|style=inline-CSS;- Used to completely override the inline-CSS[2] used in the style-attribute [3] of the table that generates the Notice box.
- Where
inline-CSS;defaults to: - “
font-size:{{{styleFontSize}}}; margin:{{{styleMargin}}}; border:{{{styleBorder}}}; border-collapse:{{{styleBorderCollapse}}}; background-color:{{{styleBackgroundColor}}}; border-left:{{{border}}}; <optional:[ float:side;]> width:{{{styleWidth}}};” - To override CSS Properties[1] used in the parts of the default shown above you can use: (their defaults shown as value)
|styleFontSize=95%|styleMargin=0 auto|styleBorder=1px #aaa solid|styleBorderCollapse=collapse(See: CSS-Property: border-collapse@w3cschools)|styleBackgroundColor=#eee|styleWidth=80%(Default value is altered when|float=(see above) is used.)
- ↑ 1.0 1.1 For a complete listing of CSS Properties, see CSS Properties@w3cschools
- ↑ inline-CSSis a composition of CSS Properties
- ↑ For more info on the style-attribute see info@w3schools.