Difference between revisions of "Template:Visible anchor"
From Self-sufficiency
(make it possible to span any text, rather than only the first arg, so that the {{anchor}} can be at the beginning of a para even if the "keyword" isn't.) |
(Move visible text to after the invisible anchors) |
||
Line 1: | Line 1: | ||
− | + | {{#if:{{{2|}}}|<span id="{{{2}}}"></span>}}<!-- | |
− | #if: {{{2|}}}|<span id=" | + | -->{{#if:{{{3|}}}|<span id="{{{3}}}"></span>}}<!-- |
− | #if: {{{3|}}}|<span id=" | + | -->{{#if:{{{4|}}}|<span id="{{{4}}}"></span>}}<!-- |
− | #if: {{{4|}}}|<span id=" | + | -->{{#if:{{{5|}}}|<span id="{{{5}}}"></span>}}<!-- |
− | #if: {{{5|}}}|<span id=" | + | -->{{#if:{{{6|}}}|<span id="{{{6}}}"></span>}}<!-- |
− | #if: {{{6|}}}|<span id=" | + | -->{{#if:{{{7|}}}|<span id="{{{7}}}"></span>}}<!-- |
− | #if: {{{7|}}}|<span id=" | + | -->{{#if:{{{8|}}}|<span id="{{{8}}}"></span>}}<!-- |
− | #if: {{{8|}}}|<span id=" | + | -->{{#if:{{{9|}}}|<span id="{{{9}}}"></span>}}<!-- |
− | #if: {{{9|}}}|<span id=" | + | -->{{#if:{{{10|}}}|<span id="{{{10}}}"></span>}}<!-- |
− | #if: {{{10|}}}|<span id=" | + | -->{{#if:{{{1|}}}|<span id="{{{1}}}">{{{text|{{{1}}}}}}</span>}}<!-- |
− | + | -->{{#if:{{{11|}}}|<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is 10.</span>}}<noinclude> | |
− | + | ||
− | #if: {{{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | #if: {{{ | + | |
− | + | ||
− | + | ||
{{Documentation}} | {{Documentation}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> |
Revision as of 01:24, 24 August 2011
[edit]
Documentation