Difference between revisions of Template:Divbox/doc
Viceroy Sam (talk | contribs) →Purpose: ce |
Viceroy Sam (talk | contribs) remove languages |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 110: | 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 117: | 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 125: | 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> | ||