remove languages
en>Jonesey95 (add update template) |
Viceroy Sam (talk | contribs) (remove languages) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
== Purpose == | == Purpose == | ||
Wikipedia abounds in boxed templates | Wikipedia abounds in boxed templates | ||
Boxes may not always be appropriate; they can be obtrusive. But when boxes are used, they are generally formatted ''ad hoc''. This leads to inconsistencies. | Boxes may not always be appropriate; they can be obtrusive. But when boxes are used, they are generally formatted ''ad hoc''. This leads to inconsistencies. | ||
Line 115: | Line 110: | ||
== Using subst: with this template == | == Using subst: with this template == | ||
The <code>subst:</code> atom may be used with {{tl|divbox}}. ''This may be highly desirable.'' Note that <code>subst:</code> does not take effect in preview, but only after saving a page. The template's inclusion is replaced by the code of the template itself, which will continue to write the box as before, but without an additional server call. | The <code>subst:</code> atom may be used with {{tl|divbox}}. ''This may be highly desirable.'' Note that <code>subst:</code> does not take effect in preview, but only after saving a page. The template's inclusion is replaced by the code of the template itself, which will continue to write the box as before, but without an additional server call. | ||
Line 122: | Line 116: | ||
Just paste in your content and, when you're finished, be sure to close the template call with <code><nowiki>}}</nowiki></code>. | Just paste in your content and, when you're finished, be sure to close the template call with <code><nowiki>}}</nowiki></code>. | ||
Since the contents are given in the form of two parameter values, for the content you may place within {{tl|divbox}}, the | Since the contents are given in the form of two parameter values, for the content you may place within {{tl|divbox}}, the restrictions on parameter values apply. For example, if you put content that includes template calls, {{tl|divbox}} cannot tell where its last parameter ends. | ||
If the contents do not satisfy the restrictions, insert this code in your page first: | If the contents do not satisfy the restrictions, insert this code in your page first: | ||
Line 130: | Line 124: | ||
That is, choose your style and title as usual (or omit the title with two pipes), but instead of actual content, write "DUMMYCONTENT". Then, save the page and reopen it for editing. You'll see the box code in all its gory detail, and the placeholder DUMMYCONTENT, followed by the HTML division closing tag. Now, you may simply '''replace''' DUMMYCONTENT with '''your content''', save, and move on. Since almost anything may be placed within division tags, this should not break no matter what you do. | That is, choose your style and title as usual (or omit the title with two pipes), but instead of actual content, write "DUMMYCONTENT". Then, save the page and reopen it for editing. You'll see the box code in all its gory detail, and the placeholder DUMMYCONTENT, followed by the HTML division closing tag. Now, you may simply '''replace''' DUMMYCONTENT with '''your content''', save, and move on. Since almost anything may be placed within division tags, this should not break no matter what you do. | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
[[Category:Box templates]] | [[Category:Box templates]] | ||
}}</includeonly> | }}</includeonly> |