Difference between revisions of "Template:Template doc"

From K2CC Wiki
(Created page with "<includeonly>{{template doc inline|1={{ {{#ifexist:{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|ns:0}} }}|2={{SUBJECTSPACEE}}:{{{1|{{P...")
 
(Replaced content with "<includeonly>{{template doc inline|1={{ {{#ifexist:{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|ns:0}} }}|2={{SUBJECTSPACEE}}:{{{1...")
 
Line 1: Line 1:
 
<includeonly>{{template doc inline|1={{ {{#ifexist:{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|ns:0}} }}|2={{SUBJECTSPACEE}}:{{{1|{{PAGENAMEE}}/doc}}}}}</includeonly>
 
<includeonly>{{template doc inline|1={{ {{#ifexist:{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|{{SUBJECTSPACEE}}:{{{1|{{PAGENAME}}/doc}}}|ns:0}} }}|2={{SUBJECTSPACEE}}:{{{1|{{PAGENAMEE}}/doc}}}}}</includeonly>
Stop_hand_nuvola.png
 
Emblem-important.png
 
Broom_icon.png
 
Merge-split-transwiki_default.png
 
Info_non-talk.png
 
Template_doc_inline <includeonly><div class="template-documentation">
 
<div style="border-bottom: 1px solid #aaa;">{{#if:{{{2|}}}|<span class="editsection" id="doc_editlinks" style="font-size: small">[<span class="plainlinks">[{{fullurl:{{{2}}}}} view]</span>] [<span class="plainlinks">[{{fullurl:{{{2}}}|action=edit&preload={{urlencode:Template:Template doc/Preload}}}} edit]</span>]</span>}} <span class="mw-headline"><big>'''{{SUBJECTSPACE}} documentation'''</big></span></div>
 
 
{{{1}}}</div></includeonly>
 
Ambox/doc ==Usage==
 
The "type" option defaults to "notice".  "Image" and "Imageright" are optional.
 
 
<pre>
 
{{ambox
 
| type  = serious / content / style / merge / notice
 
| image = none / blank / [[Image:Some image.png|40px]]
 
| imageright = [[Image:Some image.png|40px]]
 
| text  = The message body text.
 
}}
 
</pre>
 
 
===Default Images and Possible Uses===
 
{{ambox |type = serious |text = type='''serious''' &mdash; High importance issues, such as {{Tl|Prod}} and {{Tl|Rewrite}}.}}
 
{{ambox |type = content |text = type='''content''' &mdash; Content issues, such as {{Tl|Expand}}. }}
 
{{ambox |type = style  |text = type='''style''' &mdash; Styling or typographical issues, such as {{Tl|Edit}} and {{Tl|Wikify}}.}}
 
{{ambox |type = merge  |text = type='''merge''' &mdash; Merging issues, such as {{Tl|Merge}}.}}
 
{{ambox |type = notice  |text = type='''notice''' &mdash; The default for new Amboxes.}}
 
 
===Technical===
 
If you need to use special characters in the text parameter then you need to escape them like this:
 
<pre>
 
{{ambox
 
| text  = <div>
 
Equal sign = and a start and end brace { } work fine as they are.
 
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>.
 
And now a pipe and end braces <nowiki>|}}</nowiki>.
 
</div>
 
}}
 
</pre>
 
TI {{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude>
 
{{pp-protected|small=yes}}
 
</noinclude>
 
TI {{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude>
 
{{pp-protected|small=yes}}
 
</noinclude>
 
Common.css /** CSS placed here will be applied to all skins */
 
 
/* Article message box template styles */
 
table.ambox {
 
  width: 80%;
 
  margin: 0 auto;
 
  border-collapse: collapse;
 
  background: #fbfbfb;
 
  border: 1px solid #aaa;
 
  border-left: 10px solid #1e90ff;      /* Default "notice" blue */
 
}
 
table.ambox th, table.ambox td {      /* The message body cell(s) */
 
  padding: 0.25em 0.5em;              /* 0.5em left/right */
 
}
 
table.ambox td.ambox-image {          /* The left image cell */
 
  width: 52px;
 
  padding: 2px 0px 2px 0.5em;        /* 0.5em left, 0px right */
 
  text-align: center;
 
}
 
table.ambox td.ambox-imageright {    /* The right image cell */
 
  width: 52px;
 
  padding: 2px 4px 2px 0px;          /* 0px left, 4px right */
 
  text-align: center;
 
}
 
table.ambox-notice {
 
  border-left: 10px solid #1e90ff;      /* Blue */
 
/* border-right: 10px solid #1e90ff; */  /* If you want two blue bars */
 
}
 
table.ambox-delete,
 
table.ambox-serious,
 
table.ambox-rewrite {
 
  border-left: 10px solid #b22222;      /* Red */
 
}
 
table.ambox-content {
 
  border-left: 10px solid #f28500;      /* Orange */
 
}
 
table.ambox-merge {
 
  border-left: 10px solid #9932cc;      /* Purple */
 
}
 
table.ambox-protection {
 
  border-left: 10px solid #bba;          /* Gray */
 
}
 
table.ambox-style {
 
  border-left: 10px solid #f4c430;      /* Yellow */
 
}
 
table.ambox.ambox-mini {                /* small floating box variant */
 
    float: right;
 
    clear: right;
 
    margin: 0 0 0 1em;
 
    width: 25%;
 
}
 
/* Infobox template style */
 
 
.infobox {
 
  border: 1px solid #aaa;
 
  background-color: #f9f9f9;
 
  color: black;
 
  margin-bottom: 0.5em;
 
  margin-left: 1em;
 
  padding: 0.2em;
 
  float: right;
 
  clear: right;
 
}
 
.infobox td,
 
.infobox th {
 
  vertical-align: top;
 
}
 
.infobox caption {
 
  font-size: larger;
 
  margin-left: inherit;
 
}
 
.infobox.bordered {
 
  border-collapse: collapse;
 
}
 
.infobox.bordered td,
 
.infobox.bordered th {
 
  border: 1px solid #aaa;
 
}
 
.infobox.bordered .borderless td,
 
.infobox.bordered .borderless th {
 
  border: 0;
 
}
 
 
.infobox.sisterproject {
 
  width: 20em;
 
  font-size: 90%;
 
}
 
 
@media print {
 
    .infobox.sisterproject {
 
        display: none;
 
    }
 
}
 
 
/* styles for bordered infobox with merged rows */
 
.infobox.bordered .mergedtoprow td,
 
.infobox.bordered .mergedtoprow th {
 
  border: 0;
 
  border-top: 1px solid #aaa;
 
  border-right: 1px solid #aaa;
 
}
 
 
.infobox.bordered .mergedrow td,
 
.infobox.bordered .mergedrow th {
 
  border: 0;
 
  border-right: 1px solid #aaa;
 
}
 

Latest revision as of 13:37, 23 February 2012