Template:movinganchor: Difference between revisions
imported>HRWikiMirrorBot Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert) |
imported>HRWikiMirrorBot Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert) |
||
| Line 1: | Line 1: | ||
<!-- | <!-- Wayback HTML body (hrwiki.org); RawHtml --> | ||
{{{2}}} | <html> | ||
<p>{{{2}}} | |||
</p> | |||
<hr/> | |||
<a id="Usage" name="Usage"></a><h3> <span class="mw-headline"> Usage </span></h3> | |||
<p>Links to current, specific sections on pages like <a href="/index.php?title=Talk:Main_Page" title="Talk:Main Page">Talk:Main Page</a> will break after that content has been archived as usually done. In order for these links to work for future readers, create the link using this template rather than hard-coding it. | |||
</p> | |||
<a id="Syntax" name="Syntax"></a><h3> <span class="mw-headline"> Syntax </span></h3> | |||
<ul><li><code>{{movinganchor|archive|current|anchor}}</code> | |||
<ul><li><code>archive</code> — The page where <code>anchor</code> will be archived in the future. | |||
</li><li><code>current</code> — The current page where <code>anchor</code> resides. | |||
</li><li><code>anchor</code> — The section/anchor name. <i>(Optional)</i> | |||
</li></ul> | |||
</li></ul> | |||
<a id="Example" name="Example"></a><h3> <span class="mw-headline"> Example </span></h3> | |||
<ul><li><code>[[{{movinganchor|HRWiki:Main Page Talk Archive 40|Talk:Main Page|Featured Article (DNA Evidence) Typo}}]]</code> → <a href="/index.php?title=HRWiki:Main_Page_Talk_Archive_40" title="HRWiki:Main Page Talk Archive 40">HRWiki:Main Page Talk Archive 40#Featured Article (DNA Evidence) Typo</a> | |||
</li><li><code>[[{{movinganchor|HRWiki:Main Page Talk Archive 1987|Talk:Main Page}}]]</code> → <a href="/index.php?title=Talk:Main_Page" title="Talk:Main Page">Talk:Main Page</a> | |||
</li></ul> | |||
<div class="visualClear"></div> | |||
= | </html> | ||
Latest revision as of 21:00, 18 July 2026
{{{2}}}
Usage
Links to current, specific sections on pages like Talk:Main Page will break after that content has been archived as usually done. In order for these links to work for future readers, create the link using this template rather than hard-coding it.
Syntax
{{movinganchor|archive|current|anchor}}archive— The page whereanchorwill be archived in the future.current— The current page whereanchorresides.anchor— The section/anchor name. (Optional)
Example
[[{{movinganchor|HRWiki:Main Page Talk Archive 40|Talk:Main Page|Featured Article (DNA Evidence) Typo}}]]→ HRWiki:Main Page Talk Archive 40#Featured Article (DNA Evidence) Typo[[{{movinganchor|HRWiki:Main Page Talk Archive 1987|Talk:Main Page}}]]→ Talk:Main Page