Difference between revisions of "Template:Idhidden"

From Data JW United
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...")
 
Line 12: Line 12:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<div style="display:none" id="{{{1}}}">{{{2}}}</div>
+
<div style="height: 0px;width: 0px;overflow:hidden;" id="{{{1}}}">{{{2}}}</div>
 
</includeonly>
 
</includeonly>

Revision as of 05:32, 20 October 2021

This template is used to give an id to an element. The element will be hidden.

Usage

Code Example Result
{{raw:data:id|actual number id|content}} {{raw:data:id|123|content}}
this is the content
{{raw:data:id|actual text id|content}} {{raw:data:id| nice subtitle|this is the content}}
this is the content
Note: in this case id is "actual_text_id".