Difference between revisions of "Template:Bc"

225 bytes removed ,  16:19, 16 January 2009
Use <span class="subpages"> for formatting. Remove newline and back to: text. Should look the same as wiki generated links for subpages now.
imported>SnakeChomp
m (Replace free standing < characters with <)
imported>SnakeChomp
(Use <span class="subpages"> for formatting. Remove newline and back to: text. Should look the same as wiki generated links for subpages now.)
Line 8: Line 8:
[[Category: Templates|Bc]]
[[Category: Templates|Bc]]
[[Category: Structural Templates|Bc]]
[[Category: Structural Templates|Bc]]
</noinclude><includeonly><div style="margin: -0.5em 0.5em 0.5em -0.5em;"><small>Back to:<br><ul>&lt; [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|&lt; [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|&lt; [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|&lt; [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</ul></small></div></includeonly><noinclude>==Code==
</noinclude><includeonly><span class="subpages">&lt; [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|&lt; [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|&lt; [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|&lt; [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</span></includeonly><noinclude>==Code==
<pre><div style="margin: -0.5em 0.5em 0.5em -0.5em;"><small>Back to:<br><ul>&lt; [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|&lt; [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|&lt; [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|&lt; [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</ul></small></div></pre>
<pre><span class="subpages">&lt; [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|&lt; [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|&lt; [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|&lt; [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</span></pre>
The code is a bit of a mess, so here's the separate parts:
The code is a bit of a mess, so here's the separate parts:
*<nowiki><div...><small></nowiki>
*<nowiki><span class="subpages"></nowiki>
**Formatting
*<nowiki>Back to:<br></nowiki>
**Creates the top "Back to:" part
*<nowiki><ul></nowiki>
**<nowiki>This tag is used to indent the links (<p> and colon don't work)</nowiki>
**<nowiki>This tag is used to indent the links (<p> and colon don't work)</nowiki>
*<nowiki>[[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]]</nowiki>
*<nowiki>[[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]]</nowiki>
Line 37: Line 33:
***Hypertext - note it uses the 3rd and 4th parameters instead of the 1st and 2nd
***Hypertext - note it uses the 3rd and 4th parameters instead of the 1st and 2nd
*Repeat for the each back articles
*Repeat for the each back articles
*Close up the formatting (<nowiki></ul></small></div></nowiki>)
*Close up the formatting (<nowiki></span></nowiki>)
</noinclude>
</noinclude>
Anonymous user