Difference between revisions of "Template:Bc"
Add in div used in wiki generated back to links as well.
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.) |
imported>SnakeChomp (Add in div used in wiki generated back to links as well.) |
||
Line 8: | Line 8: | ||
[[Category: Templates|Bc]] | [[Category: Templates|Bc]] | ||
[[Category: Structural Templates|Bc]] | [[Category: Structural Templates|Bc]] | ||
</noinclude><includeonly><span class="subpages">< [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|< [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|< [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|< [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</span></includeonly><noinclude>==Code== | </noinclude><includeonly><div id="contentSub"><span class="subpages">< [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|< [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|< [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|< [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</span></div></includeonly><noinclude>==Code== | ||
<pre><span class="subpages">< [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|< [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|< [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|< [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</span></pre> | <pre><div id="contentSub"><span class="subpages">< [[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]] {{ #if: {{{3|}}}|< [[:{{NAMESPACE}}:{{{3|Main Page}}}|{{ #if: {{{4|}}}|{{{4}}}|{{{3|Main Page}}} }}]] }} {{ #if: {{{5|}}}|< [[:{{NAMESPACE}}:{{{5|Main Page}}}|{{ #if: {{{6|}}}|{{{6}}}|{{{5|Main Page}}} }}]] }} {{ #if: {{{7|}}}|< [[:{{NAMESPACE}}:{{{7|Main Page}}}|{{ #if: {{{8|}}}|{{{8}}}|{{{7|Main Page}}} }}]] }}</span></div></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><span class="subpages"></nowiki> | *<nowiki><div id="contentSub"><span class="subpages"></nowiki> | ||
** | **Formatting | ||
*<nowiki>[[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]]</nowiki> | *<nowiki>[[:{{NAMESPACE}}:{{{1|Main Page}}}|{{ #if: {{{2|}}}|{{{2}}}|{{{1|Main Page}}} }}]]</nowiki> | ||
**This is the first link and hypertext | **This is the first link and hypertext | ||
Line 33: | 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></span></nowiki>) | *Close up the formatting (<nowiki></span></div></nowiki>) | ||
</noinclude> | </noinclude> |