Open main menu

Changes

Template:Id

851 bytes added, 05:36, 16 April 2021
Created page with "<noinclude> This template is used to give an id to an element. This can be useful for multiple reasons like providing links to subtitles that are located on a different page...."
<noinclude>
This template is used to give an id to an element. This can be useful for multiple reasons like providing links to subtitles that are located on a different page.
= Usage =
{| class="wikitable"
|-
! Code !! Example !! Result
|-
| <code><nowiki>{{raw:data:id|actual number id|content}}</nowiki></code> || <code><nowiki>{{raw:data:id|123|content}}</nowiki></code> || <div style="width:400px;">{{id|15|this is the content}}</div>
|-
| <code><nowiki>{{raw:data:id|actual text id|content}}</nowiki></code> || <code><nowiki>{{raw:data:id| nice subtitle|this is the content}}</nowiki></code> || <div style="width:400px;">{{id|nice subtitle|this is the content}} - note: if space characters are used the id will replace spaces with "_". So in this case the id is "actual_text_id"</div>
|}
</noinclude>
<div id="{{{1}}}">{{{2}}}</div>
<includeonly>