1,288
edits
Changes
Jump to navigation
Jump to search
Created page with "<noinclude> This template is used to give an id to an element. The element will be hidden. = Usage = {| class="wikitable" |- ! Code !! Example !! Result |- | <code><nowiki>{{r..."
<noinclude>
This template is used to give an id to an element. The element will be hidden.
= 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: in this case id is "actual_text_id".</div>
|}
</noinclude>
<includeonly>
<div style="display:none" id="{{{1}}}">{{{2}}}</div>
</includeonly>
This template is used to give an id to an element. The element will be hidden.
= 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: in this case id is "actual_text_id".</div>
|}
</noinclude>
<includeonly>
<div style="display:none" id="{{{1}}}">{{{2}}}</div>
</includeonly>