Template:Anchor/doc: Difference between revisions

update to Lua, should no longer be limited to ten anchors
No edit summary
(update to Lua, should no longer be limited to ten anchors)
Line 1:
{{Lua|
 
* [[Module:Anchor]]}}
==Description==
This creates one or more HTML anchors (up to 10) so you can jump to where this template appears with <code><nowiki>[[</nowiki></code>''pagename''<code>#</code>''anchorname''<code><nowiki>]]</nowiki></code>. The result of the template should not be visible on the page.
 
==Syntax==
Type <code>{{t|Anchor|anchorname1|anchorname2|anchorname3|...|anchorname10}}</code> somewhere.
 
==Example==
Line 53 ⟶ 54:
 
==Credits==
The template's Lua code was taken from the [[wikia:w:c:templatesen:Template:Anchor|TemplatesEnglish WikiWikipedia]] on Wikia.
 
A non-Lua version of the template was formerly used [https://www.thesimswiki.com/w/index.php?title=Template:Anchor&oldid=1644 here]. That code was taken from the [[wikia:w:c:templates:Template:Anchor|Templates Wiki]] on Wikia.
 
==TemplateData==
Line 59 ⟶ 62:
<templatedata>
{
"description": "This template inserts one or more HTML anchors in a page, which can then be linked to using [[#location|...]] syntax, or by going to https://simswww.mirahezethesimswiki.orgcom/Name_of_page#Anchor_title. This is useful when you need to link to very specific parts in an article.",
"params": {
"1": {