Difference between revisions of "Template:Anchor"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Komusou
(no, because it's not HTML but wikisource, which is parsed case-insensitively and outputted lowercase if required (see HTML source) - so it's irrelevant to results, and makes source code more readable)
imported>Fullstop
(make target id=s perfectly compatible with html generated by [ [ #wikilink ] ] syntax. Fix also removes all restrictions of what can be an anchor name.)
Line 1: Line 1:
 
<noinclude>{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template sandbox notice}}}}</noinclude><!--
 
<noinclude>{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template sandbox notice}}}}</noinclude><!--
-->{{#if:{{{ 1|}}}|<SPAN ID="{{{ 1|}}}" /><!--
+
-->{{#if:{{{ 1|}}}|<SPAN ID="{{anchorencode:{{{ 1|}}}}}" /><!--
-->{{#if:{{{ 2|}}}|<SPAN ID="{{{ 2|}}}" /><!--
+
-->{{#if:{{{ 2|}}}|<SPAN ID="{{anchorencode:{{{ 2|}}}}}" /><!--
-->{{#if:{{{ 3|}}}|<SPAN ID="{{{ 3|}}}" /><!--
+
-->{{#if:{{{ 3|}}}|<SPAN ID="{{anchorencode:{{{ 3|}}}}}" /><!--
-->{{#if:{{{ 4|}}}|<SPAN ID="{{{ 4|}}}" /><!--
+
-->{{#if:{{{ 4|}}}|<SPAN ID="{{anchorencode:{{{ 4|}}}}}" /><!--
-->{{#if:{{{ 5|}}}|<SPAN ID="{{{ 5|}}}" /><!--
+
-->{{#if:{{{ 5|}}}|<SPAN ID="{{anchorencode:{{{ 5|}}}}}" /><!--
-->{{#if:{{{ 6|}}}|<SPAN ID="{{{ 6|}}}" /><!--
+
-->{{#if:{{{ 6|}}}|<SPAN ID="{{anchorencode:{{{ 6|}}}}}" /><!--
-->{{#if:{{{ 7|}}}|<SPAN ID="{{{ 7|}}}" /><!--
+
-->{{#if:{{{ 7|}}}|<SPAN ID="{{anchorencode:{{{ 7|}}}}}" /><!--
-->{{#if:{{{ 8|}}}|<SPAN ID="{{{ 8|}}}" /><!--
+
-->{{#if:{{{ 8|}}}|<SPAN ID="{{anchorencode:{{{ 8|}}}}}" /><!--
-->{{#if:{{{ 9|}}}|<SPAN ID="{{{ 9|}}}" /><!--
+
-->{{#if:{{{ 9|}}}|<SPAN ID="{{anchorencode:{{{ 9|}}}}}" /><!--
-->{{#if:{{{10|}}}|<SPAN ID="{{{10|}}}" /><!--
+
-->{{#if:{{{10|}}}|<SPAN ID="{{anchorencode:{{{10|}}}}}" /><!--
 
-->{{#if:{{{11|}}}
 
-->{{#if:{{{11|}}}
 
     |<DIV STYLE="background-color:yellow">[[Template:Anchor]]: too many anchors</DIV><!--
 
     |<DIV STYLE="background-color:yellow">[[Template:Anchor]]: too many anchors</DIV><!--

Revision as of 17:31, 19 November 2007

Template:Pp-semi-protected

Template documentation[create]